net: netfilter: Deduplicate code in bpf_{xdp,skb}_ct_lookup
authorKumar Kartikeya Dwivedi <memxor@gmail.com>
Thu, 21 Jul 2022 13:42:38 +0000 (15:42 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 22 Jul 2022 04:03:16 +0000 (21:03 -0700)
commitaed8ee7feb44b6537af1e0b4f03365d42928be38
tree527faf16d58508b030111a1d46b6f6da5bff662c
parent63e564ebd1fd91c7194266a2169ab5be984f08bc
net: netfilter: Deduplicate code in bpf_{xdp,skb}_ct_lookup

Move common checks inside the common function, and maintain the only
difference the two being how to obtain the struct net * from ctx.
No functional change intended.

Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Link: https://lore.kernel.org/r/20220721134245.2450-7-memxor@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
net/netfilter/nf_conntrack_bpf.c