netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ross Lagerwall <ross.lagerwall@citrix.com>
To: Vitaly Kuznetsov <vkuznets@redhat.com>, <netdev@vger.kernel.org>
Cc: <xen-devel@lists.xenproject.org>, <linux-kernel@vger.kernel.org>,
	Boris Ostrovsky <boris.ostrovsky@oracle.com>,
	Juergen Gross <jgross@suse.com>
Subject: Re: [PATCH net-next] xen-netfront: fix queue name setting
Date: Fri, 20 Jul 2018 17:49:00 +0100	[thread overview]
Message-ID: <566f2c29-a7c0-efee-444c-c51a632bfeee@citrix.com> (raw)
In-Reply-To: <20180720163359.28187-1-vkuznets@redhat.com>

On 07/20/2018 05:33 PM, Vitaly Kuznetsov wrote:
> Commit f599c64fdf7d ("xen-netfront: Fix race between device setup and
> open") changed the initialization order: xennet_create_queues() now
> happens before we do register_netdev() so using netdev->name in
> xennet_init_queue() is incorrect, we end up with the following in
> /proc/interrupts:
> 
>   60:        139          0   xen-dyn    -event     eth%d-q0-tx
>   61:        265          0   xen-dyn    -event     eth%d-q0-rx
>   62:        234          0   xen-dyn    -event     eth%d-q1-tx
>   63:          1          0   xen-dyn    -event     eth%d-q1-rx
> 
> and this looks ugly. Actually, using early netdev name (even when it's
> already set) is also not ideal: nowadays we tend to rename eth devices
> and queue name may end up not corresponding to the netdev name.
> 
> Use nodename from xenbus device for queue naming: this can't change in VM's
> lifetime. Now /proc/interrupts looks like
> 
>   62:        202          0   xen-dyn    -event     device/vif/0-q0-tx
>   63:        317          0   xen-dyn    -event     device/vif/0-q0-rx
>   64:        262          0   xen-dyn    -event     device/vif/0-q1-tx
>   65:         17          0   xen-dyn    -event     device/vif/0-q1-rx
> 
> Fixes: f599c64fdf7d ("xen-netfront: Fix race between device setup and open")
> Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
> ---

Reviewed-by: Ross Lagerwall <ross.lagerwall@citrix.com>

  reply	other threads:[~2018-07-20 16:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-20 16:33 [PATCH net-next] xen-netfront: fix queue name setting Vitaly Kuznetsov
2018-07-20 16:49 ` Ross Lagerwall [this message]
2018-07-22 17:27 ` David Miller

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=566f2c29-a7c0-efee-444c-c51a632bfeee@citrix.com \
    --to=ross.lagerwall@citrix.com \
    --cc=boris.ostrovsky@oracle.com \
    --cc=jgross@suse.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=vkuznets@redhat.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).