]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: netfilter: Make ct zone opts configurable for bpf ct helpers
authorBrad Cowie <brad@faucet.nz>
Wed, 22 May 2024 05:07:11 +0000 (17:07 +1200)
committerMartin KaFai Lau <martin.lau@kernel.org>
Wed, 22 May 2024 22:00:56 +0000 (15:00 -0700)
commitece4b296904167336d0aaab26bd7122018835202
tree1e76d69c55a244163bfdef543ad42410618ffb22
parent6c8d7598dfed759bf1d9d0322b4c2b42eb7252d8
net: netfilter: Make ct zone opts configurable for bpf ct helpers

Add ct zone id and direction to bpf_ct_opts so that arbitrary ct zones
can be used for xdp/tc bpf ct helper functions bpf_{xdp,skb}_ct_alloc
and bpf_{xdp,skb}_ct_lookup.

Signed-off-by: Brad Cowie <brad@faucet.nz>
Link: https://lore.kernel.org/r/20240522050712.732558-1-brad@faucet.nz
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
net/netfilter/nf_conntrack_bpf.c