From: Jason Wang <jasowang@redhat.com>
To: Vladislav Yasevich <vyasevich@gmail.com>, netdev@vger.kernel.org
Cc: mst@redhat.com, Vladislav Yasevich <vyasevic@redhat.com>
Subject: Re: [RFC PATCH net-next 0/3] Extend macvtap with multiple qdiscs
Date: Tue, 23 Feb 2016 10:38:02 +0800 [thread overview]
Message-ID: <56CBC60A.1000404@redhat.com> (raw)
In-Reply-To: <1454901296-9915-1-git-send-email-vyasevic@redhat.com>
On 02/08/2016 11:14 AM, Vladislav Yasevich wrote:
> This is an RFC series to extend macvtap with multiple qdisc. Right now
> multiqueue macvtap setups suffer from lock contention. Macvtap sets
> the queue index and thus gets a default qdisc allocated to it. Since
> it later users dev_queue_xmit() call to the macvlan type device (so that
> we can packet captures and other filtering on macvtap itself) we end up
> with qdisc lock contention since what we have is multiple file descriptors
> writing to the same qdisc.
>
> With this series, the macvtap device now becomes a true multi-queue device
> that defaults to 1 queue. Every time the user opens the device (this is
> how multiqueue macvtap is used), we update the number of real queues for
> the device. When the user writes to the device, we record the queue index
> associted with the file descriptor to the skb, and that ends up translating
> to the device queue index. This is one transmit only. Receive side
> is left alone and will prefer skb hash if available.
>
> Macvlan through this all is left with lockless transmit path.
>
> Thanks
> -vlad
A question is do we really want a qdisc for macvtap (and other pseudo
device)? If yes, the "problem" may not be specific to macvtap. Consider
you may get contention after place a qdisc on vlan device. If not,
probably a one line patch with IFF_NO_QUEUE is sufficient?
Thanks
>
> Vladislav Yasevich (3):
> macvtap: mutiple qdiscs support
> macvlan: add queue selection functionality
> macvtap: Record the rx queue based on the user tap queue
>
> drivers/net/macvlan.c | 20 ++++++++++++++++++++
> drivers/net/macvtap.c | 19 +++++++++++++++++++
> 2 files changed, 39 insertions(+)
>
prev parent reply other threads:[~2016-02-23 2:38 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-08 3:14 [RFC PATCH net-next 0/3] Extend macvtap with multiple qdiscs Vladislav Yasevich
2016-02-08 3:14 ` [RFC PATCH net-next 1/3] macvtap: mutiple qdiscs support Vladislav Yasevich
2016-02-08 3:14 ` [RFC PATCH net-next 2/3] macvlan: add queue selection functionality Vladislav Yasevich
2016-02-08 3:45 ` Eric Dumazet
2016-02-09 4:30 ` Pankaj Gupta
2016-02-08 3:14 ` [RFC PATCH net-next 3/3] macvtap: Record the rx queue based on the user tap queue Vladislav Yasevich
2016-02-23 2:38 ` Jason Wang [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=56CBC60A.1000404@redhat.com \
--to=jasowang@redhat.com \
--cc=mst@redhat.com \
--cc=netdev@vger.kernel.org \
--cc=vyasevic@redhat.com \
--cc=vyasevich@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 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.