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)
commite32d4e60b350124065e0ffd9c91ac13a439aee9a
tree3c8758b85442fe0f085f6b700466f63962c3f6c9
parent26420d9ce0879cfbe0f3b4c39aae8c238ce9479f
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: e85a9be93cf1 (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