From: Kohei Enju <enjuk@amazon.com>
To: <aleksandr.loktionov@intel.com>
Cc: <andrew+netdev@lunn.ch>, <anthony.l.nguyen@intel.com>,
<davem@davemloft.net>, <edumazet@google.com>, <enjuk@amazon.com>,
<intel-wired-lan@lists.osuosl.org>, <kuba@kernel.org>,
<netdev@vger.kernel.org>, <pabeni@redhat.com>,
<przemyslaw.kitszel@intel.com>, <takkozu@amazon.com>
Subject: Re: RE: [Intel-wired-lan] [PATCH iwl-next v2 3/3] igb: allow configuring RSS key via ethtool set_rxfh
Date: Thu, 8 Jan 2026 21:03:58 +0900 [thread overview]
Message-ID: <20260108120400.75859-1-enjuk@amazon.com> (raw)
In-Reply-To: <IA3PR11MB8986D6E9C30B7FFBCEF64394E585A@IA3PR11MB8986.namprd11.prod.outlook.com>
On Thu, 8 Jan 2026 07:29:19 +0000, Loktionov, Aleksandr wrote:
>>
>> - igb_write_rss_indir_tbl(adapter);
>> + if (rxfh->key) {
>> + adapter->has_user_rss_key = true;
>> + memcpy(adapter->rss_key, rxfh->key, sizeof(adapter-
>> >rss_key));
>> + igb_write_rss_key(adapter);
>It leads to race between ethtool RSS update and concurrent resets.
>Because igb_setup_mrqc() (called during resets) also calls igb_write_rss_key(adapter).
>Non-fatal but breaks RSS configuration guarantees.
At my first glance, rtnl lock serializes those operation, so it
doesn't seem to be racy as long as they are under the rtnl lock.
As far as I skimmed the codes, functions such as igb_open()/
igb_up()/igb_reset_task(), which finally call igb_write_rss_key() are
serialized by rtnl lock or serializes igb_write_rss_key() call by
locking rtnl.
Please let me know if I'm missing something and it's truly racy.
>
>I think ethtool can/should wait of reset/watchdog task to finish.
>I'm against adding locks, and just my personal opinion, it's better to implement igb_rss_key_update_task() in addition to reset and watchdog tasks to be used both in reset and ethtool path.
>
>What do you think?
next prev parent reply other threads:[~2026-01-08 12:04 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-08 5:20 [PATCH iwl-next v2 0/3] igb: add RSS key get/set support Takashi Kozu
2026-01-08 5:20 ` [PATCH iwl-next v2 1/3] igb: prepare for " Takashi Kozu
2026-01-08 12:27 ` [Intel-wired-lan] " Paul Menzel
2026-01-16 6:16 ` Takashi Kozu
2026-01-08 17:03 ` Kwapulinski, Piotr
2026-01-09 5:59 ` Loktionov, Aleksandr
2026-01-08 5:20 ` [PATCH iwl-next v2 2/3] igb: expose RSS key via ethtool get_rxfh Takashi Kozu
2026-01-09 5:59 ` [Intel-wired-lan] " Loktionov, Aleksandr
2026-01-08 5:20 ` [PATCH iwl-next v2 3/3] igb: allow configuring RSS key via ethtool set_rxfh Takashi Kozu
2026-01-08 7:29 ` [Intel-wired-lan] " Loktionov, Aleksandr
2026-01-08 12:03 ` Kohei Enju [this message]
2026-01-08 12:28 ` Loktionov, Aleksandr
2026-01-08 13:03 ` Loktionov, Aleksandr
2026-01-16 6:24 ` Takashi Kozu
2026-01-08 15:07 ` Jakub Kicinski
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=20260108120400.75859-1-enjuk@amazon.com \
--to=enjuk@amazon.com \
--cc=aleksandr.loktionov@intel.com \
--cc=andrew+netdev@lunn.ch \
--cc=anthony.l.nguyen@intel.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=intel-wired-lan@lists.osuosl.org \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=przemyslaw.kitszel@intel.com \
--cc=takkozu@amazon.com \
/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