]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Fix the vlan_tci exact match check.
authorVenkat Duvvuru <venkatkumar.duvvuru@broadcom.com>
Mon, 9 Jul 2018 06:24:47 +0000 (02:24 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Jul 2018 23:27:14 +0000 (16:27 -0700)
commitd5910fb94d17e1a68fa889f4db7458b730821dc4
tree3c8758b85442fe0f085f6b700466f63962c3f6c9
parentba65ca9544449a046bca7d6bab29fb0d3d51c6e6
bnxt_en: Fix the vlan_tci exact match check.

It is possible that OVS may set don’t care for DEI/CFI bit in
vlan_tci mask. Hence, checking for vlan_tci exact match will endup
in a vlan flow rejection.

This patch fixes the problem by checking for vlan_pcp and vid
separately, instead of checking for the entire vlan_tci.

Fixes: 1c3b97cebb6b (bnxt_en: do not allow wildcard matches for L2 flows)
Signed-off-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c