net/mvpp2: apply flow control after port init
[dpdk.git] / drivers / net / bnxt / bnxt_rxr.c
index a195bf1..75d49d2 100644 (file)
@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: BSD-3-Clause
- * Copyright(c) 2014-2018 Broadcom
+ * Copyright(c) 2014-2021 Broadcom
  * All rights reserved.
  */
 
@@ -325,6 +325,7 @@ static int bnxt_rx_pages(struct bnxt_rx_queue *rxq,
                 */
                rte_bitmap_set(rxr->ag_bitmap, ag_cons);
        }
+       last->next = NULL;
        bnxt_prod_ag_mbuf(rxq);
        return 0;
 }
@@ -402,7 +403,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;