All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Sriram Narasimhan <sriram.narasimhan@hp.com>
Cc: netdev@vger.kernel.org, stephen@networkplumber.org
Subject: Re: [PATCH] iptuntap: allow creation of multi-queue tun/tap device
Date: Sun, 9 Jun 2013 14:11:23 +0300	[thread overview]
Message-ID: <20130609111123.GA16406@redhat.com> (raw)
In-Reply-To: <1369348589-38730-1-git-send-email-sriram.narasimhan@hp.com>

On Thu, May 23, 2013 at 03:36:29PM -0700, Sriram Narasimhan wrote:
> This patch adds multi_queue option to ip tuntap.
> This allows IFF_MULTI_QUEUE flag to be specified during
> tun/tap device creation enabling multi-queue support in tun/tap
> device.
> 
> Example: ip tuntap add dev tap0 mode tap multi_queue
> 
> Signed-off-by: Sriram Narasimhan <sriram.narasimhan@hp.com>

Looks useful.

Stephen, what do you think?
Could you pick this up please?

> ---
>  ip/iptuntap.c |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)
> 
> diff --git a/ip/iptuntap.c b/ip/iptuntap.c
> index 3d9ad7d..2391af2 100644
> --- a/ip/iptuntap.c
> +++ b/ip/iptuntap.c
> @@ -38,7 +38,7 @@ static void usage(void)
>  {
>  	fprintf(stderr, "Usage: ip tuntap { add | del } [ dev PHYS_DEV ] \n");
>  	fprintf(stderr, "          [ mode { tun | tap } ] [ user USER ] [ group GROUP ]\n");
> -	fprintf(stderr, "          [ one_queue ] [ pi ] [ vnet_hdr ]\n");
> +	fprintf(stderr, "          [ one_queue ] [ pi ] [ vnet_hdr ] [ multi_queue ]\n");
>  	fprintf(stderr, "\n");
>  	fprintf(stderr, "Where: USER  := { STRING | NUMBER }\n");
>  	fprintf(stderr, "       GROUP := { STRING | NUMBER }\n");
> @@ -168,6 +168,8 @@ static int parse_args(int argc, char **argv, struct ifreq *ifr, uid_t *uid, gid_
>  			ifr->ifr_flags |= IFF_ONE_QUEUE;
>  		} else if (matches(*argv, "vnet_hdr") == 0) {
>  			ifr->ifr_flags |= IFF_VNET_HDR;
> +		} else if (matches(*argv, "multi_queue") == 0) {
> +			ifr->ifr_flags |= IFF_MULTI_QUEUE;
>  		} else if (matches(*argv, "dev") == 0) {
>  			NEXT_ARG();
>  			strncpy(ifr->ifr_name, *argv, IFNAMSIZ-1);
> -- 
> 1.7.1
> 
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2013-06-09 11:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-23 22:36 [PATCH] iptuntap: allow creation of multi-queue tun/tap device Sriram Narasimhan
2013-06-09 11:11 ` Michael S. Tsirkin [this message]
2013-06-10 17:16   ` Stephen Hemminger

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=20130609111123.GA16406@redhat.com \
    --to=mst@redhat.com \
    --cc=netdev@vger.kernel.org \
    --cc=sriram.narasimhan@hp.com \
    --cc=stephen@networkplumber.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 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.