mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
055470d2a7
commit
207895fd38
5 changed files with 6 additions and 6 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue