Skip to content

Commit 8527f9d

Browse files
Florian Westphalummakynes
authored andcommitted
netfilter: netns: shrink netns_ct struct
remove the obsolete sysctl anchors and move auto_assign_helper_warned to avoid/cover a hole. Reduces size by 40 bytes on 64 bit. Signed-off-by: Florian Westphal <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>
1 parent fc3893f commit 8527f9d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

include/net/netns/conntrack.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,18 +97,14 @@ struct netns_ct {
9797
struct delayed_work ecache_dwork;
9898
bool ecache_dwork_pending;
9999
#endif
100+
bool auto_assign_helper_warned;
100101
#ifdef CONFIG_SYSCTL
101102
struct ctl_table_header *sysctl_header;
102-
struct ctl_table_header *acct_sysctl_header;
103-
struct ctl_table_header *tstamp_sysctl_header;
104-
struct ctl_table_header *event_sysctl_header;
105-
struct ctl_table_header *helper_sysctl_header;
106103
#endif
107104
unsigned int sysctl_log_invalid; /* Log invalid packets */
108105
int sysctl_events;
109106
int sysctl_acct;
110107
int sysctl_auto_assign_helper;
111-
bool auto_assign_helper_warned;
112108
int sysctl_tstamp;
113109
int sysctl_checksum;
114110

0 commit comments

Comments
 (0)