diff options
author | Jiri Pirko <jiri@mellanox.com> | 2017-11-27 20:37:21 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-12-17 17:07:58 +0300 |
commit | 8067098c04be5a9058128164e9779e4c2e7c6dc1 (patch) | |
tree | ea60a88624592d13a237f2f9986383be2e0f0dc1 /drivers/net/tap.c | |
parent | 91c5e6553af065f30390a76bf0556672d6cbb6ab (diff) | |
download | linux-8067098c04be5a9058128164e9779e4c2e7c6dc1.tar.xz |
net: sched: cbq: create block for q->link.block
[ Upstream commit d51aae68b142f48232257e96ce317db25445418d ]
q->link.block is not initialized, that leads to EINVAL when one tries to
add filter there. So initialize it properly.
This can be reproduced by:
$ tc qdisc add dev eth0 root handle 1: cbq avpkt 1000 rate 1000Mbit bandwidth 1000Mbit
$ tc filter add dev eth0 parent 1: protocol ip prio 100 u32 match ip protocol 0 0x00 flowid 1:1
Reported-by: Jaroslav Aster <jaster@redhat.com>
Reported-by: Ivan Vecera <ivecera@redhat.com>
Fixes: 6529eaba33f0 ("net: sched: introduce tcf block infractructure")
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Acked-by: Eelco Chaudron <echaudro@redhat.com>
Reviewed-by: Ivan Vecera <ivecera@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net/tap.c')
0 files changed, 0 insertions, 0 deletions