]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
i40e: Add programming descriptors to cleaned_count
authorAlexander Duyck <alexander.h.duyck@intel.com>
Fri, 9 Mar 2018 08:12:00 +0000 (09:12 +0100)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 14 Mar 2018 10:52:24 +0000 (11:52 +0100)
commit67fdb2265e0d13496a8a2201fd8852a620696836
treebbc90021edfd491c6cffb41885d05e5a3d012ba6
parentd08439d338d2676b032bd98707796334a1555232
i40e: Add programming descriptors to cleaned_count

BugLink: http://bugs.launchpad.net/bugs/1748408
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: 0e626ff7ccbf ("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>
(cherry picked from commit 62b4c6694dfd3821bd5ea5bed48238bbabd5fe8b)
Signed-off-by: Joseph Salisbury <joseph.salisbury@canonical.com>
Acked-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/net/ethernet/intel/i40e/i40e_txrx.c