linux_dsm_epyc7002/drivers/net/ethernet/intel/i40e
Björn Töpel 8ce29c679a i40e: tweak page counting for XDP_REDIRECT
This commit tweaks the page counting for XDP_REDIRECT to function
properly. XDP_REDIRECT support will be added in a future commit.

The current page counting scheme assumes that the reference count
cannot decrease until the received frame is sent to the upper layers
of the networking stack. This assumption does not hold for the
XDP_REDIRECT action, since a page (pointed out by xdp_buff) can have
its reference count decreased via the xdp_do_redirect call.

To work around that, we now start off by a large page count and then
don't allow a refcount less than two.

Signed-off-by: Björn Töpel <bjorn.topel@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2018-03-26 14:10:04 -07:00
..
i40e_adminq_cmd.h intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
i40e_adminq.c intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
i40e_adminq.h intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
i40e_alloc.h intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
i40e_client.c i40e: move client flags into state bits 2018-03-26 13:50:56 -07:00
i40e_client.h intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
i40e_common.c intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
i40e_dcb_nl.c intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
i40e_dcb.c intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
i40e_dcb.h intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
i40e_debugfs.c intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
i40e_devids.h intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
i40e_diag.c intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
i40e_diag.h intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
i40e_ethtool.c i40e: stop using cmpxchg flow in i40e_set_priv_flags() 2018-03-26 13:56:45 -07:00
i40e_hmc.c intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
i40e_hmc.h intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
i40e_lan_hmc.c intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
i40e_lan_hmc.h intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
i40e_main.c i40e: hold the RTNL lock while changing interrupt schemes 2018-03-26 13:52:53 -07:00
i40e_nvm.c intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
i40e_osdep.h intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
i40e_prototype.h intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
i40e_ptp.c intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
i40e_register.h intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
i40e_status.h intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
i40e_trace.h intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
i40e_txrx.c i40e: tweak page counting for XDP_REDIRECT 2018-03-26 14:10:04 -07:00
i40e_txrx.h intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
i40e_type.h intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
i40e_virtchnl_pf.c intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
i40e_virtchnl_pf.h intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
i40e.h i40e: re-number feature flags to remove gaps 2018-03-26 14:00:12 -07:00
Makefile intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00