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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Aug 2018 11:07:05 +0000 (13:07 +0200)
commit5e00d96990821556d1eff891a06b20f235bd7a19
treeb0493e75162cb683cfc8eb08689132482e5fb51b
parent451530c5ac3fc9863d7b18346300d173f257c35e
bnxt_en: Fix the vlan_tci exact match check.

[ Upstream commit e32d4e60b350124065e0ffd9c91ac13a439aee9a ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c