netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Florian Fainelli <f.fainelli@gmail.com>
To: Eric Dumazet <eric.dumazet@gmail.com>,
	Jaedon Shin <jaedon.shin@gmail.com>
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH] net: bcmgenet: fix throughtput regression with TSO autosizing
Date: Thu, 26 Feb 2015 09:29:46 -0800	[thread overview]
Message-ID: <54EF580A.4060000@gmail.com> (raw)
In-Reply-To: <1424971655.5565.172.camel@edumazet-glaptop2.roam.corp.google.com>

On 26/02/15 09:27, Eric Dumazet wrote:
> On Thu, 2015-02-26 at 20:05 +0900, Jaedon Shin wrote:
>> This patch prevents the performance degradation of xmit after
>> 605ad7f ("tcp: refine TSO autosizing").
>>
>> Signed-off-by: Jaedon Shin <jaedon.shin@gmail.com>
>> ---
>>  drivers/net/ethernet/broadcom/genet/bcmgenet.c | 3 +++
>>  1 file changed, 3 insertions(+)
>>
>> diff --git a/drivers/net/ethernet/broadcom/genet/bcmgenet.c b/drivers/net/ethernet/broadcom/genet/bcmgenet.c
>> index ff83c46b..87eeff0 100644
>> --- a/drivers/net/ethernet/broadcom/genet/bcmgenet.c
>> +++ b/drivers/net/ethernet/broadcom/genet/bcmgenet.c
>> @@ -1310,6 +1310,9 @@ static netdev_tx_t bcmgenet_xmit(struct sk_buff *skb, struct net_device *dev)
>>  out:
>>  	spin_unlock_irqrestore(&ring->lock, flags);
>>  
>> +	if (index != DESC_INDEX)
>> +		skb_orphan(skb);
>> +
> 
> Hmpff...
> 
> Can you elaborate on the regression ?
> 
> Is it because NIC delays TX completion irq or something ?
> 
> bcmgenet_poll() only drains TX packets on ring16 (DESC_INDEC)
> 
> Other tx completions seem to run from hard irq context (bcmgenet_isr1())
> 
> Your patch seems to imply a bug in hard irq signaling/handling.

Yes, there is a bug in how packets transmitted are reclaimed, I will
submit a fix for this shortly.
--
Florian

      reply	other threads:[~2015-02-26 17:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-26 11:05 [PATCH] net: bcmgenet: fix throughtput regression with TSO autosizing Jaedon Shin
2015-02-26 16:36 ` David Miller
2015-02-27 14:33   ` Jaedon Shin
2015-02-27 15:13     ` Eric Dumazet
2015-02-26 17:27 ` Eric Dumazet
2015-02-26 17:29   ` Florian Fainelli [this message]

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=54EF580A.4060000@gmail.com \
    --to=f.fainelli@gmail.com \
    --cc=eric.dumazet@gmail.com \
    --cc=jaedon.shin@gmail.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).