diff options
author | Jesper Dangaard Brouer <[email protected]> | 2020-05-14 12:51:15 +0200 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2020-05-14 21:21:56 -0700 |
commit | 2a637c5b1aaf3b21418fadffad7e56ff27cee6f7 (patch) | |
tree | 4d87b314bcb0fb6fa15411505cb234946b6bb5c4 /tools/perf/scripts/python/sched-migration.py | |
parent | d4ecdbf7aa2fa4feac09befb04cdaf44e6dc938b (diff) |
xdp: For Intel AF_XDP drivers add XDP frame_sz
Intel drivers implement native AF_XDP zerocopy in separate C-files,
that have its own invocation of bpf_prog_run_xdp(). The setup of
xdp_buff is also handled in separately from normal code path.
This patch update XDP frame_sz for AF_XDP zerocopy drivers i40e, ice
and ixgbe, as the code changes needed are very similar. Introduce a
helper function xsk_umem_xdp_frame_sz() for calculating frame size.
Signed-off-by: Jesper Dangaard Brouer <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Acked-by: Björn Töpel <[email protected]>
Cc: [email protected]
Cc: Magnus Karlsson <[email protected]>
Link: https://lore.kernel.org/bpf/158945347511.97035.8536753731329475655.stgit@firesoul
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions