From: Lance Richardson Date: Mon, 18 Jan 2021 21:57:09 +0000 (-0500) Subject: net/bnxt: fix packet type index calculation X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=5b4279b50f7feca8b43a4f3360a7c42eeee8f17a;p=dpdk.git net/bnxt: fix packet type index calculation Fix mask to include all four bits of hardware packet type field. Fixes: 97b1db288dd0 ("net/bnxt: use table based packet type translation") Cc: stable@dpdk.org Signed-off-by: Lance Richardson Acked-by: Ajit Khaparde --- diff --git a/drivers/net/bnxt/bnxt_rxr.c b/drivers/net/bnxt/bnxt_rxr.c index a195bf1187..969cae19fc 100644 --- a/drivers/net/bnxt/bnxt_rxr.c +++ b/drivers/net/bnxt/bnxt_rxr.c @@ -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;