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)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 10 Oct 2017 15:04:36 +0000 (08:04 -0700)
commit2b9478ffc550f17c6cd8c69057234e91150f5972
tree3c3478f6c489db75c980a618a44dbd0dc80fc3ef
parente836e3211229d7307660239cc957f2ab60e6aa00
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>
drivers/net/ethernet/intel/i40e/i40e_txrx.c