net/mlx5e: Correct cleanup order when deleting offloaded TC rules
authorRoi Dayan <roid@mellanox.com>
Wed, 30 Nov 2016 15:59:41 +0000 (17:59 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Dec 2016 15:47:02 +0000 (10:47 -0500)
commit86a33ae1ca06a58629c4d0d80ac6d099ff932ae0
tree5430f302eef368dfa12925b5399baee0fa2b09e0
parent53636068d8d6a08ca99949e2094b2b04ececa2d8
net/mlx5e: Correct cleanup order when deleting offloaded TC rules

According to the reverse unwinding principle, on delete time we should
first handle deletion of the steering rule and later handle the vlan
deletion from the eswitch.

Fixes: 8b32580df1cb ("net/mlx5e: Add TC vlan action for SRIOV offloads")
Signed-off-by: Roi Dayan <roid@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c