aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched/cls_tcindex.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sched/cls_tcindex.c')
-rw-r--r--net/sched/cls_tcindex.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/net/sched/cls_tcindex.c b/net/sched/cls_tcindex.c
index a1293b4ab7a1..b86535a40169 100644
--- a/net/sched/cls_tcindex.c
+++ b/net/sched/cls_tcindex.c
@@ -197,9 +197,10 @@ static const struct nla_policy tcindex_policy[TCA_TCINDEX_MAX + 1] = {
197}; 197};
198 198
199static int 199static int
200tcindex_set_parms(struct tcf_proto *tp, unsigned long base, u32 handle, 200tcindex_set_parms(struct net *net, struct tcf_proto *tp, unsigned long base,
201 struct tcindex_data *p, struct tcindex_filter_result *r, 201 u32 handle, struct tcindex_data *p,
202 struct nlattr **tb, struct nlattr *est) 202 struct tcindex_filter_result *r, struct nlattr **tb,
203 struct nlattr *est)
203{ 204{
204 int err, balloc = 0; 205 int err, balloc = 0;
205 struct tcindex_filter_result new_filter_result, *old_r = r; 206 struct tcindex_filter_result new_filter_result, *old_r = r;
@@ -208,7 +209,7 @@ tcindex_set_parms(struct tcf_proto *tp, unsigned long base, u32 handle,
208 struct tcindex_filter *f = NULL; /* make gcc behave */ 209 struct tcindex_filter *f = NULL; /* make gcc behave */
209 struct tcf_exts e; 210 struct tcf_exts e;
210 211
211 err = tcf_exts_validate(tp, tb, est, &e, &tcindex_ext_map); 212 err = tcf_exts_validate(net, tp, tb, est, &e, &tcindex_ext_map);
212 if (err < 0) 213 if (err < 0)
213 return err; 214 return err;
214 215
@@ -332,7 +333,7 @@ errout:
332} 333}
333 334
334static int 335static int
335tcindex_change(struct sk_buff *in_skb, 336tcindex_change(struct net *net, struct sk_buff *in_skb,
336 struct tcf_proto *tp, unsigned long base, u32 handle, 337 struct tcf_proto *tp, unsigned long base, u32 handle,
337 struct nlattr **tca, unsigned long *arg) 338 struct nlattr **tca, unsigned long *arg)
338{ 339{
@@ -353,7 +354,8 @@ tcindex_change(struct sk_buff *in_skb,
353 if (err < 0) 354 if (err < 0)
354 return err; 355 return err;
355 356
356 return tcindex_set_parms(tp, base, handle, p, r, tb, tca[TCA_RATE]); 357 return tcindex_set_parms(net, tp, base, handle, p, r, tb,
358 tca[TCA_RATE]);
357} 359}
358 360
359 361