diff options
author | Toke Høiland-Jørgensen | 2023-08-24 12:22:47 +0200 |
---|---|---|
committer | Alexei Starovoitov | 2023-08-24 08:43:50 -0700 |
commit | eaca21d6eee9bb9b9f53c1c187d488ff1cbb6168 (patch) | |
tree | a3960c2954b9c0f6fa2251cb06f65a034b71d136 /mm/swap.h | |
parent | 0e445e115f8f4f3d3de5b9199dc2da83d75b1f3c (diff) |
samples/bpf: Remove the xdp1 and xdp2 utilities
The functionality of these utilities have been incorporated into the
xdp-bench utility in xdp-tools.
Equivalent functionality is:
xdp1 eth0
--> xdp-bench drop -p parse-ip -l load-bytes eth0
xdp2 eth0
--> xdp-bench drop -p swap-macs eth0
Note that there's a slight difference in behaviour of those examples: the
swap-macs operation of xdp-bench doesn't use the bpf_xdp_load_bytes()
helper to load the packet data, whereas the xdp2 utility did so
unconditionally. For the parse-ip action the use of bpf_xdp_load_bytes()
can be selected by the '-l load-bytes' switch, with the difference that the
xdp-bench utility will perform two separate calls to the helper, one to
load the ethernet header and another to load the IP header; where the xdp1
utility only performed one call always loading 60 bytes of data.
Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
Link: https://lore.kernel.org/r/20230824102255.1561885-5-toke@redhat.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'mm/swap.h')
0 files changed, 0 insertions, 0 deletions