diff options
| author | Eric Dumazet <[email protected]> | 2007-11-14 09:44:41 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2008-01-28 22:53:58 +0000 |
| commit | 20fea08b5fb639c4c175b5c74a2bb346c5c5bc2e (patch) | |
| tree | 3ffa7e1e82051c6772fc2a01d561e4a5a29bb138 /net/sched/cls_api.c | |
| parent | [IPV6] ADDRCONF: Support RFC3484 configurable address selection policy table. (diff) | |
| download | kernel-20fea08b5fb639c4c175b5c74a2bb346c5c5bc2e.tar.gz kernel-20fea08b5fb639c4c175b5c74a2bb346c5c5bc2e.zip | |
[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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/sched/cls_api.c')
| -rw-r--r-- | net/sched/cls_api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sched/cls_api.c b/net/sched/cls_api.c index 03657976fd50..bb98045d5508 100644 --- a/net/sched/cls_api.c +++ b/net/sched/cls_api.c @@ -130,7 +130,7 @@ static int tc_ctl_tfilter(struct sk_buff *skb, struct nlmsghdr *n, void *arg) struct tcf_proto **back, **chain; struct tcf_proto *tp; struct tcf_proto_ops *tp_ops; - struct Qdisc_class_ops *cops; + const struct Qdisc_class_ops *cops; unsigned long cl; unsigned long fh; int err; @@ -382,7 +382,7 @@ static int tc_dump_tfilter(struct sk_buff *skb, struct netlink_callback *cb) struct tcf_proto *tp, **chain; struct tcmsg *tcm = (struct tcmsg*)NLMSG_DATA(cb->nlh); unsigned long cl = 0; - struct Qdisc_class_ops *cops; + const struct Qdisc_class_ops *cops; struct tcf_dump_args arg; if (cb->nlh->nlmsg_len < NLMSG_LENGTH(sizeof(*tcm))) |
