mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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:
parent
437f058850
commit
12e99b63d2
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue