]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Change return type of tc add flow functions
authorRabie Loulou <rabiel@mellanox.com>
Sun, 15 Oct 2017 12:48:41 +0000 (15:48 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 17 Oct 2018 21:15:48 +0000 (14:15 -0700)
commit0ab7b5a288cf4e42b4366c10846dbf5aa96a789c
treeada6f7e9896fb2e962d4b290b79860cf42768ece
parentcd2c20f6e50cf97118c10bc577bfddbfc9f5213e
net/mlx5e: Change return type of tc add flow functions

Refactor the flow add utility functions to return err code instead of rule
pointers. This will allow for simpler logic when one tc rule is
duplicated to two HW rules in downstream patches.

Signed-off-by: Rabie Loulou <rabiel@mellanox.com>
Signed-off-by: Shahar Klein <shahark@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c