History

net: netfilter: move bpf_ct_set_nat_info kfunc in nf_nat_bpf.c

Remove circular dependency between nf_nat module and nf_conntrack one moving bpf_ct_set_nat_info kfunc in nf_nat_bpf.c

Lorenzo Bianconi committed 4 years ago

Commit 820dc051 parent 736baae5 files · +106 −52Browse files

Showing the changes to include/net (1 of 5 files). Show all

Unified · Split

include/net/netfilter/nf_conntrack_bpf.h+19−0
@@ -4,6 +4,11 @@ · 3 unmodified lines
4#define _NF_CONNTRACK_BPF_H4#define _NF_CONNTRACK_BPF_H
5 5
6#include <linux/kconfig.h>6#include <linux/kconfig.h>
7#include <net/netfilter/nf_conntrack.h>
8
9struct nf_conn___init {
10 struct nf_conn ct;
11};
7 12
8#if (IS_BUILTIN(CONFIG_NF_CONNTRACK) && IS_ENABLED(CONFIG_DEBUG_INFO_BTF)) || \13#if (IS_BUILTIN(CONFIG_NF_CONNTRACK) && IS_ENABLED(CONFIG_DEBUG_INFO_BTF)) || \
9 (IS_MODULE(CONFIG_NF_CONNTRACK) && IS_ENABLED(CONFIG_DEBUG_INFO_BTF_MODULES))14 (IS_MODULE(CONFIG_NF_CONNTRACK) && IS_ENABLED(CONFIG_DEBUG_INFO_BTF_MODULES))
@@ -24,4 +29,18 @@ static inline void cleanup_nf_conntrack_bpf(void) · 14 unmodified lines
24 29
25#endif30#endif
26 31
32#if (IS_BUILTIN(CONFIG_NF_NAT) && IS_ENABLED(CONFIG_DEBUG_INFO_BTF)) || \
33 (IS_MODULE(CONFIG_NF_NAT) && IS_ENABLED(CONFIG_DEBUG_INFO_BTF_MODULES))
34
35extern int register_nf_nat_bpf(void);
36
37#else
38
39static inline int register_nf_nat_bpf(void)
40{
41 return 0;
42}
43
44#endif
45
27#endif /* _NF_CONNTRACK_BPF_H */46#endif /* _NF_CONNTRACK_BPF_H */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t