aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched/cls_route.c
diff options
context:
space:
mode:
authorAlexander Aring <aring@mojatatu.com>2018-01-18 11:20:52 -0500
committerDavid S. Miller <davem@davemloft.net>2018-01-19 15:52:51 -0500
commit50a561900e66a03f5127edac57487079bc0b8201 (patch)
tree03678bb2e24ab39c1ea14c8722427012eb172c7d /net/sched/cls_route.c
parent7306db38a67cf6b8e1ca354b1d0c0117b7b880d5 (diff)
net: sched: cls: add extack support for tcf_exts_validate
The tcf_exts_validate function calls the act api change callback. For preparing extack support for act api, this patch adds the extack as parameter for this function which is common used in cls implementations. Furthermore the tcf_exts_validate will call action init callback which prepares the TC action subsystem for extack support. Cc: David Ahern <dsahern@gmail.com> Signed-off-by: Alexander Aring <aring@mojatatu.com> Acked-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/cls_route.c')
-rw-r--r--net/sched/cls_route.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/sched/cls_route.c b/net/sched/cls_route.c
index f436d4d894a9..92d683851cb0 100644
--- a/net/sched/cls_route.c
+++ b/net/sched/cls_route.c
@@ -389,7 +389,7 @@ static int route4_set_parms(struct net *net, struct tcf_proto *tp,
389 unsigned long base, struct route4_filter *f, 389 unsigned long base, struct route4_filter *f,
390 u32 handle, struct route4_head *head, 390 u32 handle, struct route4_head *head,
391 struct nlattr **tb, struct nlattr *est, int new, 391 struct nlattr **tb, struct nlattr *est, int new,
392 bool ovr) 392 bool ovr, struct netlink_ext_ack *extack)
393{ 393{
394 u32 id = 0, to = 0, nhandle = 0x8000; 394 u32 id = 0, to = 0, nhandle = 0x8000;
395 struct route4_filter *fp; 395 struct route4_filter *fp;
@@ -397,7 +397,7 @@ static int route4_set_parms(struct net *net, struct tcf_proto *tp,
397 struct route4_bucket *b; 397 struct route4_bucket *b;
398 int err; 398 int err;
399 399
400 err = tcf_exts_validate(net, tp, tb, est, &f->exts, ovr); 400 err = tcf_exts_validate(net, tp, tb, est, &f->exts, ovr, extack);
401 if (err < 0) 401 if (err < 0)
402 return err; 402 return err;
403 403
@@ -516,7 +516,7 @@ static int route4_change(struct net *net, struct sk_buff *in_skb,
516 } 516 }
517 517
518 err = route4_set_parms(net, tp, base, f, handle, head, tb, 518 err = route4_set_parms(net, tp, base, f, handle, head, tb,
519 tca[TCA_RATE], new, ovr); 519 tca[TCA_RATE], new, ovr, extack);
520 if (err < 0) 520 if (err < 0)
521 goto errout; 521 goto errout;
522 522