vhost add vectorized data path
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest5 patches 6 repliesIn review
- v25 patches 9 repliesSuperseded
- v15 patches 3 repliesSuperseded
Changes in v3 from the cover letter
* rename vectorized datapath file
* eliminate the impact when avx512 disabled
* dynamically allocate memory regions structure
* remove unlikely hint for in_order
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | vhost: add vectorized data pathdoc/ doc/ drivers/ +4 more | +52 | 0 replies | |
| 2/5 | vhost: reuse packed ring functionslib/ lib/ | +214 | 0 replies | |
| 3/5 | vhost: prepare memory regions addresseslib/ lib/ | +34 | 0 replies | |
| 4/5 | vhost: add packed ring vectorized dequeuelib/ lib/ lib/ +1 more | +236 | 0 replies | |
| 5/5 | vhost: add packed ring vectorized enqueuelib/ lib/ lib/ | +182 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [dpdk-dev] [PATCH v3 0/5] vhost add vectorized data path
Packed ring format is imported since virtio spec 1.1. All descriptors are compacted into one single ring when packed ring format is on. It is straight forward that ring operations can be accelerated by utilizing SIMD instructions.
This patch set will introduce vectorized data path in vhost library. If vectorized option is on, operations like descs check, descs writeback, address translation will be accelerated by SIMD instructions. On skylake server, it can bring 6% performance gain in loopback case and around 4% performance gain in PvP case.
Vhost application can choose whether using vectorized acceleration, just like external buffer feature. If platform or ring format not support vectorized function, vhost will fallback to use default batch function. There will be no impact in current data path.
v3:
* rename vectorized datapath file
* eliminate the impact when avx512 disabled
* dynamically allocate memory regions structure
* remove unlikely hint for in_order
v2:
* add vIOMMU support
* add dequeue offloading
* rebase code
Marvin Liu (5):
vhost: add vectorized data path
vhost: reuse packed ring functions
vhost: prepare memory regions addresses
vhost: add packed ring vectorized dequeue
vhost: add packed ring vectorized enqueue
doc/guides/nics/vhost.rst | 5 + doc/guides/prog_guide/vhost_lib.rst | 12 + drivers/net/vhost/rte_eth_vhost.c | 17 +- lib/librte_vhost/meson.build | 16 ++ lib/librte_vhost/rte_vhost.h | 1 + lib/librte_vhost/socket.c | 5 + lib/librte_vhost/vhost.c | 11 + lib/librte_vhost/vhost.h | 239 +++++++++++++++++++ lib/librte_vhost/vhost_user.c | 26 +++ lib/librte_vhost/virtio_net.c | 258 ++++----------------- lib/librte_vhost/virtio_net_avx.c | 344 ++++++++++++++++++++++++++++ 11 files changed, 718 insertions(+), 216 deletions(-) create mode 100644 lib/librte_vhost/virtio_net_avx.c
Signature · 1 line
2.17.1