Files
xdp-project-bpf-examples/MTU-tests
Jesper Dangaard Brouer ae7b0948f9 MTU-tests: Makefile detect if TC have libbpf
Only strip BTF info when TC don't have libbpf support.

Signed-off-by: Jesper Dangaard Brouer <netoptimizer@brouer.com>
2021-01-13 18:09:06 +01:00
..
2020-10-13 15:37:05 +02:00

BPF testing packet size changes

Playing with increasing packet size with TC-BPF. Testing what happens when sending packets larger that MTU out an interface.

Notes loading BPF object

How to manually load TC program:

export DEV=mlx5p1
tc qdisc del dev "$DEV" clsact # Also deletes all filters
tc qdisc add dev "$DEV" clsact
tc filter add dev "$DEV" pref 1 handle 1 egress bpf da obj tc_bpf_inc_pkt_size.o
tc filter show dev "$DEV" egress

Be VERY careful with replace command, it MUST have same pref +=handle=:

tc filter replace dev "$DEV" pref 1 handle 1 egress bpf da obj tc_bpf_inc_pkt_size.o