public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
From: Jakub Kicinski <kuba@kernel•org>
To: David Thompson <davthompson@nvidia•com>
Cc: <davem@davemloft•net>, <edumazet@google•com>, <pabeni@redhat•com>,
	<netdev@vger•kernel.org>, <cai.huoqing@linux•dev>,
	<brgl@bgdev•pl>, <limings@nvidia•com>,
	Asmaa Mnebhi <asmaa@nvidia•com>
Subject: Re: [PATCH net v1] mlxbf_gige: fix receive packet race condition
Date: Mon, 19 Sep 2022 14:17:36 -0700	[thread overview]
Message-ID: <20220919141736.53155bb2@kernel.org> (raw)
In-Reply-To: <20220908202853.21725-1-davthompson@nvidia.com>

On Thu, 8 Sep 2022 16:28:53 -0400 David Thompson wrote:
> Under heavy traffic, the BF2 Gigabit interface can
> become unresponsive for periods of time (several minutes)
> before eventually recovering.  This is due to a possible
> race condition in the mlxbf_gige_rx_packet function, where
> the function exits with producer and consumer indices equal
> but there are remaining packet(s) to be processed. In order
> to prevent this situation, disable receive DMA during the
> processing of received packets.

Pausing Rx DMA seems a little drastic, is the capacity of the NIC
buffer large enough to sink the traffic while the stack drains 
the ring?

Could you provide a little more detail on what the HW issue is? 
There is no less intrusive way we can fix it?

  reply	other threads:[~2022-09-19 21:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-08 20:28 [PATCH net v1] mlxbf_gige: fix receive packet race condition David Thompson
2022-09-19 21:17 ` Jakub Kicinski [this message]
2022-10-25 16:31   ` David Thompson

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=20220919141736.53155bb2@kernel.org \
    --to=kuba@kernel$(echo .)org \
    --cc=asmaa@nvidia$(echo .)com \
    --cc=brgl@bgdev$(echo .)pl \
    --cc=cai.huoqing@linux$(echo .)dev \
    --cc=davem@davemloft$(echo .)net \
    --cc=davthompson@nvidia$(echo .)com \
    --cc=edumazet@google$(echo .)com \
    --cc=limings@nvidia$(echo .)com \
    --cc=netdev@vger$(echo .)kernel.org \
    --cc=pabeni@redhat$(echo .)com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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