linux/drivers/net/ethernet/intel/i40e
Alexander Duyck a0cfc3130e i40e/i40evf: Pull out code for cleaning up Rx buffers
This patch pulls out the code responsible for handling buffer recycling and
page counting and distributes it through several functions.  This allows us
to commonize the bits that handle either freeing or recycling the buffers.

As far as the page count tracking one change to the logic is that
pagecnt_bias is decremented as soon as we call i40e_get_rx_buffer.  It is
then the responsibility of the function that pulls the data to either
increment the pagecnt_bias if the buffer can be recycled as-is, or to
update page_offset so that we are pointing at the correct location for
placement of the next buffer.

Change-ID: Ibac576360cb7f0b1627f2a993d13c1a8a2bf60af
Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2017-03-29 02:15:06 -07:00
..
i40e_adminq_cmd.h i40e: fix up recent proxy and wol bits for X722_SUPPORT 2017-03-14 17:52:32 -07:00
i40e_adminq.c i40e: Implementation of ERROR state for NVM update state machine 2016-10-31 14:26:40 -07:00
i40e_adminq.h i40e: Move NVM variable out of AQ struct 2016-04-06 18:45:11 -07:00
i40e_alloc.h
i40e_client.c i40e: initialize params before notifying of l2_param_changes 2017-03-27 16:47:44 -07:00
i40e_client.h i40e: KISS the client interface 2017-03-15 01:57:08 -07:00
i40e_common.c i40e: use register for XL722 control register read/write 2017-03-29 02:15:06 -07:00
i40e_dcb_nl.c
i40e_dcb.c
i40e_dcb.h
i40e_debugfs.c i40e: Drop FCoE code from core driver files 2017-03-27 16:47:43 -07:00
i40e_devids.h i40e: Add support for 25G devices 2016-12-06 20:59:43 -08:00
i40e_diag.c
i40e_diag.h
i40e_ethtool.c i40e: Clean up handling of private flags 2017-03-29 02:15:06 -07:00
i40e_fcoe.c i40e: store MAC/VLAN filters in a hash with the MAC Address as key 2016-10-31 14:26:40 -07:00
i40e_fcoe.h
i40e_hmc.c i40e: fix an uninitialized variable bug 2016-05-14 00:21:51 -07:00
i40e_hmc.h
i40e_lan_hmc.c
i40e_lan_hmc.h
i40e_main.c i40e: remove a useless goto statement 2017-03-29 02:15:06 -07:00
i40e_nvm.c i40e: Acquire NVM lock before reads on all devices 2017-03-14 17:52:32 -07:00
i40e_osdep.h i40e: Drop FCoE code from core driver files 2017-03-27 16:47:43 -07:00
i40e_prototype.h i40e: Drop FCoE code from core driver files 2017-03-27 16:47:43 -07:00
i40e_ptp.c i40e: don't warn every time we clear an Rx timestamp register 2017-02-11 20:39:01 -08:00
i40e_register.h
i40e_status.h
i40e_txrx.c i40e/i40evf: Pull out code for cleaning up Rx buffers 2017-03-29 02:15:06 -07:00
i40e_txrx.h i40e: Drop FCoE code from core driver files 2017-03-27 16:47:43 -07:00
i40e_type.h i40e: Drop FCoE code from core driver files 2017-03-27 16:47:43 -07:00
i40e_virtchnl_pf.c i40e: Fixed race conditions in VF reset 2017-03-27 16:45:14 -07:00
i40e_virtchnl_pf.h i40e: Drop FCoE code that always evaluates to false or 0 2017-03-27 16:47:44 -07:00
i40e_virtchnl.h i40e: group base mode VF offload flags 2016-10-28 23:28:39 -07:00
i40e.h i40e: remove FDIR_REQUIRES_REINIT driver flag 2017-03-29 02:15:06 -07:00
Makefile i40e: Drop FCoE code from core driver files 2017-03-27 16:47:43 -07:00