From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 0D82858CB for ; Sun, 4 Dec 2016 01:17:47 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga103.fm.intel.com with ESMTP; 03 Dec 2016 16:17:46 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,295,1477983600"; d="scan'208";a="13266364" Received: from dpdk06.sh.intel.com ([10.239.129.195]) by orsmga002.jf.intel.com with ESMTP; 03 Dec 2016 16:17:45 -0800 From: Jianfeng Tan To: dev@dpdk.org Cc: yuanhan.liu@linux.intel.com, stephen@networkplumber.org, Jianfeng Tan Date: Sun, 4 Dec 2016 00:18:17 +0000 Message-Id: <1480810702-114815-1-git-send-email-jianfeng.tan@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [dpdk-dev] [PATCH 0/5] Interrupt mode for virtio PMD X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Dec 2016 00:17:48 -0000 First of all, interrupt mode here means per-queue Rx interrupt support. Historically, virtio PMD can only be binded to igb_uio or uio_pci_generic, and not for vfio-pci. Besides, quote from http://dpdk.org/doc/guides-16.11/rel_notes/release_2_1.html: "- Per queue RX interrupt events are only allowed in VFIO which supports multiple MSI-X vectors. - In UIO, the RX interrupt shares the same vector with other interrupts. When the RX interrupt and LSC interrupt are both enabled, only the former is available. - RX interrupt is only implemented for the linuxapp target" As Linux starts to support vfio noiommu mode since 4.8.0, it's a good chance to enable per queue RX interrupt for virtio PMD. This patchset is an attempt to enable this. Note: this patch set is still under developping, not ready for test. Signed-off-by: Jianfeng Tan Jianfeng Tan (5): net/virtio: add Rx descriptor check net/virtio: setup Rx fastpath interrupts net/virtio: remove Rx queue interrupts when stopping net/virtio: add Rx queue intr enable/disable functions examples/l3fwd: add parse-ptype option drivers/net/virtio/virtio_ethdev.c | 74 +++++++++++++++++++++++++++++++++++--- drivers/net/virtio/virtio_ethdev.h | 3 ++ drivers/net/virtio/virtio_rxtx.c | 9 +++++ drivers/net/virtio/virtqueue.c | 11 ------ drivers/net/virtio/virtqueue.h | 26 +++++++++++++- examples/l3fwd-power/main.c | 60 ++++++++++++++++++++++++++++++- 6 files changed, 165 insertions(+), 18 deletions(-) -- 2.7.4