]> git.baikalelectronics.ru Git - kernel.git/commit
net: netfilter: Reports ct direction in CT lookup helpers for XDP and TC-BPF
authorLorenzo Bianconi <lorenzo@kernel.org>
Sat, 2 Apr 2022 14:19:14 +0000 (16:19 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 6 Apr 2022 16:58:30 +0000 (09:58 -0700)
commitdefac4b901a768e8d5e73474e2895018713e3839
tree7d08dfca0bd153a770b76d8618ac62adef704593
parente3768f45d55c81859f2844b80d00449d4b8c8190
net: netfilter: Reports ct direction in CT lookup helpers for XDP and TC-BPF

Report connection tracking tuple direction in
bpf_skb_ct_lookup/bpf_xdp_ct_lookup helpers. Direction will be used to
implement snat/dnat through xdp ebpf program.

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/aa1aaac89191cfc64078ecef36c0a48c302321b9.1648908601.git.lorenzo@kernel.org
net/netfilter/nf_conntrack_bpf.c