All of lore.kernel.org
 help / color / mirror / Atom feed
* [net v5 0/3] fix bpf_redirect to ifb netdev
@ 2021-12-08 14:54 xiangxia.m.yue
  2021-12-08 14:54 ` [net v5 1/3] net: core: set skb useful vars in __bpf_tx_skb xiangxia.m.yue
                   ` (3 more replies)
  0 siblings, 4 replies; 19+ messages in thread
From: xiangxia.m.yue @ 2021-12-08 14:54 UTC (permalink / raw)
  To: netdev
  Cc: Tonghao Zhang, David S. Miller, Jakub Kicinski,
	Alexei Starovoitov, Daniel Borkmann, Andrii Nakryiko,
	Martin KaFai Lau, Song Liu, Yonghong Song, John Fastabend,
	KP Singh, Eric Dumazet, Antoine Tenart, Alexander Lobakin,
	Wei Wang, Arnd Bergmann

From: Tonghao Zhang <xiangxia.m.yue@gmail.com>

This patchset try to fix bpf_redirect to ifb netdev.
Prevent packets loopback and perfromance drop, add check
in sch egress.

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@davemloft.net>
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: Andrii Nakryiko <andrii@kernel.org>
Cc: Martin KaFai Lau <kafai@fb.com>
Cc: Song Liu <songliubraving@fb.com>
Cc: Yonghong Song <yhs@fb.com>
Cc: John Fastabend <john.fastabend@gmail.com>
Cc: KP Singh <kpsingh@kernel.org>
Cc: Eric Dumazet <edumazet@google.com>
Cc: Antoine Tenart <atenart@kernel.org>
Cc: Alexander Lobakin <alexandr.lobakin@intel.com>
Cc: Wei Wang <weiwan@google.com>
Cc: Arnd Bergmann <arnd@arndb.de>
--
2.27.0


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2022-01-10  1:35 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-08 14:54 [net v5 0/3] fix bpf_redirect to ifb netdev xiangxia.m.yue
2021-12-08 14:54 ` [net v5 1/3] net: core: set skb useful vars in __bpf_tx_skb xiangxia.m.yue
2021-12-08 14:54 ` [net v5 2/3] net: sched: add check tc_skip_classify in sch egress xiangxia.m.yue
2021-12-10 16:43   ` John Fastabend
2021-12-10 16:52     ` John Fastabend
2021-12-10 17:43       ` Tonghao Zhang
2021-12-10 17:37     ` Tonghao Zhang
2021-12-10 17:46       ` Tonghao Zhang
2021-12-10 19:54         ` Tonghao Zhang
2021-12-10 20:11           ` Daniel Borkmann
2021-12-11  0:37             ` Tonghao Zhang
2021-12-16 12:37               ` Daniel Borkmann
2021-12-17  3:21                 ` Tonghao Zhang
2022-01-10  1:34                   ` Tonghao Zhang
2021-12-12  9:40             ` Tonghao Zhang
2021-12-14  2:27               ` Tonghao Zhang
2021-12-08 14:54 ` [net v5 3/3] selftests: bpf: add bpf_redirect to ifb xiangxia.m.yue
2021-12-08 15:41 ` [net v5 0/3] fix bpf_redirect to ifb netdev Alexander Lobakin
2021-12-08 15:53   ` Tonghao Zhang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.