]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
Merge branch 'bpf_redirect_peer fixes'
authorMartin KaFai Lau <martin.lau@kernel.org>
Mon, 20 Nov 2023 18:15:17 +0000 (10:15 -0800)
committerMartin KaFai Lau <martin.lau@kernel.org>
Mon, 20 Nov 2023 18:16:32 +0000 (10:16 -0800)
commitfcb905d831336ee0a67dd953837a904173cf7390
treeb9365cd2f303f48ceebf15bcb03b5e44fc6d735b
parent76df934c6d5f5c93ba7a0112b1818620ddc10b19
parentadfeae2d243d9e5b83d094af481d189156b11779
Merge branch 'bpf_redirect_peer fixes'

Daniel Borkmann says:

====================
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!

The series was targeted at bpf originally, and is done here as well,
so it can trigger BPF CI. Jakub, if you think directly going via net
is better since the majority of the diff touches net anyway, that is
fine, too.

Thanks!

v2 -> v3:
  - Add kdoc for pcpu_stat_type (Simon)
  - Reject invalid type value in netdev_do_alloc_pcpu_stats (Simon)
  - Add Reviewed-by tags from list
v1 -> v2:
  - Move stats allocation/freeing into net core (Jakub)
  - As prepwork for the above, move vrf's dstats over into the core
  - Add a check into stats alloc to enforce tstats upon
    implementing ndo_get_peer_dev
  - Add Acked-by tags from list

Daniel Borkmann (6):
  net, vrf: Move dstats structure to core
  net: Move {l,t,d}stats allocation to core and convert veth & vrf
  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
====================

Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>