]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Deny VLAN rewrite if there is no VLAN header match
authorEli Britstein <elibr@mellanox.com>
Thu, 14 Mar 2019 14:41:40 +0000 (14:41 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 5 Apr 2019 21:10:34 +0000 (14:10 -0700)
commitc4de98fcaf898bd18947839059e4c4e638d3587b
treef88880a8cb140bd4b508b275a419f2b84c5abcd9
parent870a3f9b85af281822b166db5984d466aaecd8ae
net/mlx5e: Deny VLAN rewrite if there is no VLAN header match

Rewrite of the packet in the VLAN offset may corrupt the packet if it's
not VLAN tagged. Deny the rewrite in this case.

Fixes: 37410902874c ("net/mlx5e: Support VLAN modify action")
Signed-off-by: Eli Britstein <elibr@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c