From: Shreyas Bhatewara <sbhatewara@vmware.com>
To: Neil Horman <nhorman@tuxdriver.com>
Cc: netdev@vger.kernel.org, "VMware, Inc." <pv-drivers@vmware.com>,
"David S. Miller" <davem@davemloft.net>,
stable@vger.kernel.org
Subject: Re: [PATCH] vmxnet3: fix netpoll race condition
Date: Fri, 7 Mar 2014 21:14:21 -0800 (PST) [thread overview]
Message-ID: <739029197.38929769.1394255661208.JavaMail.root@vmware.com> (raw)
In-Reply-To: <1394227527-31082-1-git-send-email-nhorman@tuxdriver.com>
Thanks for the patch Neil.
> --- a/drivers/net/vmxnet3/vmxnet3_drv.c
> +++ b/drivers/net/vmxnet3/vmxnet3_drv.c
> @@ -1762,11 +1762,13 @@ vmxnet3_netpoll(struct net_device *netdev)
> {
> struct vmxnet3_adapter *adapter = netdev_priv(netdev);
>
> - if (adapter->intr.mask_mode == VMXNET3_IMM_ACTIVE)
> - vmxnet3_disable_all_intrs(adapter);
> -
> - vmxnet3_do_poll(adapter, adapter->rx_queue[0].rx_ring[0].size);
> - vmxnet3_enable_all_intrs(adapter);
> + switch (adapter->intr.type) {
> + case VMXNET3_IT_MSIX:
> + vmxnet3_msix_rx(0, &adapter->rx_queue[0]);
This should be called for each rx queue, just calling it for
1st queue does not suffice.
Also there should be a break; here
> + case VMXNET3_IT_MSI:
> + default:
> + vmxnet3_intr(0, adapter->netdev);
> + }
next prev parent reply other threads:[~2014-03-08 5:14 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-07 21:25 [PATCH] vmxnet3: fix netpoll race condition Neil Horman
2014-03-08 5:14 ` Shreyas Bhatewara [this message]
2014-03-08 14:36 ` Neil Horman
2014-03-10 10:55 ` [PATCH v2] " Neil Horman
2014-03-11 17:16 ` David Miller
2014-03-11 18:24 ` Shreyas Bhatewara
2014-03-11 20:08 ` Neil Horman
2014-03-11 20:15 ` 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=739029197.38929769.1394255661208.JavaMail.root@vmware.com \
--to=sbhatewara@vmware.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=nhorman@tuxdriver.com \
--cc=pv-drivers@vmware.com \
--cc=stable@vger.kernel.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).