Commit 5239008b0de2507a531440b8c3019fb9c116fb1a
Committed by
David S. Miller
1 parent
5396c9356e
Exists in
master
and in
4 other branches
[NET_SCHED]: Constify struct tcf_ext_map
Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Showing 7 changed files with 11 additions and 11 deletions Side-by-side Diff
include/net/pkt_cls.h
... | ... | @@ -131,14 +131,14 @@ |
131 | 131 | |
132 | 132 | extern int tcf_exts_validate(struct tcf_proto *tp, struct nlattr **tb, |
133 | 133 | struct nlattr *rate_tlv, struct tcf_exts *exts, |
134 | - struct tcf_ext_map *map); | |
134 | + const struct tcf_ext_map *map); | |
135 | 135 | extern void tcf_exts_destroy(struct tcf_proto *tp, struct tcf_exts *exts); |
136 | 136 | extern void tcf_exts_change(struct tcf_proto *tp, struct tcf_exts *dst, |
137 | 137 | struct tcf_exts *src); |
138 | 138 | extern int tcf_exts_dump(struct sk_buff *skb, struct tcf_exts *exts, |
139 | - struct tcf_ext_map *map); | |
139 | + const struct tcf_ext_map *map); | |
140 | 140 | extern int tcf_exts_dump_stats(struct sk_buff *skb, struct tcf_exts *exts, |
141 | - struct tcf_ext_map *map); | |
141 | + const struct tcf_ext_map *map); | |
142 | 142 | |
143 | 143 | /** |
144 | 144 | * struct tcf_pkt_info - packet information |
net/sched/cls_api.c
... | ... | @@ -482,7 +482,7 @@ |
482 | 482 | |
483 | 483 | int tcf_exts_validate(struct tcf_proto *tp, struct nlattr **tb, |
484 | 484 | struct nlattr *rate_tlv, struct tcf_exts *exts, |
485 | - struct tcf_ext_map *map) | |
485 | + const struct tcf_ext_map *map) | |
486 | 486 | { |
487 | 487 | memset(exts, 0, sizeof(*exts)); |
488 | 488 | |
... | ... | @@ -535,7 +535,7 @@ |
535 | 535 | EXPORT_SYMBOL(tcf_exts_change); |
536 | 536 | |
537 | 537 | int tcf_exts_dump(struct sk_buff *skb, struct tcf_exts *exts, |
538 | - struct tcf_ext_map *map) | |
538 | + const struct tcf_ext_map *map) | |
539 | 539 | { |
540 | 540 | #ifdef CONFIG_NET_CLS_ACT |
541 | 541 | if (map->action && exts->action) { |
... | ... | @@ -571,7 +571,7 @@ |
571 | 571 | |
572 | 572 | |
573 | 573 | int tcf_exts_dump_stats(struct sk_buff *skb, struct tcf_exts *exts, |
574 | - struct tcf_ext_map *map) | |
574 | + const struct tcf_ext_map *map) | |
575 | 575 | { |
576 | 576 | #ifdef CONFIG_NET_CLS_ACT |
577 | 577 | if (exts->action) |
net/sched/cls_basic.c
net/sched/cls_fw.c
net/sched/cls_route.c
net/sched/cls_tcindex.c