All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sasha Neftin <sashaneftin@gmail.com>
To: intel-wired-lan@osuosl.org
Subject: [iwl-next, v1] igc: Group frame size macros in igc_tsn.h
Date: Fri, 25 Sep 2026 13:12:09 +0300	[thread overview]
Message-ID: <20260925101209.34832-1-sashaneftin@gmail.com> (raw)

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 <sashaneftin@gmail.com>
---
 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


             reply	other threads:[~2026-09-25 10:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-25 10:12 Sasha Neftin [this message]
2026-09-25 10:27 ` [iwl-next, v1] igc: Group frame size macros in igc_tsn.h Loktionov, Aleksandr

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=20260925101209.34832-1-sashaneftin@gmail.com \
    --to=sashaneftin@gmail.com \
    --cc=intel-wired-lan@osuosl.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.