]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: Remove TCA_OPTIONS from policy
authorDavid Ahern <dsahern@gmail.com>
Wed, 24 Oct 2018 15:32:49 +0000 (08:32 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Oct 2018 21:35:09 +0000 (14:35 -0700)
commit56687c34bc3c366c33e5b8d61e01c698e36a8082
treeb11737432e2f68bc9624e362ce7ccf57c91fd7dc
parenta16ee81661c38a91d692c605c567fa0ec5707153
net: sched: Remove TCA_OPTIONS from policy

Marco reported an error with hfsc:
root@Calimero:~# tc qdisc add dev eth0 root handle 1:0 hfsc default 1
Error: Attribute failed policy validation.

Apparently a few implementations pass TCA_OPTIONS as a binary instead
of nested attribute, so drop TCA_OPTIONS from the policy.

Fixes: 5e953f771b15 ("net: sched: Add policy validation for tc attributes")
Reported-by: Marco Berizzi <pupilla@libero.it>
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_api.c