Skip to content

Commit 63f20f0

Browse files
yoongsiang2anguy11
authored andcommitted
igc: Set buffer type for empty frames in igc_init_empty_frame
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: [email protected] # 6.2+ Signed-off-by: Song Yoong Siang <[email protected]> Acked-by: Maciej Fijalkowski <[email protected]> Reviewed-by: Simon Horman <[email protected]> Tested-by: Mor Bar-Gabay <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
1 parent 7822dd4 commit 63f20f0

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)