public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: Alexander Lobakin <aleksander.lobakin@intel.com>
To: Kohei Enju <kohei@enjuk.jp>, Simon Horman <horms@kernel.org>
Cc: Tony Nguyen <anthony.l.nguyen@intel.com>, <davem@davemloft.net>,
	<kuba@kernel.org>, <pabeni@redhat.com>, <edumazet@google.com>,
	<andrew+netdev@lunn.ch>, <netdev@vger.kernel.org>,
	<jacob.e.keller@intel.com>,
	<nxne.cnse.osdt.itp.upstreaming@intel.com>, <horms@kernel.org>,
	<maciej.fijalkowski@intel.com>, <magnus.karlsson@intel.com>,
	<ast@kernel.org>, <daniel@iogearbox.net>, <hawk@kernel.org>,
	<john.fastabend@gmail.com>, <sdf@fomichev.me>,
	<bpf@vger.kernel.org>,
	Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Subject: Re: [PATCH net-next v2 3/5] ice: migrate to netdev ops lock
Date: Tue, 31 Mar 2026 17:09:07 +0200	[thread overview]
Message-ID: <bff33e56-d1eb-4291-a3af-121fe54b1539@intel.com> (raw)
In-Reply-To: <aclmhA5yjXfzX_Jk@x1>

From: Kohei Enju <kohei@enjuk.jp>
Date: Mon, 30 Mar 2026 03:01:04 +0900

> On 03/25 13:06, Tony Nguyen wrote:
>> From: Alexander Lobakin <aleksander.lobakin@intel.com>
>>
>> Queue management ops unconditionally enable netdev locking. The same
>> lock is taken by default by several NAPI configuration functions,
>> such as napi_enable() and netif_napi_set_irq().
>> Request ops locking in advance and make sure we use the _locked
>> counterparts of those functions to avoid deadlocks, taking the lock
>> manually where needed (suspend/resume, queue rebuild and resets).
To Simon:

Yes, the DCB code was reported earlier and I fixed it already in this
series. The DCB core takes RTNL, not netdev, so now ice calls the
functions which take the netdev lock.

But seems like the E-Switch code should take the lock, yeah.

To Kohei:

Ufff, I'm sorry I missed one more part, this RTNL -> netdev lock
transition is when you change one bit of the code and then the whole
cascade in some other part breaks...

I'll send a new rev once I fix and test both.

Thanks!
Olek

  reply	other threads:[~2026-03-31 15:12 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-25 20:06 [PATCH net-next v2 0/5][pull request] ice: add support for devmem/io_uring Rx and Tx Tony Nguyen
2026-03-25 20:06 ` [PATCH net-next v2 1/5] libeth: pass Rx queue index to PP when creating a fill queue Tony Nguyen
2026-03-25 20:06 ` [PATCH net-next v2 2/5] libeth: handle creating pools with unreadable buffers Tony Nguyen
2026-03-25 20:06 ` [PATCH net-next v2 3/5] ice: migrate to netdev ops lock Tony Nguyen
2026-03-27 13:57   ` Simon Horman
2026-03-29 18:01   ` Kohei Enju
2026-03-31 15:09     ` Alexander Lobakin [this message]
2026-03-25 20:06 ` [PATCH net-next v2 4/5] ice: implement Rx queue management ops Tony Nguyen
2026-03-25 20:06 ` [PATCH net-next v2 5/5] ice: add support for transmitting unreadable frags Tony Nguyen

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=bff33e56-d1eb-4291-a3af-121fe54b1539@intel.com \
    --to=aleksander.lobakin@intel.com \
    --cc=aleksandr.loktionov@intel.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=anthony.l.nguyen@intel.com \
    --cc=ast@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=hawk@kernel.org \
    --cc=horms@kernel.org \
    --cc=jacob.e.keller@intel.com \
    --cc=john.fastabend@gmail.com \
    --cc=kohei@enjuk.jp \
    --cc=kuba@kernel.org \
    --cc=maciej.fijalkowski@intel.com \
    --cc=magnus.karlsson@intel.com \
    --cc=netdev@vger.kernel.org \
    --cc=nxne.cnse.osdt.itp.upstreaming@intel.com \
    --cc=pabeni@redhat.com \
    --cc=sdf@fomichev.me \
    /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