All of lore.kernel.org
 help / color / mirror / Atom feed
From: Igor Russkikh <Igor.Russkikh@aquantia.com>
To: David Miller <davem@davemloft.net>
Cc: "netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: Re: [PATCH net 1/4] net: aquantia: tx clean budget logic error
Date: Mon, 27 May 2019 09:57:18 +0000	[thread overview]
Message-ID: <ba532713-7ca6-6497-8c18-31c418d41ee5@aquantia.com> (raw)
In-Reply-To: <20190526.221556.885075788672387642.davem@davemloft.net>



On 27.05.2019 8:15, David Miller wrote:
> From: Igor Russkikh <Igor.Russkikh@aquantia.com>
> Date: Sat, 25 May 2019 09:57:59 +0000
> 
>> In case no other traffic happening on the ring, full tx cleanup
>> may not be completed. That may cause socket buffer to overflow
>> and tx traffic to stuck until next activity on the ring happens.
>>
>> This is due to logic error in budget variable decrementor.
>> Variable is compared with zero, and then post decremented,
>> causing it to become MAX_INT. Solution is remove decrementor
>> from the `for` statement and rewrite it in a clear way.
>>
>> Fixes: b647d3980948e ("net: aquantia: Add tx clean budget and valid budget handling logic")
>> Signed-off-by: Igor Russkikh <igor.russkikh@aquantia.com>
> 
> I think the TX clean budget is a very bad idea.
> 
> You should always do as much TX clean work as there is TODO.

Hi David,

This is not about introducing tx clean budget, but about fixing a bug.

tx clean budget logic is present in majority of the drivers as I see,
including igb,ixgbe,mlx5.

I see it as a logical action to limit the time driver spends in napi_poll
under napi budget.

Regards,
  Igor

  reply	other threads:[~2019-05-27  9:57 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-25  9:57 [PATCH net 0/4] net: aquantia: various fixes May, 2019 Igor Russkikh
2019-05-25  9:57 ` [PATCH net 1/4] net: aquantia: tx clean budget logic error Igor Russkikh
2019-05-27  5:15   ` David Miller
2019-05-27  9:57     ` Igor Russkikh [this message]
2019-05-27 17:24       ` David Miller
2019-05-25  9:58 ` [PATCH net 2/4] net: aquantia: check rx csum for all packets in LRO session Igor Russkikh
2019-05-25  9:58 ` [PATCH net 3/4] net: aquantia: fix LRO with FCS error Igor Russkikh
2019-05-25  9:58 ` [PATCH net 4/4] net: aquantia: tcp checksum 0xffff being handled incorrectly Igor Russkikh

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=ba532713-7ca6-6497-8c18-31c418d41ee5@aquantia.com \
    --to=igor.russkikh@aquantia.com \
    --cc=davem@davemloft.net \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.