aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/skbuff.c
diff options
context:
space:
mode:
authorBjörn Töpel <bjorn.topel@intel.com>2018-03-22 10:02:36 +0100
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2018-03-23 15:23:51 -0700
commited93a39871282fc0dbc2fecd0d04ea0ddad54353 (patch)
tree0b572c2a5c465ff76d738b106aafb6e13fea77af /net/core/skbuff.c
parentixgbevf: Add XDP queue stats reporting (diff)
downloadlinux-dev-ed93a39871282fc0dbc2fecd0d04ea0ddad54353.tar.xz
linux-dev-ed93a39871282fc0dbc2fecd0d04ea0ddad54353.zip
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>
Diffstat (limited to 'net/core/skbuff.c')
0 files changed, 0 insertions, 0 deletions