diff options
author | Jakub Kicinski <kuba@kernel.org> | 2020-03-03 06:05:20 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-03 22:28:48 +0100 |
commit | e13aaa0643da10006ec35715954e7f92a62899a5 (patch) | |
tree | 3452caf1e042b1b24666b33490c48d96c480cd4d /net | |
parent | net: fq: add missing attribute validation for orphan mask (diff) | |
download | linux-e13aaa0643da10006ec35715954e7f92a62899a5.tar.xz linux-e13aaa0643da10006ec35715954e7f92a62899a5.zip |
net: taprio: add missing attribute validation for txtime delay
Add missing attribute validation for TCA_TAPRIO_ATTR_TXTIME_DELAY
to the netlink policy.
Fixes: 4cfd5779bd6e ("taprio: Add support for txtime-assist mode")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/sched/sch_taprio.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sched/sch_taprio.c b/net/sched/sch_taprio.c index 660fc45ee40f..ee717e05372b 100644 --- a/net/sched/sch_taprio.c +++ b/net/sched/sch_taprio.c @@ -768,6 +768,7 @@ static const struct nla_policy taprio_policy[TCA_TAPRIO_ATTR_MAX + 1] = { [TCA_TAPRIO_ATTR_SCHED_CYCLE_TIME] = { .type = NLA_S64 }, [TCA_TAPRIO_ATTR_SCHED_CYCLE_TIME_EXTENSION] = { .type = NLA_S64 }, [TCA_TAPRIO_ATTR_FLAGS] = { .type = NLA_U32 }, + [TCA_TAPRIO_ATTR_TXTIME_DELAY] = { .type = NLA_U32 }, }; static int fill_sched_entry(struct nlattr **tb, struct sched_entry *entry, |