diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2015-01-29 06:15:03 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-01-30 20:58:39 -0500 |
commit | 207895fd388c7c4c48bc33055cd726d9e750298c (patch) | |
tree | 560b36ca51ce4d654822e75e8c883d6e534e5992 /net/mpls/mpls_gso.c | |
parent | 055470d2a7ad47dfb479308d713993173f1c6876 (diff) |
net: mark some potential candidates __read_mostly
They are all either written once or extremly rarely (e.g. from init
code), so we can move them to the .data..read_mostly section.
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mpls/mpls_gso.c')
-rw-r--r-- | net/mpls/mpls_gso.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mpls/mpls_gso.c b/net/mpls/mpls_gso.c index 349295d21946..809df534a720 100644 --- a/net/mpls/mpls_gso.c +++ b/net/mpls/mpls_gso.c | |||
@@ -60,14 +60,14 @@ out: | |||
60 | return segs; | 60 | return segs; |
61 | } | 61 | } |
62 | 62 | ||
63 | static struct packet_offload mpls_mc_offload = { | 63 | static struct packet_offload mpls_mc_offload __read_mostly = { |
64 | .type = cpu_to_be16(ETH_P_MPLS_MC), | 64 | .type = cpu_to_be16(ETH_P_MPLS_MC), |
65 | .callbacks = { | 65 | .callbacks = { |
66 | .gso_segment = mpls_gso_segment, | 66 | .gso_segment = mpls_gso_segment, |
67 | }, | 67 | }, |
68 | }; | 68 | }; |
69 | 69 | ||
70 | static struct packet_offload mpls_uc_offload = { | 70 | static struct packet_offload mpls_uc_offload __read_mostly = { |
71 | .type = cpu_to_be16(ETH_P_MPLS_UC), | 71 | .type = cpu_to_be16(ETH_P_MPLS_UC), |
72 | .callbacks = { | 72 | .callbacks = { |
73 | .gso_segment = mpls_gso_segment, | 73 | .gso_segment = mpls_gso_segment, |