git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net/ngbe: fix packet statistics
[dpdk.git]
/
drivers
/
net
/
bnxt
/
bnxt_txr.c
diff --git
a/drivers/net/bnxt/bnxt_txr.c
b/drivers/net/bnxt/bnxt_txr.c
index
e2b7e40
..
3b8f238
100644
(file)
--- a/
drivers/net/bnxt/bnxt_txr.c
+++ b/
drivers/net/bnxt/bnxt_txr.c
@@
-602,6
+602,9
@@
int bnxt_flush_tx_cmp(struct bnxt_cp_ring_info *cpr)
cons = RING_CMPL(ring_mask, raw_cons);
txcmp = (struct tx_cmpl *)&cp_desc_ring[cons];
+ if (!bnxt_cpr_cmp_valid(txcmp, raw_cons, ring_mask + 1))
+ break;
+
opaque = rte_cpu_to_le_32(txcmp->opaque);
raw_cons = NEXT_RAW_CMP(raw_cons);