From: Jakub Kicinski <kuba@kernel.org>
To: Takashi Kozu <takkozu@amazon.com>
Cc: <anthony.l.nguyen@intel.com>, <przemyslaw.kitszel@intel.com>,
<andrew+netdev@lunn.ch>, <davem@davemloft.net>,
<edumazet@google.com>, <pabeni@redhat.com>,
<intel-wired-lan@lists.osuosl.org>, <netdev@vger.kernel.org>,
Kohei Enju <enjuk@amazon.com>
Subject: Re: [PATCH iwl-next v2 3/3] igb: allow configuring RSS key via ethtool set_rxfh
Date: Thu, 8 Jan 2026 07:07:29 -0800 [thread overview]
Message-ID: <20260108070729.79575f9c@kernel.org> (raw)
In-Reply-To: <20260108052020.84218-8-takkozu@amazon.com>
On Thu, 8 Jan 2026 14:20:15 +0900 Takashi Kozu wrote:
> diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c
> index da0f550de605..d42b3750f0b1 100644
> --- a/drivers/net/ethernet/intel/igb/igb_main.c
> +++ b/drivers/net/ethernet/intel/igb/igb_main.c
> @@ -4526,7 +4526,8 @@ static void igb_setup_mrqc(struct igb_adapter *adapter)
> u32 mrqc, rxcsum;
> u32 j, num_rx_queues;
>
> - netdev_rss_key_fill(adapter->rss_key, sizeof(adapter->rss_key));
> + if (!adapter->has_user_rss_key)
> + netdev_rss_key_fill(adapter->rss_key, sizeof(adapter->rss_key));
> igb_write_rss_key(adapter);
This is an unusual construct. adapter->rss_key is driver state, does
something wipe it? It's normal to have to write the key into the device
after reset but initializing the driver state is usually done at probe,
just once. Then you don't have to worry whether the state is coming from
random or user.
Note that netdev_rss_key_fill() initializes its state once per boot so
it will not change its 'return' value without reboot.
Last but not least - would you be able to run:
tools/testing/selftests/drivers/net/hw/toeplitz.py
tools/testing/selftests/drivers/net/hw/rss_api.py
against this device? Some more help:
https://github.com/linux-netdev/nipa/wiki/Running-driver-tests
prev parent reply other threads:[~2026-01-08 15:07 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
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 [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=20260108070729.79575f9c@kernel.org \
--to=kuba@kernel.org \
--cc=andrew+netdev@lunn.ch \
--cc=anthony.l.nguyen@intel.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=enjuk@amazon.com \
--cc=intel-wired-lan@lists.osuosl.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