igc: Group frame size macros in igc_tsn.h
Subsystems (2)
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
@@ -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
@@ -8,6 +8,7 @@#define IGC_RX_MIN_FRAG_SIZE 60#define SMD_FRAME_SIZE 60 +#define IGC_EMPTY_FRAME_SIZE 60enum igc_txd_popts_type {SMD_V =0x01 ,
Signature · 1 line
2.43.0
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 inigc_tsn.hMove the
IGC_EMPTY_FRAME_SIZEdefinition fromigc_main.ctoigc_tsn.h. This consolidates frame-size definitions for TSN and frame context descriptors into a single header alongsideIGC_RX_MIN_FRAG_SIZEandSMD_FRAME_SIZE, making the constants available across TSN modules.Signed-off-by Sasha Neftin <[email protected]>--- 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@@ -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, u32type_tucmd, diff --
gita/drivers/net/ethernet/intel/igc/igc_tsn.hb/drivers/net/ethernet/intel/igc/igc_tsn.h
indexa95b893459d7..e08f48543d99100644drivers/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 60enum igc_txd_popts_type {SMD_V =0x01 , --
Quoted 1 line
2.43.0
Cohen, MichalX
Tested-byQuoted 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 inigc_tsn.hMove the
IGC_EMPTY_FRAME_SIZEdefinition fromigc_main.ctoigc_tsn.h. This consolidates frame-size definitions for TSN and frame context descriptors into a single header alongsideIGC_RX_MIN_FRAG_SIZEandSMD_FRAME_SIZE, making the constants available across TSN modules.Signed-off-by Sasha Neftin <[email protected]>--- 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@@ -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, u32type_tucmd, diff --
gita/drivers/net/ethernet/intel/igc/igc_tsn.hb/drivers/net/ethernet/intel/igc/igc_tsn.h
indexa95b893459d7..e08f48543d99100644drivers/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
-1enum igc_txd_popts_type {SMD_V =0x01 , --2.43.0
Reviewed-by Aleksandr Loktionov <[email protected]>