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)
commitc83954abb221718e961802136078ba04d563cf3a
treeada6f7e9896fb2e962d4b290b79860cf42768ece
parent171c7625bef999848ee6032c6dde96e7330c4d15
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