aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorJianbo Liu <jianbol@mellanox.com>2018-08-25 03:29:58 +0000
committerSaeed Mahameed <saeedm@mellanox.com>2018-10-01 10:58:00 -0700
commitcee26487620bc9bc3c7db21b6984d91f7bae12ae (patch)
tree250e7212e3545c67bb6c1994460e318e287d4534 /net
parentnet/mlx5: E-Switch, Fix out of bound access when setting vport rate (diff)
downloadlinux-dev-cee26487620bc9bc3c7db21b6984d91f7bae12ae.tar.xz
linux-dev-cee26487620bc9bc3c7db21b6984d91f7bae12ae.zip
net/mlx5e: Set vlan masks for all offloaded TC rules
In flow steering, if asked to, the hardware matches on the first ethertype which is not vlan. It's possible to set a rule as follows, which is meant to match on untagged packet, but will match on a vlan packet: tc filter add dev eth0 parent ffff: protocol ip flower ... To avoid this for packets with single tag, we set vlan masks to tell hardware to check the tags for every matched packet. Fixes: 095b6cfd69ce ('net/mlx5e: Add TC vlan match parsing') Signed-off-by: Jianbo Liu <jianbol@mellanox.com> Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions