numam-dpdk/lib/librte_vhost
Marvin Liu 8b13d12a16 vhost: fix shadow update
Defer shadow ring update introduces functional issue which has been
described in Eugenio's fix patch.

The current implementation of vhost_net in packed vring tries to fill
the shadow vector before send any actual changes to the guest. While
this can be beneficial for the throughput, it conflicts with some
bufferfloats methods like the linux kernel napi, that stops
transmitting packets if there are too much bytes/buffers in the
driver.

It also introduces performance issue when frontend run much faster than
backend. Frontend may not be able to collect available descs when shadow
update is deferred. That will harm RFC2544 throughput.

Appropriate choice is to remove deferred shadowed update method.
Now shadowed used descs are flushed at the end of dequeue function.

Fixes: 31d6c6a5b8 ("vhost: optimize packed ring dequeue")
Cc: stable@dpdk.org

Signed-off-by: Marvin Liu <yong.liu@intel.com>
Tested-by: Yinan Wang <yinan.wang@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
2020-04-21 13:57:08 +02:00
..
fd_man.c vhost: fix race condition when adding fd in the fdset 2018-12-21 16:22:40 +01:00
fd_man.h vhost: fix race condition when adding fd in the fdset 2018-12-21 16:22:40 +01:00
iotlb.c vhost: make IOTLB cache name unique among processes 2020-04-21 13:57:07 +02:00
iotlb.h vhost: replace IOTLB license with SPDX tag 2019-08-05 16:06:11 +02:00
Makefile build: disable experimental API check internally 2020-04-14 16:22:34 +02:00
meson.build build: disable experimental API check internally 2020-04-14 16:22:34 +02:00
rte_vdpa.h vhost: prefix vDPA enum value for PCI address type 2020-04-21 13:57:07 +02:00
rte_vhost_crypto.h enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
rte_vhost_version.map vhost: support config change slave message 2020-01-17 19:46:26 +01:00
rte_vhost.h vhost/crypto: add missing user protocol flag 2020-04-21 13:57:07 +02:00
socket.c vhost: do not treat empty socket message as error 2020-02-05 11:47:18 +01:00
vdpa.c vhost: prefix vDPA enum value for PCI address type 2020-04-21 13:57:07 +02:00
vhost_crypto.c vhost/crypto: add missing user protocol flag 2020-04-21 13:57:07 +02:00
vhost_user.c vhost: protect log address translation in IOTLB update 2020-02-14 12:42:13 +01:00
vhost_user.h replace packed attributes 2020-04-16 18:16:46 +02:00
vhost.c vhost: protect log address translation in IOTLB update 2020-02-14 12:42:13 +01:00
vhost.h vhost: remove unused variable 2020-04-21 13:57:07 +02:00
virtio_crypto.h vhost: add virtio crypto header file 2018-04-14 00:43:30 +02:00
virtio_net.c vhost: fix shadow update 2020-04-21 13:57:08 +02:00