net/bnxt: fix ptype index calculation
PATCH 1/1 net/bnxt: fix ptype index calculation
Fix mask to include all four bits of hardware packet type field.
Fixes 97b1db288dd0 ("net/bnxt: use table based packet type translation")
Signed-off-by Lance Richardson <[email protected]>
--- drivers/net/bnxt/bnxt_rxr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/bnxt/bnxt_rxr.c +1 -1
@@ -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 ;
Signature · 1 line
2.25.1
Quoted 7 lines · Lance Richardson
Fix mask to include all four bits of hardware packet type field.
Fixes 97b1db288dd0 ("net/bnxt: use table based packet type translation")Signed-off-by Lance Richardson <[email protected]>
Patch applied to dpdk-next-net-brcm.
Quoted 20 lines
--- drivers/net/bnxt/bnxt_rxr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/net/bnxt/bnxt_rxr.c +1
-2@@ -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 ; --2.25.1