aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/amba
diff options
context:
space:
mode:
authorBjörn Töpel <bjorn.topel@intel.com>2018-09-07 10:18:48 +0200
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2018-09-25 13:16:19 -0700
commit3ab52af58fa481324bb7c839a2187c54c4af912b (patch)
tree23c7f5927c27ba3bbaabc241bf9b2ddd4d546a17 /drivers/amba
parenti40e: clean zero-copy XDP Rx ring on shutdown/reset (diff)
downloadlinux-dev-3ab52af58fa481324bb7c839a2187c54c4af912b.tar.xz
linux-dev-3ab52af58fa481324bb7c839a2187c54c4af912b.zip
i40e: disallow changing the number of descriptors when AF_XDP is on
When an AF_XDP UMEM is attached to any of the Rx rings, we disallow a user to change the number of descriptors via e.g. "ethtool -G IFNAME". Otherwise, the size of the stash/reuse queue can grow unbounded, which would result in OOM or leaking userspace buffers. 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 'drivers/amba')
0 files changed, 0 insertions, 0 deletions