]> git.baikalelectronics.ru Git - kernel.git/commit
nfp: flower: fix vlan match by checking both vlan id and vlan pcp
authorPieter Jansen van Vuuren <pieter.jansenvanvuuren@netronome.com>
Tue, 11 Sep 2018 13:38:44 +0000 (06:38 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Sep 2018 20:18:30 +0000 (13:18 -0700)
commitd037773b08e2b6266b4ad8e6923e79175b9f41a2
tree7e752643f2f20d819ca499dc5827297272d20fa4
parentd5f646693b493ebe3c12f58c00c8b3ed68751c7c
nfp: flower: fix vlan match by checking both vlan id and vlan pcp

Previously we only checked if the vlan id field is present when trying
to match a vlan tag. The vlan id and vlan pcp field should be treated
independently.

Fixes: fe4a79c5fdae ("nfp: extend flower matching capabilities")
Signed-off-by: Pieter Jansen van Vuuren <pieter.jansenvanvuuren@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/flower/main.h
drivers/net/ethernet/netronome/nfp/flower/match.c
drivers/net/ethernet/netronome/nfp/flower/offload.c