[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250211214343.4092496-7-anthony.l.nguyen@intel.com>
Date: Tue, 11 Feb 2025 13:43:37 -0800
From: Tony Nguyen <anthony.l.nguyen@...el.com>
To: davem@...emloft.net,
kuba@...nel.org,
pabeni@...hat.com,
edumazet@...gle.com,
andrew+netdev@...n.ch,
netdev@...r.kernel.org
Cc: Song Yoong Siang <yoong.siang.song@...el.com>,
anthony.l.nguyen@...el.com,
przemyslaw.kitszel@...el.com,
vitaly.lifshits@...el.com,
dima.ruinskiy@...el.com,
vinicius.gomes@...el.com,
stable@...r.kernel.org,
Maciej Fijalkowski <maciej.fijalkowski@...el.com>,
Simon Horman <horms@...nel.org>,
Mor Bar-Gabay <morx.bar.gabay@...el.com>
Subject: [PATCH net 6/6] igc: Set buffer type for empty frames in igc_init_empty_frame
From: Song Yoong Siang <yoong.siang.song@...el.com>
Set the buffer type to IGC_TX_BUFFER_TYPE_SKB for empty frame in the
igc_init_empty_frame function. This ensures that the buffer type is
correctly identified and handled during Tx ring cleanup.
Fixes: db0b124f02ba ("igc: Enhance Qbv scheduling by using first flag bit")
Cc: stable@...r.kernel.org # 6.2+
Signed-off-by: Song Yoong Siang <yoong.siang.song@...el.com>
Acked-by: Maciej Fijalkowski <maciej.fijalkowski@...el.com>
Reviewed-by: Simon Horman <horms@...nel.org>
Tested-by: Mor Bar-Gabay <morx.bar.gabay@...el.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@...el.com>
---
drivers/net/ethernet/intel/igc/igc_main.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/ethernet/intel/igc/igc_main.c b/drivers/net/ethernet/intel/igc/igc_main.c
index 21f318f12a8d..84307bb7313e 100644
--- a/drivers/net/ethernet/intel/igc/igc_main.c
+++ b/drivers/net/ethernet/intel/igc/igc_main.c
@@ -1096,6 +1096,7 @@ static int igc_init_empty_frame(struct igc_ring *ring,
return -ENOMEM;
}
+ buffer->type = IGC_TX_BUFFER_TYPE_SKB;
buffer->skb = skb;
buffer->protocol = 0;
buffer->bytecount = skb->len;
--
2.47.1
Powered by blists - more mailing lists