Re: [net v5 0/3] fix bpf_redirect to ifb netdev

From: Alexander Lobakin
Date: Wed Dec 08 2021 - 10:42:22 EST


From: Tonghao Zhang <xiangxia.m.yue@xxxxxxxxx>
Date: Wed, 8 Dec 2021 22:54:56 +0800

> From: Tonghao Zhang <xiangxia.m.yue@xxxxxxxxx>
>
> This patchset try to fix bpf_redirect to ifb netdev.
> Prevent packets loopback and perfromance drop, add check
> in sch egress.

Please provide a changelog in the cover letter. With the links to
your previous versions ideally.
Otherwise it becomes difficult to understand what are the changes
between them.

>
> Tonghao Zhang (3):
> net: core: set skb useful vars in __bpf_tx_skb
> net: sched: add check tc_skip_classify in sch egress
> selftests: bpf: add bpf_redirect to ifb
>
> net/core/dev.c | 3 +
> net/core/filter.c | 12 ++-
> tools/testing/selftests/bpf/Makefile | 1 +
> .../bpf/progs/test_bpf_redirect_ifb.c | 13 ++++
> .../selftests/bpf/test_bpf_redirect_ifb.sh | 73 +++++++++++++++++++
> 5 files changed, 101 insertions(+), 1 deletion(-)
> create mode 100644 tools/testing/selftests/bpf/progs/test_bpf_redirect_ifb.c
> create mode 100755 tools/testing/selftests/bpf/test_bpf_redirect_ifb.sh
>
> --
> Cc: "David S. Miller" <davem@xxxxxxxxxxxxx>
> Cc: Jakub Kicinski <kuba@xxxxxxxxxx>
> Cc: Alexei Starovoitov <ast@xxxxxxxxxx>
> Cc: Daniel Borkmann <daniel@xxxxxxxxxxxxx>
> Cc: Andrii Nakryiko <andrii@xxxxxxxxxx>
> Cc: Martin KaFai Lau <kafai@xxxxxx>
> Cc: Song Liu <songliubraving@xxxxxx>
> Cc: Yonghong Song <yhs@xxxxxx>
> Cc: John Fastabend <john.fastabend@xxxxxxxxx>
> Cc: KP Singh <kpsingh@xxxxxxxxxx>
> Cc: Eric Dumazet <edumazet@xxxxxxxxxx>
> Cc: Antoine Tenart <atenart@xxxxxxxxxx>
> Cc: Alexander Lobakin <alexandr.lobakin@xxxxxxxxx>
> Cc: Wei Wang <weiwan@xxxxxxxxxx>
> Cc: Arnd Bergmann <arnd@xxxxxxxx>
> --
> 2.27.0

Al