From: Eric Dumazet <eric.dumazet@gmail.com>
To: Haiyang Zhang <haiyangz@microsoft.com>
Cc: Ben Greear <greearb@candelatech.com>,
David Miller <davem@davemloft.net>,
netdev <netdev@vger.kernel.org>,
KY Srinivasan <kys@microsoft.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Subject: RE: [PATCH] net/hyperv: fix erroneous NETDEV_TX_BUSY use
Date: Wed, 14 Mar 2012 13:14:32 -0700 [thread overview]
Message-ID: <1331756072.6022.57.camel@edumazet-glaptop> (raw)
In-Reply-To: <A1F3067C9B68744AA19F6802BAB8FFDC0DCE702F@TK5EX14MBXC223.redmond.corp.microsoft.com>
On Wed, 2012-03-14 at 20:00 +0000, Haiyang Zhang wrote:
> Actually, I'm working on this bug, and have a patch under our internal
> review now. My fix is actually not freeing the SKB, and return NETDEV_TX_BUSY.
>
> Even if the vmbus ring buffer is busy currently, it can be available during
> the next re-try, because the host is taking away data from ring buffer. The
> stop/wake queue mechanism is in the netvsc.c file.
>
> In the out-of-memory case, dropping packet and return NETDEV_TX_OK seems fine.
That will be fine for net-next.
I sent a patch for current kernels, where obvious and minimal fixes
apply.
next prev parent reply other threads:[~2012-03-14 20:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-14 18:53 [PATCH] net/hyperv: fix erroneous NETDEV_TX_BUSY use Eric Dumazet
2012-03-14 18:56 ` Ben Greear
2012-03-14 19:17 ` Eric Dumazet
2012-03-14 20:00 ` Haiyang Zhang
2012-03-14 20:14 ` Eric Dumazet [this message]
2012-03-14 20:29 ` Haiyang Zhang
2012-03-16 9:02 ` 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=1331756072.6022.57.camel@edumazet-glaptop \
--to=eric.dumazet@gmail.com \
--cc=davem@davemloft.net \
--cc=greearb@candelatech.com \
--cc=gregkh@linuxfoundation.org \
--cc=haiyangz@microsoft.com \
--cc=kys@microsoft.com \
--cc=netdev@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