diff options
| author | Maciej Fijalkowski <[email protected]> | 2022-04-13 17:30:04 +0200 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2022-04-15 21:10:25 +0200 |
| commit | 0bd5ab511e30a8c462c377d0fdda3374fc6200a4 (patch) | |
| tree | ae1494d61b6bab91252b086bd13f54fb89e11860 /tools/perf/scripts/python | |
| parent | 2be4a677ccb2cae1f72a9467e922642655efc0be (diff) | |
ice, xsk: Decorate ICE_XDP_REDIR with likely()
ice_run_xdp_zc() suggests to compiler that XDP_REDIRECT is the most
probable action returned from BPF program that AF_XDP has in its
pipeline. Let's also bring this suggestion up to the callsite of
ice_run_xdp_zc() so that compiler will be able to generate more
optimized code which in turn will make branch predictor happy.
Suggested-by: Jesper Dangaard Brouer <[email protected]>
Signed-off-by: Maciej Fijalkowski <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions