From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Boldin Subject: [PATCH v6 0/3] vhost: eventfd_link refactoring Date: Wed, 28 Oct 2015 20:33:46 +0200 Message-ID: References: <1440787880-7079-1-git-send-email-pboldin@mirantis.com> To: dev@dpdk.org Return-path: Received: from mail-lb0-f173.google.com (mail-lb0-f173.google.com [209.85.217.173]) by dpdk.org (Postfix) with ESMTP id 673068D9D for ; Wed, 28 Oct 2015 19:33:54 +0100 (CET) Received: by lbbes7 with SMTP id es7so12313342lbb.2 for ; Wed, 28 Oct 2015 11:33:54 -0700 (PDT) In-Reply-To: <1440787880-7079-1-git-send-email-pboldin@mirantis.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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(-) -- 1.9.1