On 10/29/2015 2:34 AM, Pavel Boldin wrote: > 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: Don't forget signoff and version change message next time. Or if you have time today, could you send a new version?
Acked-by: Huawei Xie <huawei.xie at intel.com> > 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(-) >