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
ring: return free space when enqueuing
[dpdk.git]
/
lib
/
librte_port
/
rte_port_ras.c
diff --git
a/lib/librte_port/rte_port_ras.c
b/lib/librte_port/rte_port_ras.c
index
c4bb508
..
4de0945
100644
(file)
--- a/
lib/librte_port/rte_port_ras.c
+++ b/
lib/librte_port/rte_port_ras.c
@@
-167,7
+167,7
@@
send_burst(struct rte_port_ring_writer_ras *p)
uint32_t nb_tx;
nb_tx = rte_ring_sp_enqueue_burst(p->ring, (void **)p->tx_buf,
- p->tx_buf_count);
+ p->tx_buf_count
, NULL
);
RTE_PORT_RING_WRITER_RAS_STATS_PKTS_DROP_ADD(p, p->tx_buf_count - nb_tx);
for ( ; nb_tx < p->tx_buf_count; nb_tx++)