aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/sched/cls_api.c2
-rw-r--r--net/sched/cls_basic.c2
-rw-r--r--net/sched/cls_fw.c3
-rw-r--r--net/sched/cls_route.c3
-rw-r--r--net/sched/cls_tcindex.c3
-rw-r--r--net/sched/cls_u32.c3
6 files changed, 6 insertions, 10 deletions
diff --git a/net/sched/cls_api.c b/net/sched/cls_api.c
index e53773612bc7..9eeb3c6c82f4 100644
--- a/net/sched/cls_api.c
+++ b/net/sched/cls_api.c
@@ -31,7 +31,7 @@
31 31
32/* The list of all installed classifier types */ 32/* The list of all installed classifier types */
33 33
34static struct tcf_proto_ops *tcf_proto_base; 34static struct tcf_proto_ops *tcf_proto_base __read_mostly;
35 35
36/* Protects list of registered TC modules. It is pure SMP lock. */ 36/* Protects list of registered TC modules. It is pure SMP lock. */
37static DEFINE_RWLOCK(cls_mod_lock); 37static DEFINE_RWLOCK(cls_mod_lock);
diff --git a/net/sched/cls_basic.c b/net/sched/cls_basic.c
index 8dbcf2771a46..b31f9f971987 100644
--- a/net/sched/cls_basic.c
+++ b/net/sched/cls_basic.c
@@ -271,7 +271,7 @@ rtattr_failure:
271 return -1; 271 return -1;
272} 272}
273 273
274static struct tcf_proto_ops cls_basic_ops = { 274static struct tcf_proto_ops cls_basic_ops __read_mostly = {
275 .kind = "basic", 275 .kind = "basic",
276 .classify = basic_classify, 276 .classify = basic_classify,
277 .init = basic_init, 277 .init = basic_init,
diff --git a/net/sched/cls_fw.c b/net/sched/cls_fw.c
index 8adbd6a37d14..b45038770e79 100644
--- a/net/sched/cls_fw.c
+++ b/net/sched/cls_fw.c
@@ -370,8 +370,7 @@ rtattr_failure:
370 return -1; 370 return -1;
371} 371}
372 372
373static struct tcf_proto_ops cls_fw_ops = { 373static struct tcf_proto_ops cls_fw_ops __read_mostly = {
374 .next = NULL,
375 .kind = "fw", 374 .kind = "fw",
376 .classify = fw_classify, 375 .classify = fw_classify,
377 .init = fw_init, 376 .init = fw_init,
diff --git a/net/sched/cls_route.c b/net/sched/cls_route.c
index 0a8409c1d28a..e70edd0f7bc8 100644
--- a/net/sched/cls_route.c
+++ b/net/sched/cls_route.c
@@ -590,8 +590,7 @@ rtattr_failure:
590 return -1; 590 return -1;
591} 591}
592 592
593static struct tcf_proto_ops cls_route4_ops = { 593static struct tcf_proto_ops cls_route4_ops __read_mostly = {
594 .next = NULL,
595 .kind = "route", 594 .kind = "route",
596 .classify = route4_classify, 595 .classify = route4_classify,
597 .init = route4_init, 596 .init = route4_init,
diff --git a/net/sched/cls_tcindex.c b/net/sched/cls_tcindex.c
index 471909e54807..e36977b17fa6 100644
--- a/net/sched/cls_tcindex.c
+++ b/net/sched/cls_tcindex.c
@@ -485,8 +485,7 @@ rtattr_failure:
485 return -1; 485 return -1;
486} 486}
487 487
488static struct tcf_proto_ops cls_tcindex_ops = { 488static struct tcf_proto_ops cls_tcindex_ops __read_mostly = {
489 .next = NULL,
490 .kind = "tcindex", 489 .kind = "tcindex",
491 .classify = tcindex_classify, 490 .classify = tcindex_classify,
492 .init = tcindex_init, 491 .init = tcindex_init,
diff --git a/net/sched/cls_u32.c b/net/sched/cls_u32.c
index c39008209164..7bf3cd4e7318 100644
--- a/net/sched/cls_u32.c
+++ b/net/sched/cls_u32.c
@@ -751,8 +751,7 @@ rtattr_failure:
751 return -1; 751 return -1;
752} 752}
753 753
754static struct tcf_proto_ops cls_u32_ops = { 754static struct tcf_proto_ops cls_u32_ops __read_mostly = {
755 .next = NULL,
756 .kind = "u32", 755 .kind = "u32",
757 .classify = u32_classify, 756 .classify = u32_classify,
758 .init = u32_init, 757 .init = u32_init,