Skip to content

vhost: eventfd_link refactoring

Pavel Boldin dpdk-dev 2 versions – Applied

Status from this message: Applied, thanks

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest3 patches 2 repliesApplied
  2. v54 patches 9 repliesSuperseded

Patches in v6 Applied

#Subject and filesSizeRepliesApplied
1/3vhost: eventfd_link: refactoring EVENTFD_COPY handlerlib/librte_vhost/eventfd_link/eventfd_link.c+100 -810 replies
2/3vhost: add EVENTFD_COPY2 ioctllib/librte_vhost/eventfd_link/eventfd_link.c lib/librte_vhost/eventfd_link/eventfd_link.h+84 -50 replies
3/3vhost: using EVENTFD_COPY2lib/librte_vhost/vhost_cuse/eventfd_copy.c lib/librte_vhost/vhost_cuse/eventfd_copy.h lib/librte_vhost/vhost_cuse/vhost-net-cdev.c+44 -190 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchHuawei Xie
SeriesA-b
1/3
2/3
3/3

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

Read the v6 thread

Cover letter [PATCH v6 0/3] vhost: eventfd_link refactoring

The patchset contains an attempt at the refactoring the eventfd_link kernel module that is used to steal an FD in DPDK.

The first patch refactors old EVENTFD_COPY handler fixing the codepath and errors returned from the kernel space. This patch is retained for the backward compatibility.

The next one introduces a new more clean implementation of the EVENTFD_COPY2 ioctl that allocates a new fd for the `struct file' being stolen.

The last patch uses this new mechanism in the DPDK userspace.

Pavel Boldin (3):
vhost: eventfd_link: refactoring EVENTFD_COPY handler
vhost: add EVENTFD_COPY2 ioctl
vhost: using EVENTFD_COPY2

 lib/librte_vhost/eventfd_link/eventfd_link.c | 249 ++++++++++++++++++---------
 lib/librte_vhost/eventfd_link/eventfd_link.h |  28 ++-
 lib/librte_vhost/vhost_cuse/eventfd_copy.c   |  54 ++++--
 lib/librte_vhost/vhost_cuse/eventfd_copy.h   |   6 +
 lib/librte_vhost/vhost_cuse/vhost-net-cdev.c |   3 +
 5 files changed, 231 insertions(+), 109 deletions(-)
Signature · 1 line
1.9.1