diff options
Diffstat (limited to 'drivers/net/ethernet/intel/i40e')
-rw-r--r-- | drivers/net/ethernet/intel/i40e/i40e_txrx.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e_txrx.c b/drivers/net/ethernet/intel/i40e/i40e_txrx.c index 9b11f2e7e361..5a1a67733b88 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_txrx.c +++ b/drivers/net/ethernet/intel/i40e/i40e_txrx.c | |||
@@ -1565,8 +1565,11 @@ static int i40e_clean_rx_irq_ps(struct i40e_ring *rx_ring, int budget) | |||
1565 | if (likely(!skb)) { | 1565 | if (likely(!skb)) { |
1566 | skb = netdev_alloc_skb_ip_align(rx_ring->netdev, | 1566 | skb = netdev_alloc_skb_ip_align(rx_ring->netdev, |
1567 | rx_ring->rx_hdr_len); | 1567 | rx_ring->rx_hdr_len); |
1568 | if (!skb) | 1568 | if (!skb) { |
1569 | rx_ring->rx_stats.alloc_buff_failed++; | 1569 | rx_ring->rx_stats.alloc_buff_failed++; |
1570 | break; | ||
1571 | } | ||
1572 | |||
1570 | /* initialize queue mapping */ | 1573 | /* initialize queue mapping */ |
1571 | skb_record_rx_queue(skb, rx_ring->queue_index); | 1574 | skb_record_rx_queue(skb, rx_ring->queue_index); |
1572 | /* we are reusing so sync this buffer for CPU use */ | 1575 | /* we are reusing so sync this buffer for CPU use */ |