diff options
| author | Jesper Dangaard Brouer <[email protected]> | 2018-06-25 14:27:48 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2018-06-28 21:50:20 +0000 |
| commit | 509fda105ba8f9a1a5c6f8b79e4c7fc50b35c1e3 (patch) | |
| tree | c71cfab13dad3b8bab03a29004d286dc514daf07 /tools/bpf/bpftool/prog.c | |
| parent | samples/bpf: extend xdp_rxq_info to read packet payload (diff) | |
| download | kernel-509fda105ba8f9a1a5c6f8b79e4c7fc50b35c1e3.tar.gz kernel-509fda105ba8f9a1a5c6f8b79e4c7fc50b35c1e3.zip | |
samples/bpf: xdp_rxq_info action XDP_TX must adjust MAC-addrs
XDP_TX requires also changing the MAC-addrs, else some hardware
may drop the TX packet before reaching the wire. This was
observed with driver mlx5.
If xdp_rxq_info select --action XDP_TX the swapmac functionality
is activated. It is also possible to manually enable via cmdline
option --swapmac. This is practical if wanting to measure the
overhead of writing/updating payload for other action types.
Signed-off-by: Jesper Dangaard Brouer <[email protected]>
Signed-off-by: Toke Høiland-Jørgensen <[email protected]>
Acked-by: Song Liu <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions
