]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i40e: Fix memory leak related filter programming status
authorAlexander Duyck <alexander.h.duyck@intel.com>
Wed, 4 Oct 2017 15:44:43 +0000 (08:44 -0700)
committerBrian Maly <brian.maly@oracle.com>
Tue, 30 Oct 2018 18:22:18 +0000 (14:22 -0400)
commitb2577cc3ee63b204c2dc5b1fa598016bfd376b83
tree0cbd4626297e00392010ff2ea80a5b0a896d86c8
parentafea9bba211a1fae99f2cf0e983cdb37a6eb6cfc
i40e: Fix memory leak related filter programming status

It looks like we weren't correctly placing the pages from buffers that had
been used to return a filter programming status back on the ring. As a
result they were being overwritten and tracking of the pages was lost.

This change works to correct that by incorporating part of
i40e_put_rx_buffer into the programming status handler code. As a result we
should now be correctly placing the pages for those buffers on the
re-allocation list instead of letting them stay in place.

Fixes: 0e626ff7ccbf ("i40e: Fix support for flow director programming status")
Reported-by: Anders K. Pedersen <akp@cohaesio.com>
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 2b9478ffc550f17c6cd8c69057234e91150f5972)

Orabug: 28228724

Signed-off-by: Honglei Wang <honglei.wang@oracle.com>
Reviewed-by: Jack Vogel <jack.vogel@oracle.com>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Conflicts:
drivers/net/ethernet/intel/i40e/i40e_txrx.c

Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/i40e/i40e_txrx.c