[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20231103222748.12551-1-daniel@iogearbox.net>
Date: Fri, 3 Nov 2023 23:27:42 +0100
From: Daniel Borkmann <daniel@...earbox.net>
To: martin.lau@...nel.org
Cc: kuba@...nel.org,
netdev@...r.kernel.org,
bpf@...r.kernel.org,
Daniel Borkmann <daniel@...earbox.net>
Subject: [PATCH bpf 0/6] bpf_redirect_peer fixes
This fixes bpf_redirect_peer stats accounting for veth and netkit,
and adds tstats in the first place for the latter. Utilise indirect
call wrapper for bpf_redirect_peer, and improve test coverage of the
latter also for netkit devices. Details in the patches, thanks!
Daniel Borkmann (4):
netkit: Add tstats per-CPU traffic counters
bpf, netkit: Add indirect call wrapper for fetching peer dev
selftests/bpf: De-veth-ize the tc_redirect test case
selftests/bpf: Add netkit to tc_redirect selftest
Peilin Ye (2):
veth: Use tstats per-CPU traffic counters
bpf: Fix dev's rx stats for bpf_redirect_peer traffic
drivers/net/netkit.c | 42 ++-
drivers/net/veth.c | 36 +-
include/linux/netdevice.h | 3 +-
include/net/netkit.h | 6 +
net/core/filter.c | 19 +-
.../selftests/bpf/prog_tests/tc_redirect.c | 317 +++++++++++-------
6 files changed, 262 insertions(+), 161 deletions(-)
--
2.34.1
Powered by blists - more mailing lists