aboutsummaryrefslogtreecommitdiff
path: root/fs/compat.c
diff options
context:
space:
mode:
authorOr Gerlitz <ogerlitz@mellanox.com>2017-03-10 14:33:04 +0200
committerDavid S. Miller <davem@davemloft.net>2017-03-10 10:03:26 -0800
commit65ba8fb7d5c6803ec236bb8d6650465fed7f9769 (patch)
treec0f36c0a76833d0bc7d135ca9a4dd770ae20dd31 /fs/compat.c
parent33e21c59526e9147d7c68913995298f10c35cd6f (diff)
net/mlx5e: Avoid wrong identification of rules on deletion
When deleting offloaded TC flows, we must correctly identify E-switch rules. The current check could get us wrong w.r.t to rules set on the PF. Since it's possible to set NIC rules on the PF, switch to SRIOV offloads mode and then attempt to delete a NIC rule. To solve that, we add a flags field to offloaded rules, set it on creation time and use that over the code where currently needed. Fixes: 8b32580df1cb ('net/mlx5e: Add TC vlan action for SRIOV offloads') Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Reviewed-by: Roi Dayan <roid@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/compat.c')
0 files changed, 0 insertions, 0 deletions