Explorar o código

[SCTP]: Change globals to __read_mostly

Change sctp globals to __read_mostly.

Signed-off-by: Brian Haley <brian.haley@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Brian Haley %!s(int64=18) %!d(string=hai) anos
pai
achega
4cbf1cae9f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      net/sctp/protocol.c

+ 1 - 1
net/sctp/protocol.c

@@ -61,7 +61,7 @@
 #include <net/inet_ecn.h>
 
 /* Global data structures. */
-struct sctp_globals sctp_globals;
+struct sctp_globals sctp_globals __read_mostly;
 struct proc_dir_entry	*proc_net_sctp;
 DEFINE_SNMP_STAT(struct sctp_mib, sctp_statistics) __read_mostly;