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>
This commit is contained in:

committed by
David S. Miller

parent
055470d2a7
commit
207895fd38
@@ -60,14 +60,14 @@ out:
|
||||
return segs;
|
||||
}
|
||||
|
||||
static struct packet_offload mpls_mc_offload = {
|
||||
static struct packet_offload mpls_mc_offload __read_mostly = {
|
||||
.type = cpu_to_be16(ETH_P_MPLS_MC),
|
||||
.callbacks = {
|
||||
.gso_segment = mpls_gso_segment,
|
||||
},
|
||||
};
|
||||
|
||||
static struct packet_offload mpls_uc_offload = {
|
||||
static struct packet_offload mpls_uc_offload __read_mostly = {
|
||||
.type = cpu_to_be16(ETH_P_MPLS_UC),
|
||||
.callbacks = {
|
||||
.gso_segment = mpls_gso_segment,
|
||||
|
Reference in New Issue
Block a user