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
examples/vhost_blk: replace SMP barrier with thread fence
[dpdk.git]
/
lib
/
librte_vhost
/
virtio_net.c
diff --git
a/lib/librte_vhost/virtio_net.c
b/lib/librte_vhost/virtio_net.c
index
10dec5e
..
6c51286
100644
(file)
--- a/
lib/librte_vhost/virtio_net.c
+++ b/
lib/librte_vhost/virtio_net.c
@@
-1567,7
+1567,7
@@
virtio_dev_rx_async_submit_split(struct virtio_net *dev,
src_it = it_pool;
dst_it = it_pool + 1;
segs_await = 0;
src_it = it_pool;
dst_it = it_pool + 1;
segs_await = 0;
- vq->async_pkts_inflight_n +=
n_pkts
;
+ vq->async_pkts_inflight_n +=
pkt_burst_idx
;
if (unlikely(n_pkts < (int)pkt_burst_idx)) {
/*
if (unlikely(n_pkts < (int)pkt_burst_idx)) {
/*
@@
-1587,7
+1587,7
@@
virtio_dev_rx_async_submit_split(struct virtio_net *dev,
if (pkt_burst_idx) {
n_pkts = vq->async_ops.transfer_data(dev->vid,
queue_id, tdes, 0, pkt_burst_idx);
if (pkt_burst_idx) {
n_pkts = vq->async_ops.transfer_data(dev->vid,
queue_id, tdes, 0, pkt_burst_idx);
- vq->async_pkts_inflight_n +=
n_pkts
;
+ vq->async_pkts_inflight_n +=
pkt_burst_idx
;
if (unlikely(n_pkts < (int)pkt_burst_idx))
pkt_err = pkt_burst_idx - n_pkts;
if (unlikely(n_pkts < (int)pkt_burst_idx))
pkt_err = pkt_burst_idx - n_pkts;