Skip to content

vhost: vhost-cuse removal and code path refactoring

Yuanhan Liu dpdk-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 17 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7vhost: remove vhost-cuseconfig/common_base lib/librte_vhost/Makefile lib/librte_vhost/eventfd_link/Makefile +9 more+4 -18864 replies
2/7vhost: remove sub source dirlib/librte_vhost/Makefile lib/librte_vhost/fd_man.c lib/librte_vhost/fd_man.h +4 more+3 -31 reply
3/7vhost: refactor source code structurelib/librte_vhost/Makefile lib/librte_vhost/socket.c lib/librte_vhost/vhost.c +7 more+1489 -15991 reply
4/7vhost: fold common message handlerslib/librte_vhost/vhost_user.c+31 -841 reply
5/7vhost: unify function nameslib/librte_vhost/vhost_user.c+30 -301 reply
6/7vhost: get device oncelib/librte_vhost/vhost_user.c+47 -1131 reply
7/7vhost: simplify features set/getlib/librte_vhost/vhost_user.c+8 -126 replies

Reviews trailers per patch

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

PatchMaxime Coquelin
1/7R-b
2/7R-b
3/7R-b
4/7R-b
5/7R-b
6/7R-b
7/7R-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/7] vhost: vhost-cuse removal and code path refactoring

The first patch removes the vhost-cuse (see following link for the deprecate note)

    http://dpdk.org/ml/archives/dev/2016-July/044080.html

After the removal, there is no reason to keep the vhost_user sub source dir any more. This also brings a chance to rename all those files in a more proper way (see patch 3 for details).

---
Yuanhan Liu (7):
vhost: remove vhost-cuse
vhost: remove sub source dir
vhost: refactor source code structure
vhost: fold common message handlers
vhost: unify function names
vhost: get device once
vhost: simplify features set/get

 config/common_base                                 |   6 +-
 lib/librte_vhost/Makefile                          |  13 +-
 lib/librte_vhost/eventfd_link/Makefile             |  41 -
 lib/librte_vhost/eventfd_link/eventfd_link.c       | 277 -------
 lib/librte_vhost/eventfd_link/eventfd_link.h       |  94 ---
 lib/librte_vhost/{vhost_user => }/fd_man.c         |   0
 lib/librte_vhost/{vhost_user => }/fd_man.h         |   0
 lib/librte_vhost/libvirt/qemu-wrap.py              | 387 ---------
 .../{vhost_user/vhost-net-user.c => socket.c}      | 209 +----
 lib/librte_vhost/vhost.c                           | 409 +++++++++
 lib/librte_vhost/{vhost-net.h => vhost.h}          |  24 +-
 lib/librte_vhost/vhost_cuse/eventfd_copy.c         | 104 ---
 lib/librte_vhost/vhost_cuse/eventfd_copy.h         |  45 -
 lib/librte_vhost/vhost_cuse/vhost-net-cdev.c       | 431 ----------
 lib/librte_vhost/vhost_cuse/virtio-net-cdev.c      | 433 ----------
 lib/librte_vhost/vhost_cuse/virtio-net-cdev.h      |  56 --
 lib/librte_vhost/vhost_user.c                      | 917 +++++++++++++++++++++
 .../{vhost_user/vhost-net-user.h => vhost_user.h}  |  17 +-
 lib/librte_vhost/vhost_user/virtio-net-user.c      | 470 -----------
 lib/librte_vhost/vhost_user/virtio-net-user.h      |  62 --
 lib/librte_vhost/virtio-net.c                      | 847 -------------------
 lib/librte_vhost/{vhost_rxtx.c => virtio_net.c}    |   4 +-
 mk/rte.app.mk                                      |   3 -
 23 files changed, 1367 insertions(+), 3482 deletions(-)
 delete mode 100644 lib/librte_vhost/eventfd_link/Makefile
 delete mode 100644 lib/librte_vhost/eventfd_link/eventfd_link.c
 delete mode 100644 lib/librte_vhost/eventfd_link/eventfd_link.h
 rename lib/librte_vhost/{vhost_user => }/fd_man.c (100%)
 rename lib/librte_vhost/{vhost_user => }/fd_man.h (100%)
 delete mode 100755 lib/librte_vhost/libvirt/qemu-wrap.py
 rename lib/librte_vhost/{vhost_user/vhost-net-user.c => socket.c} (71%)
 create mode 100644 lib/librte_vhost/vhost.c
 rename lib/librte_vhost/{vhost-net.h => vhost.h} (92%)
 delete mode 100644 lib/librte_vhost/vhost_cuse/eventfd_copy.c
 delete mode 100644 lib/librte_vhost/vhost_cuse/eventfd_copy.h
 delete mode 100644 lib/librte_vhost/vhost_cuse/vhost-net-cdev.c
 delete mode 100644 lib/librte_vhost/vhost_cuse/virtio-net-cdev.c
 delete mode 100644 lib/librte_vhost/vhost_cuse/virtio-net-cdev.h
 create mode 100644 lib/librte_vhost/vhost_user.c
 rename lib/librte_vhost/{vhost_user/vhost-net-user.h => vhost_user.h} (87%)
 delete mode 100644 lib/librte_vhost/vhost_user/virtio-net-user.c
 delete mode 100644 lib/librte_vhost/vhost_user/virtio-net-user.h
 delete mode 100644 lib/librte_vhost/virtio-net.c
 rename lib/librte_vhost/{vhost_rxtx.c => virtio_net.c} (99%)
Signature · 1 line
1.9.0