diff options
Diffstat (limited to 'net/sched/sch_dsmark.c')
-rw-r--r-- | net/sched/sch_dsmark.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/net/sched/sch_dsmark.c b/net/sched/sch_dsmark.c index d5421816f007..96324cf4e6a9 100644 --- a/net/sched/sch_dsmark.c +++ b/net/sched/sch_dsmark.c | |||
@@ -68,7 +68,7 @@ static inline int dsmark_valid_indices(u16 indices) | |||
68 | return 0; | 68 | return 0; |
69 | indices >>= 1; | 69 | indices >>= 1; |
70 | } | 70 | } |
71 | 71 | ||
72 | return 1; | 72 | return 1; |
73 | } | 73 | } |
74 | 74 | ||
@@ -100,7 +100,7 @@ static int dsmark_graft(struct Qdisc *sch, unsigned long arg, | |||
100 | qdisc_reset(*old); | 100 | qdisc_reset(*old); |
101 | sch_tree_unlock(sch); | 101 | sch_tree_unlock(sch); |
102 | 102 | ||
103 | return 0; | 103 | return 0; |
104 | } | 104 | } |
105 | 105 | ||
106 | static struct Qdisc *dsmark_leaf(struct Qdisc *sch, unsigned long arg) | 106 | static struct Qdisc *dsmark_leaf(struct Qdisc *sch, unsigned long arg) |
@@ -151,7 +151,7 @@ static int dsmark_change(struct Qdisc *sch, u32 classid, u32 parent, | |||
151 | 151 | ||
152 | if (tb[TCA_DSMARK_VALUE-1]) | 152 | if (tb[TCA_DSMARK_VALUE-1]) |
153 | p->value[*arg-1] = RTA_GET_U8(tb[TCA_DSMARK_VALUE-1]); | 153 | p->value[*arg-1] = RTA_GET_U8(tb[TCA_DSMARK_VALUE-1]); |
154 | 154 | ||
155 | if (tb[TCA_DSMARK_MASK-1]) | 155 | if (tb[TCA_DSMARK_MASK-1]) |
156 | p->mask[*arg-1] = mask; | 156 | p->mask[*arg-1] = mask; |
157 | 157 | ||
@@ -167,7 +167,7 @@ static int dsmark_delete(struct Qdisc *sch, unsigned long arg) | |||
167 | 167 | ||
168 | if (!dsmark_valid_index(p, arg)) | 168 | if (!dsmark_valid_index(p, arg)) |
169 | return -EINVAL; | 169 | return -EINVAL; |
170 | 170 | ||
171 | p->mask[arg-1] = 0xff; | 171 | p->mask[arg-1] = 0xff; |
172 | p->value[arg-1] = 0; | 172 | p->value[arg-1] = 0; |
173 | 173 | ||
@@ -193,9 +193,9 @@ static void dsmark_walk(struct Qdisc *sch,struct qdisc_walker *walker) | |||
193 | break; | 193 | break; |
194 | } | 194 | } |
195 | } | 195 | } |
196 | ignore: | 196 | ignore: |
197 | walker->count++; | 197 | walker->count++; |
198 | } | 198 | } |
199 | } | 199 | } |
200 | 200 | ||
201 | static struct tcf_proto **dsmark_find_tcf(struct Qdisc *sch,unsigned long cl) | 201 | static struct tcf_proto **dsmark_find_tcf(struct Qdisc *sch,unsigned long cl) |
@@ -338,7 +338,7 @@ static unsigned int dsmark_drop(struct Qdisc *sch) | |||
338 | { | 338 | { |
339 | struct dsmark_qdisc_data *p = PRIV(sch); | 339 | struct dsmark_qdisc_data *p = PRIV(sch); |
340 | unsigned int len; | 340 | unsigned int len; |
341 | 341 | ||
342 | DPRINTK("dsmark_reset(sch %p,[qdisc %p])\n", sch, p); | 342 | DPRINTK("dsmark_reset(sch %p,[qdisc %p])\n", sch, p); |
343 | 343 | ||
344 | if (p->q->ops->drop == NULL) | 344 | if (p->q->ops->drop == NULL) |
@@ -506,7 +506,7 @@ static int __init dsmark_module_init(void) | |||
506 | return register_qdisc(&dsmark_qdisc_ops); | 506 | return register_qdisc(&dsmark_qdisc_ops); |
507 | } | 507 | } |
508 | 508 | ||
509 | static void __exit dsmark_module_exit(void) | 509 | static void __exit dsmark_module_exit(void) |
510 | { | 510 | { |
511 | unregister_qdisc(&dsmark_qdisc_ops); | 511 | unregister_qdisc(&dsmark_qdisc_ops); |
512 | } | 512 | } |