summaryrefslogtreecommitdiffstats
path: root/samples/bpf
diff options
context:
space:
mode:
authorBjörn Töpel <bjorn.topel@intel.com>2019-02-12 09:52:05 +0100
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2019-04-01 11:32:48 -0700
commit44ddd4f1709249dd1779dda7c907668a0b9ef833 (patch)
tree533f3d9dbef825a3bf4f54b745b883f23c8c8429 /samples/bpf
parentb83f28e1e38a8324eaa5e55f2c7ee2f75e748f08 (diff)
downloadlinux-44ddd4f1709249dd1779dda7c907668a0b9ef833.tar.bz2
i40e: add tracking of AF_XDP ZC state for each queue pair
In commit f3fef2b6e1cc ("i40e: Remove umem from VSI") a regression was introduced; When the VSI was reset, the setup code would try to enable AF_XDP ZC unconditionally (as long as there was a umem placed in the netdev._rx struct). Here, we add a bitmap to the VSI that tracks if a certain queue pair has been "zero-copy enabled" via the ndo_bpf. The bitmap is used in i40e_xsk_umem, and enables zero-copy if and only if XDP is enabled, the corresponding qid in the bitmap is set and the umem is non-NULL. Fixes: f3fef2b6e1cc ("i40e: Remove umem from VSI") Signed-off-by: Björn Töpel <bjorn.topel@intel.com> Tested-by: Aaron Brown <aaron.f.brown@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'samples/bpf')
0 files changed, 0 insertions, 0 deletions