ofed: Fix a logic inversion from IfAPI conversion

Reported by:	bartosz.sobczak_intel.com
Fixes:		3e142e0767 ("ofed: Mechanically convert to IfAPI")
Sponsored by:	Juniper Networks, Inc.
This commit is contained in:
Justin Hibbits 2023-04-19 11:21:32 -04:00
parent 437f058850
commit 12e99b63d2

View File

@ -180,7 +180,7 @@ static inline u16 rdma_vlan_dev_vlan_id(if_t dev)
{
uint16_t tag;
if (if_gettype(dev) != IFT_ETHER || if_getpcp(dev) == IFNET_PCP_NONE)
if (if_gettype(dev) == IFT_ETHER && if_getpcp(dev) != IFNET_PCP_NONE)
return 0x0000; /* prio-tagged traffic */
if (VLAN_TAG(__DECONST(if_t, dev), &tag) != 0)
return 0xffff;