Skip to content

Transform the vhost example to two parts: vhost library and example.

Huawei Xie dpdk-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3examples/vhost: remove vhost exampleexamples/vhost/Makefile examples/vhost/eventfd_link/Makefile examples/vhost/eventfd_link/eventfd_link.c +8 more+0 -63340 replies
2/3lib/librte_vhost: vhost library support to facilitate integration with DPDK accelerated vswitchconfig/common_linuxapp lib/Makefile lib/librte_vhost/Makefile +9 more+2500 -05 replies
3/3examples/vhost: vhost example based on vhost library.examples/vhost/Makefile examples/vhost/libvirt/qemu-wrap.py examples/vhost/main.c +1 more+3672 -00 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchKonstantin AnanyevThomos Long
1/3A-b A-b
2/3A-b A-b
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] Transform the vhost example to two parts: vhost library and example.

This transform is to facilitate integration with DPDK accelerated ethernet switch.

Huawei Xie (3):
remove vhost example
vhost library support to facilitate integration with DPDK accelerated
vswitch
This vhost example is based on vhost library. Besides, -
This patch fixes hundreds of 80 character limitation issues.
- Use structure assignment rather than memcpy in get_eth_conf
according to Stephen's comments.

 config/common_linuxapp                       |    7 +
 examples/vhost/Makefile                      |   10 +-
 examples/vhost/eventfd_link/Makefile         |   39 -
 examples/vhost/eventfd_link/eventfd_link.c   |  205 ---
 examples/vhost/eventfd_link/eventfd_link.h   |   79 -
 examples/vhost/libvirt/qemu-wrap.py          |    5 +-
 examples/vhost/main.c                        | 2205 ++++++++++----------------
 examples/vhost/main.h                        |   85 +-
 examples/vhost/vhost-net-cdev.c              |  367 -----
 examples/vhost/vhost-net-cdev.h              |   83 -
 examples/vhost/virtio-net.c                  | 1165 --------------
 examples/vhost/virtio-net.h                  |  161 --
 lib/Makefile                                 |    1 +
 lib/librte_vhost/Makefile                    |   48 +
 lib/librte_vhost/eventfd_link/Makefile       |   39 +
 lib/librte_vhost/eventfd_link/eventfd_link.c |  196 +++
 lib/librte_vhost/eventfd_link/eventfd_link.h |   40 +
 lib/librte_vhost/rte_virtio_net.h            |  222 +++
 lib/librte_vhost/vhost-net-cdev.c            |  394 +++++
 lib/librte_vhost/vhost-net-cdev.h            |  119 ++
 lib/librte_vhost/vhost_rxtx.c                |  316 ++++
 lib/librte_vhost/virtio-net.c                | 1113 +++++++++++++
 mk/rte.app.mk                                |    5 +
 23 files changed, 3371 insertions(+), 3533 deletions(-)
 delete mode 100644 examples/vhost/eventfd_link/Makefile
 delete mode 100644 examples/vhost/eventfd_link/eventfd_link.c
 delete mode 100644 examples/vhost/eventfd_link/eventfd_link.h
 mode change 100755 => 100644 examples/vhost/libvirt/qemu-wrap.py
 delete mode 100644 examples/vhost/vhost-net-cdev.c
 delete mode 100644 examples/vhost/vhost-net-cdev.h
 delete mode 100644 examples/vhost/virtio-net.c
 delete mode 100644 examples/vhost/virtio-net.h
 create mode 100644 lib/librte_vhost/Makefile
 create mode 100644 lib/librte_vhost/eventfd_link/Makefile
 create mode 100644 lib/librte_vhost/eventfd_link/eventfd_link.c
 create mode 100644 lib/librte_vhost/eventfd_link/eventfd_link.h
 create mode 100644 lib/librte_vhost/rte_virtio_net.h
 create mode 100644 lib/librte_vhost/vhost-net-cdev.c
 create mode 100644 lib/librte_vhost/vhost-net-cdev.h
 create mode 100644 lib/librte_vhost/vhost_rxtx.c
 create mode 100644 lib/librte_vhost/virtio-net.c
Signature · 1 line
1.8.1.4