]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
igc: Relocate RSS field definitions to igc_defines.h
authorSong Yoong Siang <yoong.siang.song@intel.com>
Fri, 20 Jun 2025 10:02:50 +0000 (18:02 +0800)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 18 Jul 2025 16:02:28 +0000 (09:02 -0700)
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>
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Reviewed-by: Brett Creeley <brett.creeley@amd.com>
Tested-by: Mor Bar-Gabay <morx.bar.gabay@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/igc/igc.h
drivers/net/ethernet/intel/igc/igc_defines.h

index 97b1a2c820ee9d572c9a451129bdacd3c909768c..fdec66caef4d1aa48672dbb0da239f71a2a28441 100644 (file)
@@ -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,
index 86b346687196e8f3f3579dc7774417be4de13484..d80254f2a2784b7b0ffe1025f4cc7b5f6aefb0f5 100644 (file)
 #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