From: Brett Creeley <bcreeley@amd.com>
To: Song Yoong Siang <yoong.siang.song@intel.com>,
Tony Nguyen <anthony.l.nguyen@intel.com>,
"David S . Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Richard Cochran <richardcochran@gmail.com>,
Alexei Starovoitov <ast@kernel.org>,
Daniel Borkmann <daniel@iogearbox.net>,
Jesper Dangaard Brouer <hawk@kernel.org>,
John Fastabend <john.fastabend@gmail.com>,
Vinicius Costa Gomes <vinicius.gomes@intel.com>,
Jonathan Corbet <corbet@lwn.net>,
Przemek Kitszel <przemyslaw.kitszel@intel.com>,
Shinas Rasheed <srasheed@marvell.com>,
Kevin Tian <kevin.tian@intel.com>,
Brett Creeley <brett.creeley@amd.com>,
Blanco Alcaine Hector <hector.blanco.alcaine@intel.com>,
Joshua Hay <joshua.a.hay@intel.com>,
Andrew Lunn <andrew+netdev@lunn.ch>,
Jacob Keller <jacob.e.keller@intel.com>,
Kurt Kanzenbach <kurt@linutronix.de>,
Marcin Szycik <marcin.szycik@linux.intel.com>
Cc: intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH iwl-next,v3 1/2] igc: Relocate RSS field definitions to igc_defines.h
Date: Mon, 23 Jun 2025 08:46:28 -0700 [thread overview]
Message-ID: <d4211026-9105-4f7b-8384-300c0a293233@amd.com> (raw)
In-Reply-To: <20250620100251.2791202-2-yoong.siang.song@intel.com>
On 6/20/2025 3:02 AM, Song Yoong Siang wrote:
> Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.
>
>
> Move the RSS field definitions related to IPv4 and IPv6 UDP from igc.h to
> igc_defines.h to consolidate the RSS field definitions in a single header
> file, improving code organization and maintainability.
>
> This refactoring does not alter the functionality of the driver but
> enhances the logical grouping of related constants
>
> Reviewed-by: Kurt Kanzenbach <kurt@linutronix.de>
> Signed-off-by: Song Yoong Siang <yoong.siang.song@intel.com>
> ---
> drivers/net/ethernet/intel/igc/igc.h | 4 ----
> drivers/net/ethernet/intel/igc/igc_defines.h | 3 +++
> 2 files changed, 3 insertions(+), 4 deletions(-)
LGTM.
Reviewed-by: Brett Creeley <brett.creeley@amd.com>
>
> diff --git a/drivers/net/ethernet/intel/igc/igc.h b/drivers/net/ethernet/intel/igc/igc.h
> index 1525ae25fd3e..0b35e593d5ee 100644
> --- a/drivers/net/ethernet/intel/igc/igc.h
> +++ b/drivers/net/ethernet/intel/igc/igc.h
> @@ -406,10 +406,6 @@ extern char igc_driver_name[];
> #define IGC_FLAG_RSS_FIELD_IPV4_UDP BIT(6)
> #define IGC_FLAG_RSS_FIELD_IPV6_UDP BIT(7)
>
> -#define IGC_MRQC_ENABLE_RSS_MQ 0x00000002
> -#define IGC_MRQC_RSS_FIELD_IPV4_UDP 0x00400000
> -#define IGC_MRQC_RSS_FIELD_IPV6_UDP 0x00800000
> -
> /* RX-desc Write-Back format RSS Type's */
> enum igc_rss_type_num {
> IGC_RSS_TYPE_NO_HASH = 0,
> diff --git a/drivers/net/ethernet/intel/igc/igc_defines.h b/drivers/net/ethernet/intel/igc/igc_defines.h
> index 86b346687196..d80254f2a278 100644
> --- a/drivers/net/ethernet/intel/igc/igc_defines.h
> +++ b/drivers/net/ethernet/intel/igc/igc_defines.h
> @@ -383,11 +383,14 @@
> #define IGC_RXDEXT_STATERR_IPE 0x40000000
> #define IGC_RXDEXT_STATERR_RXE 0x80000000
>
> +#define IGC_MRQC_ENABLE_RSS_MQ 0x00000002
> #define IGC_MRQC_RSS_FIELD_IPV4_TCP 0x00010000
> #define IGC_MRQC_RSS_FIELD_IPV4 0x00020000
> #define IGC_MRQC_RSS_FIELD_IPV6_TCP_EX 0x00040000
> #define IGC_MRQC_RSS_FIELD_IPV6 0x00100000
> #define IGC_MRQC_RSS_FIELD_IPV6_TCP 0x00200000
> +#define IGC_MRQC_RSS_FIELD_IPV4_UDP 0x00400000
> +#define IGC_MRQC_RSS_FIELD_IPV6_UDP 0x00800000
>
> /* Header split receive */
> #define IGC_RFCTL_IPV6_EX_DIS 0x00010000
> --
> 2.34.1
>
next prev parent reply other threads:[~2025-06-23 15:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-20 10:02 [PATCH iwl-next,v3 0/2] igc: Add Default Queue Support Song Yoong Siang
2025-06-20 10:02 ` [PATCH iwl-next,v3 1/2] igc: Relocate RSS field definitions to igc_defines.h Song Yoong Siang
2025-06-20 10:24 ` [Intel-wired-lan] [PATCH iwl-next, v3 " Loktionov, Aleksandr
2025-06-23 15:46 ` Brett Creeley [this message]
2025-07-06 10:58 ` Mor Bar-Gabay
2025-06-20 10:02 ` [PATCH iwl-next,v3 2/2] igc: Add wildcard rule support to ethtool NFC using Default Queue Song Yoong Siang
2025-07-06 11:01 ` [Intel-wired-lan] [PATCH iwl-next, v3 " Mor Bar-Gabay
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=d4211026-9105-4f7b-8384-300c0a293233@amd.com \
--to=bcreeley@amd.com \
--cc=andrew+netdev@lunn.ch \
--cc=anthony.l.nguyen@intel.com \
--cc=ast@kernel.org \
--cc=brett.creeley@amd.com \
--cc=corbet@lwn.net \
--cc=daniel@iogearbox.net \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=hawk@kernel.org \
--cc=hector.blanco.alcaine@intel.com \
--cc=intel-wired-lan@lists.osuosl.org \
--cc=jacob.e.keller@intel.com \
--cc=john.fastabend@gmail.com \
--cc=joshua.a.hay@intel.com \
--cc=kevin.tian@intel.com \
--cc=kuba@kernel.org \
--cc=kurt@linutronix.de \
--cc=linux-kernel@vger.kernel.org \
--cc=marcin.szycik@linux.intel.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=przemyslaw.kitszel@intel.com \
--cc=richardcochran@gmail.com \
--cc=srasheed@marvell.com \
--cc=vinicius.gomes@intel.com \
--cc=yoong.siang.song@intel.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
all inboxes | Powered by JetHome®