net/bnxt: fix null termination of receive mbuf chain
PATCH 1/1 net/bnxt: fix null termination of receive mbuf chain
The last mbuf in a multi-segment packet needs to be NULL-terminated.
Fixes 0958d8b6435d ("net/bnxt: support LRO")
Signed-off-by Lance Richardson <[email protected]>
Reviewed-by Somnath Kotur <[email protected]>
Reviewed-by Ajit Kumar Khaparde <[email protected]>
--- drivers/net/bnxt/bnxt_rxr.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/bnxt/bnxt_rxr.c +1 -0
@@ -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 ; }
Signature · 1 line
2.25.1
Quoted 9 lines · Lance Richardson
The last mbuf in a multi-segment packet needs to be NULL-terminated.
Fixes 0958d8b6435d ("net/bnxt: support LRO")Signed-off-by Lance Richardson <[email protected]>Reviewed-by Somnath Kotur <[email protected]>Reviewed-by Ajit Kumar Khaparde <[email protected]>
Patch applied to dpdk-next-net-brcm.
Quoted 19 lines
--- drivers/net/bnxt/bnxt_rxr.c | 1 + 1 file changed, 1 insertion(+)drivers/net/bnxt/bnxt_rxr.c +1
-1@@ -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 ; } --2.25.1