mirror_ubuntu-kernels/drivers/net/ethernet/intel
Maciej Fijalkowski dcbaf72aa4 ice: xsk: fix cleaned_count setting
Currently cleaned_count is initialized to ICE_DESC_UNUSED(rx_ring) and
later on during the Rx processing it is incremented per each frame that
driver consumed. This can result in excessive buffers requested from xsk
pool based on that value.

To address this, just drop cleaned_count and pass
ICE_DESC_UNUSED(rx_ring) directly as a function argument to
ice_alloc_rx_bufs_zc(). Idea is to ask for buffers as many as consumed.

Let us also call ice_alloc_rx_bufs_zc unconditionally at the end of
ice_clean_rx_irq_zc. This has been changed in that way for corresponding
ice_clean_rx_irq, but not here.

Fixes: 2d4238f556 ("ice: Add support for AF_XDP")
Signed-off-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Tested-by: Kiran Bhandare <kiranx.bhandare@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
2021-12-17 11:18:21 -08:00
..
e1000 ethernet: use eth_hw_addr_set() for dev->addr_len cases 2021-10-05 13:16:48 +01:00
e1000e Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-10-22 11:41:16 +01:00
fm10k ethernet: use eth_hw_addr_set() instead of ether_addr_copy() 2021-10-02 14:18:25 +01:00
i40e i40e: Fix NULL pointer dereference in i40e_dbg_dump_desc 2021-12-06 09:44:56 -08:00
iavf iavf: do not override the adapter state in the watchdog task (again) 2021-12-13 10:47:03 -08:00
ice ice: xsk: fix cleaned_count setting 2021-12-17 11:18:21 -08:00
igb igb: Fix removal of unicast MAC filters of VFs 2021-12-15 11:08:18 -08:00
igbvf igbvf: fix double free in igbvf_probe 2021-12-15 11:09:21 -08:00
igc igc: Fix typo in i225 LTR functions 2021-12-15 11:09:29 -08:00
ixgb ethernet: ixgb: use eth_hw_addr_set() 2021-10-16 08:53:46 +01:00
ixgbe ixgbe: set X550 MDIO speed before talking to PHY 2021-12-15 11:24:39 -08:00
ixgbevf net: ixgbevf: Remove redundant initialization of variable ret_val 2021-10-29 09:42:59 -07:00
e100.c e100: fix device suspend/resume 2021-11-18 11:40:31 +00:00
Kconfig ice: support basic E-Switch mode control 2021-10-07 10:41:41 -07:00
Makefile igc: Add skeletal frame for Intel(R) 2.5G Ethernet Controller support 2018-10-17 12:14:54 -07:00