We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 582573f commit 3f6a57eCopy full SHA for 3f6a57e
drivers/net/ethernet/intel/igb/igb_main.c
@@ -4819,8 +4819,11 @@ static void igb_clean_tx_ring(struct igb_ring *tx_ring)
4819
while (i != tx_ring->next_to_use) {
4820
union e1000_adv_tx_desc *eop_desc, *tx_desc;
4821
4822
- /* Free all the Tx ring sk_buffs */
4823
- dev_kfree_skb_any(tx_buffer->skb);
+ /* Free all the Tx ring sk_buffs or xdp frames */
+ if (tx_buffer->type == IGB_TYPE_SKB)
4824
+ dev_kfree_skb_any(tx_buffer->skb);
4825
+ else
4826
+ xdp_return_frame(tx_buffer->xdpf);
4827
4828
/* unmap skb header data */
4829
dma_unmap_single(tx_ring->dev,
0 commit comments