From: Lance Richardson Date: Fri, 22 Jan 2021 21:49:00 +0000 (-0500) Subject: net/bnxt: fix null termination of Rx mbuf chain X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=c711cc2a982d8849ab7ba2582b41c5a4ba5510ee;p=dpdk.git net/bnxt: fix null termination of Rx mbuf chain The last mbuf in a multi-segment packet needs to be NULL-terminated. Fixes: 0958d8b6435d ("net/bnxt: support LRO") Cc: stable@dpdk.org Signed-off-by: Lance Richardson Reviewed-by: Somnath Kotur Reviewed-by: Ajit Khaparde --- diff --git a/drivers/net/bnxt/bnxt_rxr.c b/drivers/net/bnxt/bnxt_rxr.c index 969cae19fc..c34a8905e7 100644 --- a/drivers/net/bnxt/bnxt_rxr.c +++ b/drivers/net/bnxt/bnxt_rxr.c @@ -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; }