linux/drivers/net/ethernet/intel
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
..
e1000 intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
e1000e intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
fm10k intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
i40e intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
i40evf intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
igb intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
igbvf intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
ixgb intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
ixgbe ixgbe: tweak page counting for XDP_REDIRECT 2018-03-23 15:23:51 -07:00
ixgbevf ixgbevf: Add XDP queue stats reporting 2018-03-23 15:22:11 -07:00
e100.c intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
Kconfig i40evf: Add support for Adaptive Virtual Function 2017-06-01 14:30:02 -07:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00