Soft Patch Panel
 help / color / mirror / Atom feed
From: Itsuro Oda <oda@valinux.co.jp>
To: spp@dpdk.org, ferruh.yigit@intel.com, yasufum.o@gmail.com
Subject: [spp] [PATCH 1/1] spp_primary: enable use of eth_vhost
Date: Wed, 29 Jan 2020 08:52:51 +0900	[thread overview]
Message-ID: <20200128235251.23813-2-oda@valinux.co.jp> (raw)
In-Reply-To: <20200128235251.23813-1-oda@valinux.co.jp>

This patch enables spp_primary to use eth_vhost by --vdev option.

Fixes: 5094c9b88cf9 (shared: switch to use vhost PMD for SPP)
Signed-off-by: Itsuro Oda <oda@valinux.co.jp>
---
 src/shared/common.c | 4 +++-
 src/shared/common.h | 3 ++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/shared/common.c b/src/shared/common.c
index 5fdb29f..d878c5a 100644
--- a/src/shared/common.c
+++ b/src/shared/common.c
@@ -91,7 +91,9 @@ int parse_dev_name(char *dev_name, int *port_type, int *port_id)
 	} else if (strncmp(dev_name, VDEV_ETH_VHOST,
 				strlen(VDEV_ETH_VHOST)) == 0 ||
 			strncmp(dev_name, VDEV_NET_VHOST,
-				strlen(VDEV_NET_VHOST)) == 0) {
+				strlen(VDEV_NET_VHOST)) == 0 ||
+			strncmp(dev_name, VDEV_SPP_VHOST,
+				strlen(VDEV_SPP_VHOST)) == 0) {
 		dev_str_len = strlen(VDEV_NET_VHOST);
 		pid_len = dev_name_len - dev_str_len;
 		strncpy(pid_str, dev_name + strlen(VDEV_NET_VHOST),
diff --git a/src/shared/common.h b/src/shared/common.h
index adabb79..b4af73c 100644
--- a/src/shared/common.h
+++ b/src/shared/common.h
@@ -34,8 +34,9 @@
 
 #define VDEV_ETH_RING "eth_ring"
 #define VDEV_NET_RING "net_ring"
-#define VDEV_ETH_VHOST "spp_vhost"
+#define VDEV_ETH_VHOST "eth_vhost"
 #define VDEV_NET_VHOST "net_vhost"
+#define VDEV_SPP_VHOST "spp_vhost"
 #define VDEV_NET_PCAP "net_pcap"
 #define VDEV_ETH_TAP "eth_tap"
 #define VDEV_NET_TAP "net_tap"
-- 
2.17.1


  reply	other threads:[~2020-01-28 23:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-28 23:52 [spp] [PATCH 0/1] " Itsuro Oda
2020-01-28 23:52 ` Itsuro Oda [this message]
2020-01-29  2:18   ` [spp] [PATCH 1/1] " Yasufumi Ogawa

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=20200128235251.23813-2-oda@valinux.co.jp \
    --to=oda@valinux.co.jp \
    --cc=ferruh.yigit@intel.com \
    --cc=spp@dpdk.org \
    --cc=yasufum.o@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).