]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
igc: Set buffer type for empty frames in igc_init_empty_frame
authorSong Yoong Siang <yoong.siang.song@intel.com>
Wed, 5 Feb 2025 02:36:03 +0000 (10:36 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Feb 2025 13:01:37 +0000 (14:01 +0100)
commitfe2a10a4cb19fc9649ab9e47db7a51ad4eec8f7d
treed38a211932952885bb70d099eeb20a1a7553c36c
parent95992ebdafe6aed1e5415e21fea066c3105edd63
igc: Set buffer type for empty frames in igc_init_empty_frame

commit 63f20f00d23d569e4e67859b4e8dcc9de79221cb upstream.

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@vger.kernel.org # 6.2+
Signed-off-by: Song Yoong Siang <yoong.siang.song@intel.com>
Acked-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Tested-by: Mor Bar-Gabay <morx.bar.gabay@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/intel/igc/igc_main.c