netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Haiyang Zhang <haiyangz@microsoft.com>
To: David Miller <davem@davemloft.net>
Cc: "eric.dumazet@gmail.com" <eric.dumazet@gmail.com>,
	KY Srinivasan <kys@microsoft.com>,
	"edumazet@google.com" <edumazet@google.com>,
	"netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: RE: [PATCH net-next] net: increase LL_MAX_HEADER if HYPERV_NET is enabled
Date: Tue, 3 Nov 2015 21:00:12 +0000	[thread overview]
Message-ID: <BN1PR0301MB0770737810188CE2573A42CACA2B0@BN1PR0301MB0770.namprd03.prod.outlook.com> (raw)
In-Reply-To: <20151103.145027.1401610638879230478.davem@davemloft.net>



> -----Original Message-----
> From: David Miller [mailto:davem@davemloft.net]
> Sent: Tuesday, November 3, 2015 2:50 PM
> To: Haiyang Zhang <haiyangz@microsoft.com>
> Cc: eric.dumazet@gmail.com; KY Srinivasan <kys@microsoft.com>;
> edumazet@google.com; netdev@vger.kernel.org
> Subject: Re: [PATCH net-next] net: increase LL_MAX_HEADER if HYPERV_NET
> is enabled
> 
> From: Haiyang Zhang <haiyangz@microsoft.com>
> Date: Tue, 3 Nov 2015 18:49:05 +0000
> 
> >> -----Original Message-----
> >> From: David Miller [mailto:davem@davemloft.net]
> >> Sent: Tuesday, November 3, 2015 1:20 PM
> >> To: Haiyang Zhang <haiyangz@microsoft.com>
> >> Cc: eric.dumazet@gmail.com; KY Srinivasan <kys@microsoft.com>;
> >> edumazet@google.com; netdev@vger.kernel.org
> >> Subject: Re: [PATCH net-next] net: increase LL_MAX_HEADER if
> >> HYPERV_NET is enabled
> >>
> >> From: Haiyang Zhang <haiyangz@microsoft.com>
> >> Date: Tue, 3 Nov 2015 17:34:47 +0000
> >>
> >> > But we still keep this busy return in our code, just for "weird corner
> cases".
> >>
> >> The queue_stopped condition must be precise.
> >
> > The only case we return NETDEV_TX_BUSY is when the outgoing ring
> > buffer is full, which almost never happens because we stop the xmit queue
> if ring is <10% available.
> 
> I don't think you understand.
> 
> You must perform the queue stop operation such that it is impossible for
> your
> ->ndo_start_xmit() method to be invoked in a way such that you cannot
> ->transmit
> the SKB given to you immediately.

We already did the queue stop operation in the netvsc_send_pkt() in file netvsc.c:
		if (ring_avail < RING_AVAIL_PERCENT_LOWATER) {
			netif_tx_stop_queue(netdev_get_tx_queue(ndev, q_idx));
This flow control mechanism stops the tx queue when the outgoing buffer on vmbus 
is <10% available. So we can always transmit immediately when start_xmit is called.

The case of returning NETDEV_TX_BUSY is not expected to happen normally.

Thanks,
- Haiyang

> 
> It's quite tiring to keep trying to explain this over and over repeatedly.

  reply	other threads:[~2015-11-03 21:15 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-29 21:49 [patch] tcp: attach SYNACK messages to request sockets instead of listener Haiyang Zhang
2015-10-29 22:58 ` Eric Dumazet
2015-10-30 19:38   ` Haiyang Zhang
2015-10-30 20:02     ` Eric Dumazet
2015-10-30 20:18       ` Eric Dumazet
2015-10-30 21:42         ` Haiyang Zhang
2015-10-30 23:52           ` Eric Dumazet
2015-11-01 17:20             ` [PATCH net-next] net: increase LL_MAX_HEADER if HYPERV_NET is enabled Eric Dumazet
2015-11-01 20:58               ` David Miller
2015-11-01 22:36                 ` Eric Dumazet
2015-11-01 22:58                   ` [PATCH net-next] net: make skb_set_owner_w() more robust Eric Dumazet
2015-11-01 23:18                     ` kbuild test robot
2015-11-01 23:27                       ` Eric Dumazet
2015-11-01 23:36                     ` [PATCH v2 " Eric Dumazet
2015-11-02 20:05                       ` Haiyang Zhang
2015-11-02 20:09                         ` Eric Dumazet
2015-11-02 20:26                           ` David Miller
2015-11-02 21:29                       ` David Miller
2015-11-03  7:59                 ` [PATCH net-next] net: increase LL_MAX_HEADER if HYPERV_NET is enabled KY Srinivasan
2015-11-03 15:33                   ` David Miller
2015-11-03 16:37                     ` Eric Dumazet
2015-11-03 17:34                       ` Haiyang Zhang
2015-11-03 18:20                         ` David Miller
2015-11-03 18:49                           ` Haiyang Zhang
2015-11-03 19:50                             ` David Miller
2015-11-03 21:00                               ` Haiyang Zhang [this message]
2015-11-03 18:09                     ` KY Srinivasan
2015-10-30 20:28       ` [patch] tcp: attach SYNACK messages to request sockets instead of listener KY Srinivasan

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=BN1PR0301MB0770737810188CE2573A42CACA2B0@BN1PR0301MB0770.namprd03.prod.outlook.com \
    --to=haiyangz@microsoft.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=eric.dumazet@gmail.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;
as well as URLs for NNTP newsgroup(s).