Skip to content

Commit 09aeafe

Browse files
yoongsiang2mehmetb0
authored andcommitted
igc: Set buffer type for empty frames in igc_init_empty_frame
BugLink: https://bugs.launchpad.net/bugs/2104873 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: db0b124 ("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> Signed-off-by: Noah Wager <noah.wager@canonical.com> Signed-off-by: Mehmet Basaran <mehmet.basaran@canonical.com>
1 parent 0889f78 commit 09aeafe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/intel/igc/igc_main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,6 +1096,7 @@ static int igc_init_empty_frame(struct igc_ring *ring,
10961096
return -ENOMEM;
10971097
}
10981098

1099+
buffer->type = IGC_TX_BUFFER_TYPE_SKB;
10991100
buffer->skb = skb;
11001101
buffer->protocol = 0;
11011102
buffer->bytecount = skb->len;

0 commit comments

Comments
 (0)