summaryrefslogtreecommitdiff
path: root/samples/bpf/load_sock_ops.c
diff options
context:
space:
mode:
authorJesper Dangaard Brouer <brouer@redhat.com>2018-06-25 17:27:48 +0300
committerDaniel Borkmann <daniel@iogearbox.net>2018-06-29 00:50:20 +0300
commit509fda105ba8f9a1a5c6f8b79e4c7fc50b35c1e3 (patch)
treec71cfab13dad3b8bab03a29004d286dc514daf07 /samples/bpf/load_sock_ops.c
parent0d25c43ab988766ad52ff2930af3bf47d92c20ac (diff)
downloadlinux-509fda105ba8f9a1a5c6f8b79e4c7fc50b35c1e3.tar.xz
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 <brouer@redhat.com> Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk> Acked-by: Song Liu <songliubraving@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'samples/bpf/load_sock_ops.c')
0 files changed, 0 insertions, 0 deletions