Skip to content

Commit

Permalink
net/bnxt: fix null termination of Rx mbuf chain
Browse files Browse the repository at this point in the history
[ upstream commit c711cc2 ]

The last mbuf in a multi-segment packet needs to be
NULL-terminated.

Fixes: 0958d8b ("net/bnxt: support LRO")

Signed-off-by: Lance Richardson <lance.richardson@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
  • Loading branch information
Lance Richardson authored and bluca committed Feb 4, 2021
1 parent ff62c0e commit 1dd7ec9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/bnxt/bnxt_rxr.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,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;
}
Expand Down

0 comments on commit 1dd7ec9

Please sign in to comment.