git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b579277
)
net/bnxt: fix null termination of Rx mbuf chain
author
Lance Richardson
<lance.richardson@broadcom.com>
Fri, 22 Jan 2021 21:49:00 +0000
(16:49 -0500)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Fri, 29 Jan 2021 17:16:08 +0000
(18:16 +0100)
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 <lance.richardson@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_rxr.c
patch
|
blob
|
history
diff --git
a/drivers/net/bnxt/bnxt_rxr.c
b/drivers/net/bnxt/bnxt_rxr.c
index
969cae1
..
c34a890
100644
(file)
--- 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;
}