aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched/sch_prio.c
diff options
context:
space:
mode:
authorEric Dumazet <dada1@cosmosbay.com>2007-11-14 04:44:41 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 17:53:58 -0500
commit20fea08b5fb639c4c175b5c74a2bb346c5c5bc2e (patch)
tree3ffa7e1e82051c6772fc2a01d561e4a5a29bb138 /net/sched/sch_prio.c
parent2a8cc6c89039e0530a3335954253b76ed0f9339a (diff)
[NET]: Move Qdisc_class_ops and Qdisc_ops in appropriate sections.
Qdisc_class_ops are const, and Qdisc_ops are mostly read. Using "const" and "__read_mostly" qualifiers helps to reduce false sharing. Signed-off-by: Eric Dumazet <dada1@cosmosbay.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/sch_prio.c')
-rw-r--r--net/sched/sch_prio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/sched/sch_prio.c b/net/sched/sch_prio.c
index de894096e442..2243aaa8d851 100644
--- a/net/sched/sch_prio.c
+++ b/net/sched/sch_prio.c
@@ -468,7 +468,7 @@ static struct tcf_proto ** prio_find_tcf(struct Qdisc *sch, unsigned long cl)
468 return &q->filter_list; 468 return &q->filter_list;
469} 469}
470 470
471static struct Qdisc_class_ops prio_class_ops = { 471static const struct Qdisc_class_ops prio_class_ops = {
472 .graft = prio_graft, 472 .graft = prio_graft,
473 .leaf = prio_leaf, 473 .leaf = prio_leaf,
474 .get = prio_get, 474 .get = prio_get,
@@ -483,7 +483,7 @@ static struct Qdisc_class_ops prio_class_ops = {
483 .dump_stats = prio_dump_class_stats, 483 .dump_stats = prio_dump_class_stats,
484}; 484};
485 485
486static struct Qdisc_ops prio_qdisc_ops = { 486static struct Qdisc_ops prio_qdisc_ops __read_mostly = {
487 .next = NULL, 487 .next = NULL,
488 .cl_ops = &prio_class_ops, 488 .cl_ops = &prio_class_ops,
489 .id = "prio", 489 .id = "prio",
@@ -500,7 +500,7 @@ static struct Qdisc_ops prio_qdisc_ops = {
500 .owner = THIS_MODULE, 500 .owner = THIS_MODULE,
501}; 501};
502 502
503static struct Qdisc_ops rr_qdisc_ops = { 503static struct Qdisc_ops rr_qdisc_ops __read_mostly = {
504 .next = NULL, 504 .next = NULL,
505 .cl_ops = &prio_class_ops, 505 .cl_ops = &prio_class_ops,
506 .id = "rr", 506 .id = "rr",