]> git.ipfire.org Git - thirdparty/kernel/stable.git/blobdiff - net/sched/sch_api.c
netlink: pass extended ACK struct to parsing functions
[thirdparty/kernel/stable.git] / net / sched / sch_api.c
index 62567bfe52c723262a291360cecd572fefced164..fcb5ae581c0405d79367312871a34e91a90729e6 100644 (file)
@@ -457,7 +457,7 @@ static struct qdisc_size_table *qdisc_get_stab(struct nlattr *opt)
        u16 *tab = NULL;
        int err;
 
-       err = nla_parse_nested(tb, TCA_STAB_MAX, opt, stab_policy);
+       err = nla_parse_nested(tb, TCA_STAB_MAX, opt, stab_policy, NULL);
        if (err < 0)
                return ERR_PTR(err);
        if (!tb[TCA_STAB_BASE])
@@ -1131,7 +1131,7 @@ static int tc_get_qdisc(struct sk_buff *skb, struct nlmsghdr *n)
            !netlink_ns_capable(skb, net->user_ns, CAP_NET_ADMIN))
                return -EPERM;
 
-       err = nlmsg_parse(n, sizeof(*tcm), tca, TCA_MAX, NULL);
+       err = nlmsg_parse(n, sizeof(*tcm), tca, TCA_MAX, NULL, NULL);
        if (err < 0)
                return err;
 
@@ -1200,7 +1200,7 @@ static int tc_modify_qdisc(struct sk_buff *skb, struct nlmsghdr *n)
 
 replay:
        /* Reinit, just in case something touches this. */
-       err = nlmsg_parse(n, sizeof(*tcm), tca, TCA_MAX, NULL);
+       err = nlmsg_parse(n, sizeof(*tcm), tca, TCA_MAX, NULL, NULL);
        if (err < 0)
                return err;
 
@@ -1515,7 +1515,7 @@ static int tc_dump_qdisc(struct sk_buff *skb, struct netlink_callback *cb)
        idx = 0;
        ASSERT_RTNL();
 
-       err = nlmsg_parse(nlh, sizeof(*tcm), tca, TCA_MAX, NULL);
+       err = nlmsg_parse(nlh, sizeof(*tcm), tca, TCA_MAX, NULL, NULL);
        if (err < 0)
                return err;
 
@@ -1577,7 +1577,7 @@ static int tc_ctl_tclass(struct sk_buff *skb, struct nlmsghdr *n)
            !netlink_ns_capable(skb, net->user_ns, CAP_NET_ADMIN))
                return -EPERM;
 
-       err = nlmsg_parse(n, sizeof(*tcm), tca, TCA_MAX, NULL);
+       err = nlmsg_parse(n, sizeof(*tcm), tca, TCA_MAX, NULL, NULL);
        if (err < 0)
                return err;