diff options
author | Patrick McHardy <kaber@trash.net> | 2008-01-31 21:36:18 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-31 22:28:34 -0500 |
commit | 5239008b0de2507a531440b8c3019fb9c116fb1a (patch) | |
tree | 49f4580d2a0178182017b4a07640ac8d0f1c4112 /net/sched/cls_api.c | |
parent | 5396c9356efec1d3d818b786f69e081aaad4b98b (diff) |
[NET_SCHED]: Constify struct tcf_ext_map
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/cls_api.c')
-rw-r--r-- | net/sched/cls_api.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/sched/cls_api.c b/net/sched/cls_api.c index 3377ca0d0a0c..0fbedcabf111 100644 --- a/net/sched/cls_api.c +++ b/net/sched/cls_api.c | |||
@@ -482,7 +482,7 @@ EXPORT_SYMBOL(tcf_exts_destroy); | |||
482 | 482 | ||
483 | int tcf_exts_validate(struct tcf_proto *tp, struct nlattr **tb, | 483 | int tcf_exts_validate(struct tcf_proto *tp, struct nlattr **tb, |
484 | struct nlattr *rate_tlv, struct tcf_exts *exts, | 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 | memset(exts, 0, sizeof(*exts)); | 487 | memset(exts, 0, sizeof(*exts)); |
488 | 488 | ||
@@ -535,7 +535,7 @@ void tcf_exts_change(struct tcf_proto *tp, struct tcf_exts *dst, | |||
535 | EXPORT_SYMBOL(tcf_exts_change); | 535 | EXPORT_SYMBOL(tcf_exts_change); |
536 | 536 | ||
537 | int tcf_exts_dump(struct sk_buff *skb, struct tcf_exts *exts, | 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 | #ifdef CONFIG_NET_CLS_ACT | 540 | #ifdef CONFIG_NET_CLS_ACT |
541 | if (map->action && exts->action) { | 541 | if (map->action && exts->action) { |
@@ -571,7 +571,7 @@ EXPORT_SYMBOL(tcf_exts_dump); | |||
571 | 571 | ||
572 | 572 | ||
573 | int tcf_exts_dump_stats(struct sk_buff *skb, struct tcf_exts *exts, | 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 | #ifdef CONFIG_NET_CLS_ACT | 576 | #ifdef CONFIG_NET_CLS_ACT |
577 | if (exts->action) | 577 | if (exts->action) |