netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Bennieston <andrew.bennieston@citrix.com>
To: Wei Liu <wei.liu2@citrix.com>
Cc: <xen-devel@lists.xenproject.org>, <ian.campbell@citrix.com>,
	<paul.durrant@citrix.com>, <netdev@vger.kernel.org>
Subject: Re: [PATCH V5 net-next 4/5] xen-netfront: Add support for multiple queues
Date: Mon, 3 Mar 2014 12:14:46 +0000	[thread overview]
Message-ID: <53147236.60007@citrix.com> (raw)
In-Reply-To: <20140228161329.GQ16241@zion.uk.xensource.com>

On 28/02/14 16:13, Wei Liu wrote:
> On Fri, Feb 28, 2014 at 04:04:32PM +0000, Andrew Bennieston wrote:
>> On 28/02/14 15:22, Wei Liu wrote:
>>> On Mon, Feb 24, 2014 at 02:33:06PM +0000, Andrew J. Bennieston wrote:
>>>> From: "Andrew J. Bennieston" <andrew.bennieston@citrix.com>
>>>>
>>>> Build on the refactoring of the previous patch to implement multiple
>>>> queues between xen-netfront and xen-netback.
>>>>
>>>> Check XenStore for multi-queue support, and set up the rings and event
>>>> channels accordingly.
>>>>
>>>> Write ring references and event channels to XenStore in a queue
>>>> hierarchy if appropriate, or flat when using only one queue.
>>>>
>>>> Update the xennet_select_queue() function to choose the queue on which
>>>> to transmit a packet based on the skb hash result.
>>>>
>>>> Signed-off-by: Andrew J. Bennieston <andrew.bennieston@citrix.com>
>>>> ---
>>>>   drivers/net/xen-netfront.c |  178 ++++++++++++++++++++++++++++++++++----------
>>>>   1 file changed, 140 insertions(+), 38 deletions(-)
>>>>
>>>> diff --git a/drivers/net/xen-netfront.c b/drivers/net/xen-netfront.c
>>>> index 4f5a431..470d6ed 100644
>>>> --- a/drivers/net/xen-netfront.c
>>>> +++ b/drivers/net/xen-netfront.c
>>>> @@ -57,6 +57,12 @@
>>>>   #include <xen/interface/memory.h>
>>>>   #include <xen/interface/grant_table.h>
>>>>
>>>> +/* Module parameters */
>>>> +unsigned int xennet_max_queues;
>>>> +module_param(xennet_max_queues, uint, 0644);
>>>> +MODULE_PARM_DESC(xennet_max_queues,
>>>> +		"Maximum number of queues per virtual interface");
>>>> +
>>>
>>> Maybe I'm nit-picking here. But I think exposing xennet_max_queues as
>>> sysfs knob in frontend v.s. xenvif_max_queues in backend doesn't look
>>> very good to me -- userspace tools would need to query different knobs
>>> in frontend and backend. I think it makes sense to use a unified name in
>>> both frontend and backend.
>>>
>>> You can either use xenvif_max_queues as backend does or even just
>>> max_queues for both frontend and backend.
>> They already have to look in a different place, /sys/module/xen_netback
>> vs /sys/module/xen_netfront, so having a different param. name as well
>> isn't really a problem...
>>
>
> Cool. I think both frontend and backend use max_queues will be
> sufficient and more concise, since the path in sysfs is quite
> straightforward. Take netback as example, the existing parameter don't
> have xenvif_ prefix.
>
> Wei.
>
Ok, I've posted a V6 series which uses 'max_queues' as the module param 
for both, but retains the existing variable names within the code.

-Andrew

>> -Andrew
>>
>>>
>>> Wei.
>>>

  reply	other threads:[~2014-03-03 12:23 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-24 14:33 [PATCH V5 net-next 0/5] xen-net{back, front}: Multiple transmit and receive queues Andrew J. Bennieston
2014-02-24 14:33 ` [PATCH V5 net-next 1/5] xen-netback: Factor queue-specific data into queue struct Andrew J. Bennieston
2014-02-24 14:52   ` Paul Durrant
2014-02-28 15:11   ` Wei Liu
2014-02-24 14:33 ` [PATCH V5 net-next 2/5] xen-netback: Add support for multiple queues Andrew J. Bennieston
2014-02-24 14:58   ` Paul Durrant
2014-02-28 15:13   ` Wei Liu
2014-02-24 14:33 ` [PATCH V5 net-next 3/5] xen-netfront: Factor queue-specific data into queue struct Andrew J. Bennieston
2014-02-28 15:09   ` Wei Liu
2014-02-28 15:13     ` Andrew Bennieston
2014-02-24 14:33 ` [PATCH V5 net-next 4/5] xen-netfront: Add support for multiple queues Andrew J. Bennieston
2014-02-28 15:22   ` Wei Liu
2014-02-28 16:04     ` Andrew Bennieston
2014-02-28 16:13       ` Wei Liu
2014-03-03 12:14         ` Andrew Bennieston [this message]
2014-02-24 14:33 ` [PATCH V5 net-next 5/5] xen-net{back, front}: Document multi-queue feature in netif.h Andrew J. Bennieston

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=53147236.60007@citrix.com \
    --to=andrew.bennieston@citrix.com \
    --cc=ian.campbell@citrix.com \
    --cc=netdev@vger.kernel.org \
    --cc=paul.durrant@citrix.com \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xenproject.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).