Soft Patch Panel
 help / color / mirror / Atom feed
From: Yasufumi Ogawa <yasufum.o@gmail.com>
To: Itsuro Oda <oda@valinux.co.jp>
Cc: spp@dpdk.org, ferruh.yigit@intel.com
Subject: Re: [spp] [PATCH 1/1] spp_primary: enable use of eth_vhost
Date: Wed, 29 Jan 2020 11:18:29 +0900	[thread overview]
Message-ID: <7f7e98c2-32b9-7b08-9125-e4b66ac83a43@gmail.com> (raw)
In-Reply-To: <20200128235251.23813-2-oda@valinux.co.jp>

On 2020/01/29 8:52, Itsuro Oda wrote:
> This patch enables spp_primary to use eth_vhost by --vdev option.
It's LGTM. Although tag of title should be 'shared', I'd like to correct it.

Applied, thanks!
> 
> 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"
> 

      reply	other threads:[~2020-01-29  2:17 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 ` [spp] [PATCH 1/1] " Itsuro Oda
2020-01-29  2:18   ` Yasufumi Ogawa [this message]

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=7f7e98c2-32b9-7b08-9125-e4b66ac83a43@gmail.com \
    --to=yasufum.o@gmail.com \
    --cc=ferruh.yigit@intel.com \
    --cc=oda@valinux.co.jp \
    --cc=spp@dpdk.org \
    /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).