From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mirantis.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=zHTSKU8/lwBVmPDDCFlhZvxDvFEDQCFh/0LIOss/h/E=; b=V0l4zeyUwfsPRQjHIpzK5c/uJ3Mj8OAdbnqnj8GpNkFqJA7HZBhTWOrBBpExrZ13Qb Yz93fQvKNu0PLvYeWnIsXOUiGSUPh3R53xO9X0M5iU1wJkrDYuURBjq/Re7Iq0mM/yiH p1RbTQqufUm8o5sVzREK+zn+e+7zP50gGjjCk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=zHTSKU8/lwBVmPDDCFlhZvxDvFEDQCFh/0LIOss/h/E=; b=UCTSZnlJW93xAtiWxJwcmb0jE+dKcZoTGhKvDQFtIS9pyxQnV06SdAIaBpyFf9WsYU 5NG435L/H0IyebITBKndS7+2w8j/ZKSh9iou49bc6rqhdGF3AG0OXJMMbAuB0ujIUTH8 UVJinH3tc5PueVarO4KHpfYGSz1z0iiBB4FGSp/KV0gsBTl0pIjj+GtbqF1Uhi3/dyhY oBuIRKsnmFiAFFpfZrYrcW4Bp2Tmnfynlsz6H1+wyvUTIw9zMWGyNxb7qEYxxPmpUVWH Vnko9+q+OR0FaoJZ9mnsasR1TtkJYLWK2kJIQll6583dQefxMtoeyIk0xrC4rT3V8DyY qTxg== X-Gm-Message-State: ALoCoQkuFyTcz7p35nZ9Fh2dPsXu2+iqSDRqdbRJqfvBsgSrU4USlFh2eCgEvzLBCxVOjHjy4plB X-Received: by 10.112.236.8 with SMTP id uq8mr24638328lbc.116.1446057234027; Wed, 28 Oct 2015 11:33:54 -0700 (PDT) Received: from pboldin-pc.kha.mirantis.net ([194.213.110.67]) by smtp.gmail.com with ESMTPSA id g65sm2874107lfb.11.2015.10.28.11.33.52 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 28 Oct 2015 11:33:53 -0700 (PDT) From: Pavel Boldin To: dev@dpdk.org Date: Wed, 28 Oct 2015 20:33:46 +0200 Message-Id: X-Mailer: git-send-email 1.9.1 In-Reply-To: <1440787880-7079-1-git-send-email-pboldin@mirantis.com> References: <1440787880-7079-1-git-send-email-pboldin@mirantis.com> Subject: [dpdk-dev] [PATCH v6 0/3] vhost: eventfd_link refactoring X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Oct 2015 18:33:54 -0000 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