On 25/09/2026 13:27, Loktionov, Aleksandr wrote:
-----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.
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(-)
diff --git a/drivers/net/ethernet/intel/igc/igc_main.c
b/drivers/net/ethernet/intel/igc/igc_main.c
index 1fb5f3cbe93c..b0a4c2893ccb 100644
--- a/drivers/net/ethernet/intel/igc/igc_main.c
+++ b/drivers/net/ethernet/intel/igc/igc_main.c
@@ -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
--- a/drivers/net/ethernet/intel/igc/igc_tsn.h
+++ b/drivers/net/ethernet/intel/igc/igc_tsn.h
@@ -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,
--
2.43.0
Reviewed-by: Aleksandr Loktionov <[email protected]>
Tested-by: Michal Cohen <[email protected]>