net/bnxt: fix packet type index calculation
Fix mask to include all four bits of hardware packet type
field.
Fixes: 97b1db288d
("net/bnxt: use table based packet type translation")
Cc: stable@dpdk.org
Signed-off-by: Lance Richardson <lance.richardson@broadcom.com>
Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
This commit is contained in:
parent
51a7d36272
commit
5b4279b50f
@ -402,7 +402,7 @@ bnxt_init_ptype_table(void)
|
||||
|
||||
ip6 = i & (RX_PKT_CMPL_FLAGS2_IP_TYPE >> 7);
|
||||
tun = i & (RX_PKT_CMPL_FLAGS2_T_IP_CS_CALC >> 2);
|
||||
type = (i & 0x38) << 9;
|
||||
type = (i & 0x78) << 9;
|
||||
|
||||
if (!tun && !ip6)
|
||||
l3 = RTE_PTYPE_L3_IPV4_EXT_UNKNOWN;
|
||||
|
Loading…
Reference in New Issue
Block a user