Commit ec59a111 authored by Patrick McHardy's avatar Patrick McHardy Committed by David S. Miller

[NETFILTER]: nf_conntrack: mark helpers __read_mostly

Most are __read_mostly already, this changes the remaining ones.
Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b8a7fe6c
...@@ -518,8 +518,8 @@ static int help(struct sk_buff **pskb, ...@@ -518,8 +518,8 @@ static int help(struct sk_buff **pskb,
return ret; return ret;
} }
static struct nf_conntrack_helper ftp[MAX_PORTS][2]; static struct nf_conntrack_helper ftp[MAX_PORTS][2] __read_mostly;
static char ftp_names[MAX_PORTS][2][sizeof("ftp-65535")]; static char ftp_names[MAX_PORTS][2][sizeof("ftp-65535")] __read_mostly;
/* don't make this __exit, since it's called from __init ! */ /* don't make this __exit, since it's called from __init ! */
static void nf_conntrack_ftp_fini(void) static void nf_conntrack_ftp_fini(void)
......
...@@ -166,8 +166,8 @@ static int help(struct sk_buff **pskb, ...@@ -166,8 +166,8 @@ static int help(struct sk_buff **pskb,
return ret; return ret;
} }
static struct nf_conntrack_helper sane[MAX_PORTS][2]; static struct nf_conntrack_helper sane[MAX_PORTS][2] __read_mostly;
static char sane_names[MAX_PORTS][2][sizeof("sane-65535")]; static char sane_names[MAX_PORTS][2][sizeof("sane-65535")] __read_mostly;
/* don't make this __exit, since it's called from __init ! */ /* don't make this __exit, since it's called from __init ! */
static void nf_conntrack_sane_fini(void) static void nf_conntrack_sane_fini(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment