]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: Add programming descriptors to cleaned_count
authorAlexander Duyck <alexander.h.duyck@intel.com>
Sun, 22 Oct 2017 01:12:29 +0000 (18:12 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 26 Oct 2017 14:42:58 +0000 (07:42 -0700)
commit4beb9789b2ae6a5e74e3e4f744404c8d82e55ced
tree1d5d63dd8b241b6ef231cb528f9a39ba48da5a1c
parent1c3e12f3b5c4eb68b56f4365d4a9600c90b4c3d2
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: a8f54c30ef18 ("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>
drivers/net/ethernet/intel/i40e/i40e_txrx.c