Skip to contentSkip to conversation

igc: Group frame size macros in igc_tsn.h

PATCH In review Sasha Neftin 3 participants 3 messages Sep 25 – Nov 22

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 igc: Group frame size macros in igc_tsn.h

Move the IGC_EMPTY_FRAME_SIZE definition from igc_main.c to igc_tsn.h. This consolidates frame-size definitions for TSN and frame context descriptors into a single header alongside IGC_RX_MIN_FRAG_SIZE and SMD_FRAME_SIZE, making the constants available across TSN modules.

---
 drivers/net/ethernet/intel/igc/igc_main.c | 2 --
 drivers/net/ethernet/intel/igc/igc_tsn.h  | 1 +
 2 files changed, 1 insertion(+), 2 deletions(-)
drivers/net/ethernet/intel/igc/igc_main.c +0 -2
index 1fb5f3cbe93c..b0a4c2893ccb 100644
@@ -1137,8 +1137,6 @@ static void igc_init_tx_empty_descriptor(struct igc_ring *ring,
 		ring->next_to_use = 0;
 }
 
-#define IGC_EMPTY_FRAME_SIZE 60
-
 static void igc_tx_ctxtdesc(struct igc_ring *tx_ring,
 			    __le32 launch_time, bool first_flag,
 			    u32 vlan_macip_lens, u32 type_tucmd,
drivers/net/ethernet/intel/igc/igc_tsn.h +1 -0
index a95b893459d7..e08f48543d99 100644
@@ -8,6 +8,7 @@
 
 #define IGC_RX_MIN_FRAG_SIZE		60
 #define SMD_FRAME_SIZE			60
+#define IGC_EMPTY_FRAME_SIZE		60
 
 enum igc_txd_popts_type {
 	SMD_V = 0x01,
Signature · 1 line
2.43.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 48 lines

-----Original Message-----
From: Sasha Neftin <[email protected]>
Sent: Friday, September 25, 2026 12:12 PM
To: [email protected]
Subject: [iwl-next, v1] igc: Group frame size macros in igc_tsn.h

Move the IGC_EMPTY_FRAME_SIZE definition from igc_main.c to igc_tsn.h. This consolidates frame-size definitions for TSN and frame context descriptors into a single header alongside IGC_RX_MIN_FRAG_SIZE and SMD_FRAME_SIZE, making the constants available across TSN modules.

---
 drivers/net/ethernet/intel/igc/igc_main.c | 2 --
drivers/net/ethernet/intel/igc/igc_tsn.h  | 1 +
 2 files changed, 1 insertion(+), 2 deletions(-)
drivers/net/ethernet/intel/igc/igc_main.c +0 -2
index 1fb5f3cbe93c..b0a4c2893ccb 100644
@@ -1137,8 +1137,6 @@ static void igc_init_tx_empty_descriptor(struct
 igc_ring *ring,
 		ring->next_to_use = 0;
 }
 
-#define IGC_EMPTY_FRAME_SIZE 60
-
 static void igc_tx_ctxtdesc(struct igc_ring *tx_ring,
 			    __le32 launch_time, bool first_flag,

u32 vlan_macip_lens, u32 type_tucmd, diff --
git a/drivers/net/ethernet/intel/igc/igc_tsn.h b/drivers/net/ethernet/intel/igc/igc_tsn.h
index a95b893459d7..e08f48543d99 100644

drivers/net/ethernet/intel/igc/igc_tsn.h +1 -1
@@ -8,6 +8,7 @@
 
 #define IGC_RX_MIN_FRAG_SIZE		60
 #define SMD_FRAME_SIZE			60
+#define IGC_EMPTY_FRAME_SIZE		60
 
 enum igc_txd_popts_type {
 	SMD_V = 0x01,
--
Quoted 1 line

2.43.0

Tested-by
#2 lore raw
Quoted 45 lines · Aleksandr
Quoted 45 lines

-----Original Message-----
From: Sasha Neftin <[email protected]>
Sent: Friday, September 25, 2026 12:12 PM
To: [email protected]
Subject: [iwl-next, v1] igc: Group frame size macros in igc_tsn.h

Move the IGC_EMPTY_FRAME_SIZE definition from igc_main.c to igc_tsn.h. This consolidates frame-size definitions for TSN and frame context descriptors into a single header alongside IGC_RX_MIN_FRAG_SIZE and SMD_FRAME_SIZE, making the constants available across TSN modules.

---
  drivers/net/ethernet/intel/igc/igc_main.c | 2 --
drivers/net/ethernet/intel/igc/igc_tsn.h  | 1 +
  2 files changed, 1 insertion(+), 2 deletions(-)
drivers/net/ethernet/intel/igc/igc_main.c +0 -2
index 1fb5f3cbe93c..b0a4c2893ccb 100644
@@ -1137,8 +1137,6 @@ static void igc_init_tx_empty_descriptor(struct
 igc_ring *ring,
  		ring->next_to_use = 0;
  }
 
-#define IGC_EMPTY_FRAME_SIZE 60
-
  static void igc_tx_ctxtdesc(struct igc_ring *tx_ring,
  			    __le32 launch_time, bool first_flag,

u32 vlan_macip_lens, u32 type_tucmd, diff --
git a/drivers/net/ethernet/intel/igc/igc_tsn.h b/drivers/net/ethernet/intel/igc/igc_tsn.h
index a95b893459d7..e08f48543d99 100644

drivers/net/ethernet/intel/igc/igc_tsn.h +1 -0
@@ -8,6 +8,7 @@
 
  #define IGC_RX_MIN_FRAG_SIZE		60
  #define SMD_FRAME_SIZE			60
+#define IGC_EMPTY_FRAME_SIZE		60
 
Quoted 6 lines
Quoted 4 lines
drivers/net/ethernet/intel/igc/igc_tsn.h +0 -1
  enum igc_txd_popts_type {
  	SMD_V = 0x01,
--

2.43.0