From: Stephen Hemminger <stephen@networkplumber.org>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Sriram Narasimhan <sriram.narasimhan@hp.com>, netdev@vger.kernel.org
Subject: Re: [PATCH] iptuntap: allow creation of multi-queue tun/tap device
Date: Mon, 10 Jun 2013 10:16:17 -0700 [thread overview]
Message-ID: <20130610101617.6859448e@nehalam.linuxnetplumber.net> (raw)
In-Reply-To: <20130609111123.GA16406@redhat.com>
On Sun, 9 Jun 2013 14:11:23 +0300
"Michael S. Tsirkin" <mst@redhat.com> wrote:
> 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
Already applied to iproute2 for 3.10
prev parent reply other threads:[~2013-06-10 17:16 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
2013-06-10 17:16 ` Stephen Hemminger [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=20130610101617.6859448e@nehalam.linuxnetplumber.net \
--to=stephen@networkplumber.org \
--cc=mst@redhat.com \
--cc=netdev@vger.kernel.org \
--cc=sriram.narasimhan@hp.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).