linux/drivers/net/ethernet/intel/ixgbe
Björn Töpel ed93a39871 ixgbe: tweak page counting for XDP_REDIRECT
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-23 15:23:51 -07:00
..
ixgbe_82598.c intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
ixgbe_82599.c intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
ixgbe_common.c intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
ixgbe_common.h ixgbe: add status reg reads to ixgbe_check_remove 2018-03-23 14:18:26 -07:00
ixgbe_dcb_82598.c intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
ixgbe_dcb_82598.h intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
ixgbe_dcb_82599.c ixgbe: Fix kernel-doc format warnings 2018-01-12 08:20:40 -08:00
ixgbe_dcb_82599.h intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
ixgbe_dcb_nl.c ixgbe: Don't assume dev->num_tc is equal to hardware TC config 2018-01-12 08:20:15 -08:00
ixgbe_dcb.c ixgbe: Fix kernel-doc format warnings 2018-01-12 08:20:40 -08:00
ixgbe_dcb.h intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
ixgbe_debugfs.c ixgbe: Fix kernel-doc format warnings 2018-01-12 08:20:40 -08:00
ixgbe_ethtool.c ixgbe: Add receive length error counter 2018-03-12 11:03:32 -07:00
ixgbe_fcoe.c ixgbe: Fix kernel-doc format warnings 2018-01-12 08:20:40 -08:00
ixgbe_fcoe.h intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
ixgbe_ipsec.c ixgbe: enable TSO with IPsec offload 2018-03-23 15:04:24 -07:00
ixgbe_ipsec.h intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
ixgbe_lib.c ixgbe: remove redundant initialization of 'pool' 2018-02-26 08:28:14 -08:00
ixgbe_main.c ixgbe: tweak page counting for XDP_REDIRECT 2018-03-23 15:23:51 -07:00
ixgbe_mbx.c ixgbe: use BIT() macro 2016-04-25 04:15:11 -07:00
ixgbe_mbx.h intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
ixgbe_model.h intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
ixgbe_phy.c ixgbe: Fix kernel-doc format warnings 2018-01-12 08:20:40 -08:00
ixgbe_phy.h intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
ixgbe_ptp.c ixgbe: Fix kernel-doc format warnings 2018-01-12 08:20:40 -08:00
ixgbe_sriov.c ixgbe: fix disabling hide VLAN on VF reset 2018-03-12 12:54:59 -07:00
ixgbe_sriov.h intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
ixgbe_sysfs.c ixgbe: add Linux NICS mailing list to contact info 2014-03-12 19:05:30 -07:00
ixgbe_type.h intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
ixgbe_x540.c ixgbe: Clear SWFW_SYNC register during init 2017-10-09 09:28:23 -07:00
ixgbe_x540.h intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
ixgbe_x550.c ixgbe: fix read-modify-write in x550 phy setup 2018-03-23 14:49:07 -07:00
ixgbe.h intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
Makefile intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00