]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
net: taprio: add missing attribute validation for txtime delay
authorJakub Kicinski <kuba@kernel.org>
Tue, 3 Mar 2020 05:05:20 +0000 (21:05 -0800)
committerPaolo Pisati <paolo.pisati@canonical.com>
Wed, 18 Mar 2020 10:23:21 +0000 (11:23 +0100)
BugLink: https://bugs.launchpad.net/bugs/1867903
[ Upstream commit e13aaa0643da10006ec35715954e7f92a62899a5 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
net/sched/sch_taprio.c

index 437e333a4a33de493acaf3d73248d657d566379c..b1eb12d33b9a6ca9d608d03684d884adc257f0ec 100644 (file)
@@ -774,6 +774,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,