All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jianfeng Tan <jianfeng.tan@intel.com>
To: dev@dpdk.org
Cc: yuanhan.liu@linux.intel.com, david.marchand@6wind.com,
	Jianfeng Tan <jianfeng.tan@intel.com>
Subject: [PATCH 0/5] add LSC and Rxq interrupt for virtio-user
Date: Fri,  3 Mar 2017 17:56:38 +0000	[thread overview]
Message-ID: <1488563803-87754-1-git-send-email-jianfeng.tan@intel.com> (raw)

This is an attempt to add LSC and Rxq interrupt for a virtual device,
virtio-user (with the backend of both vhost-user and vhost-kernel).

HOW TO TEST:

Step 1: start testpmd with a virtual vhost device:
  $ testpmd -c 0x3 -n 4 --socket-mem 1024 --no-pci \
	  --vdev 'eth_vhost0,iface=/tmp/sock0' -- -i

Step 2: start l3fwd-power with a virtio-user device:
  $ l3fwd-power -c 0xc -n 4 --socket-mem 1024 --no-pci \
	  --file-prefix=l3fwd-pwd \
	  --vdev=virtio_user0,path=/tmp/sock0 \
	  -- -p 1 -P --config="(0,0,1)" \
	  --no-numa --parse-ptype

Step 3: start burst in testpmd
  (testpmd)> start tx_first

  Packets will be received and forwarded back by l3fwd-power.
  And l3fwd-power will keep in polling mode.

Step 4: stop burst in testpmd
  (testpmd)> stop

  l3fwd-power will change to interrupt mode with few CPU
  consumption.

Step 5: kill testpmd
  $ kill -p `pidof testpmd`

  The link status will be changed to down in l3fwd-power.

Signed-off-by: Jianfeng Tan <jianfeng.tan@intel.com>

Jianfeng Tan (5):
  eal/linux: add interrupt type for vdev
  net/virtio-user: add rxq interrupt mode support
  net/virtio-user: support to report net status
  net/virtio-user: add lsc support with vhost-user adapter
  net/virtio-user: add lsc support with vhost-kernel adapter

 drivers/net/virtio/virtio_ethdev.c                 | 46 +++++++++----
 drivers/net/virtio/virtio_ethdev.h                 |  2 +
 drivers/net/virtio/virtio_user/virtio_user_dev.c   | 52 ++++++++++++++-
 drivers/net/virtio/virtio_user/virtio_user_dev.h   |  4 +-
 drivers/net/virtio/virtio_user_ethdev.c            | 76 +++++++++++++++++++---
 lib/librte_eal/linuxapp/eal/eal_interrupts.c       | 32 ++++++++-
 lib/librte_eal/linuxapp/eal/eal_pci_vfio.c         |  2 +
 .../linuxapp/eal/include/exec-env/rte_interrupts.h |  5 +-
 8 files changed, 192 insertions(+), 27 deletions(-)

-- 
2.7.4

             reply	other threads:[~2017-03-03 17:55 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-03 17:56 Jianfeng Tan [this message]
2017-03-03 17:56 ` [PATCH 1/5] eal/linux: add interrupt type for vdev Jianfeng Tan
2017-03-03 17:56 ` [PATCH 2/5] net/virtio-user: add rxq interrupt mode support Jianfeng Tan
2017-03-17  6:47   ` Yuanhan Liu
2017-03-28  1:33     ` Tan, Jianfeng
2017-03-03 17:56 ` [PATCH 3/5] net/virtio-user: support to report net status Jianfeng Tan
2017-03-17  6:54   ` Yuanhan Liu
2017-03-27  7:46     ` Tan, Jianfeng
2017-03-29  6:33       ` Yuanhan Liu
2017-03-29  7:07         ` Tan, Jianfeng
2017-03-29  7:14           ` Yuanhan Liu
2017-03-29  7:48             ` Tan, Jianfeng
2017-03-29  8:00               ` Yuanhan Liu
2017-03-29  8:33                 ` Tan, Jianfeng
2017-03-29  8:36                   ` Yuanhan Liu
2017-03-30  3:14                     ` Tan, Jianfeng
2017-03-03 17:56 ` [PATCH 4/5] net/virtio-user: add lsc support with vhost-user adapter Jianfeng Tan
2017-03-17  8:29   ` Yuanhan Liu
2017-03-27  1:51     ` Tan, Jianfeng
2017-03-03 17:56 ` [PATCH 5/5] net/virtio-user: add lsc support with vhost-kernel adapter Jianfeng Tan
2017-03-28  8:21 ` [PATCH v2 0/5] add LSC and Rxq interrupt for virtio-user Jianfeng Tan
2017-03-28  8:21   ` [PATCH v2 1/5] eal/linux: add interrupt type for vdev Jianfeng Tan
2017-03-28  8:21   ` [PATCH v2 2/5] net/virtio: add interrupt configure " Jianfeng Tan
2017-03-29  6:27     ` Yuanhan Liu
2017-03-29  7:03       ` Tan, Jianfeng
2017-03-29  7:09         ` Yuanhan Liu
2017-03-29  7:27           ` Tan, Jianfeng
2017-03-29  7:30             ` Yuanhan Liu
2017-03-28  8:21   ` [PATCH v2 3/5] net/virtio-user: add rxq interrupt mode support Jianfeng Tan
2017-03-28  8:21   ` [PATCH v2 4/5] net/virtio-user: support to report net status Jianfeng Tan
2017-03-28  8:21   ` [PATCH v2 5/5] net/virtio-user: add lsc support Jianfeng Tan
2017-03-31 19:44 ` [PATCH v3 0/5] add LSC and Rxq interrupt for virtio-user Jianfeng Tan
2017-03-31 19:44   ` [PATCH v3 1/5] eal/linux: add interrupt type for vdev Jianfeng Tan
2017-03-31 19:44   ` [PATCH v3 2/5] net/virtio-user: move eventfd open/close into init/uninit Jianfeng Tan
2017-03-31 19:44   ` [PATCH v3 3/5] net/virtio-user: add rxq interrupt mode support Jianfeng Tan
2017-03-31 19:44   ` [PATCH v3 4/5] net/virtio-user: support to report net status Jianfeng Tan
2017-03-31 19:44   ` [PATCH v3 5/5] net/virtio-user: add lsc support Jianfeng Tan
2017-04-01  5:13     ` Yuanhan Liu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1488563803-87754-1-git-send-email-jianfeng.tan@intel.com \
    --to=jianfeng.tan@intel.com \
    --cc=david.marchand@6wind.com \
    --cc=dev@dpdk.org \
    --cc=yuanhan.liu@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.