Skip to content

Commit 62b4c66

Browse files
Alexander DuyckJeff Kirsher
authored andcommitted
i40e: Add programming descriptors to cleaned_count
This patch updates the i40e driver to include programming descriptors in the cleaned_count. Without this change it becomes possible for us to leak memory as we don't trigger a large enough allocation when the time comes to allocate new buffers and we end up overwriting a number of rx_buffers equal to the number of programming descriptors we encountered. Fixes: 0e626ff ("i40e: Fix support for flow director programming status") Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com> Tested-by: Anders K. Pedersen <akp@cohaesio.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
1 parent 1078134 commit 62b4c66

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/net/ethernet/intel/i40e/i40e_txrx.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2102,6 +2102,7 @@ static int i40e_clean_rx_irq(struct i40e_ring *rx_ring, int budget)
21022102

21032103
if (unlikely(i40e_rx_is_programming_status(qword))) {
21042104
i40e_clean_programming_status(rx_ring, rx_desc, qword);
2105+
cleaned_count++;
21052106
continue;
21062107
}
21072108
size = (qword & I40E_RXD_QW1_LENGTH_PBUF_MASK) >>

0 commit comments

Comments
 (0)