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)
commit1963c740dc2b52f45ba3d3748a50a0ab35db098a
tree7d08dfca0bd153a770b76d8618ac62adef704593
parent2d0df01974ce2b59b6f7d5bd3ea58d74f12ddf85
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