Skip to content
Commit 339c21d7 authored by Jiri Pirko's avatar Jiri Pirko Committed by David S. Miller
Browse files

net: sched: fix tc_u_common lookup



The offending commit wrongly assumes 1:1 mapping between block and q.
However, there are multiple blocks for a single q for classful qdiscs.
Since the obscure tc_u_common sharing mechanism expects it to be shared
among a qdisc, fix it by storing q pointer in case the block is not
shared.

Reported-by: default avatarPaweł Staszewski <pstaszewski@itcare.pl>
Reported-by: default avatarCong Wang <xiyou.wangcong@gmail.com>
Fixes: 7fa9d974

 ("net: sched: cls_u32: use block instead of q in tc_u_common")
Signed-off-by: default avatarJiri Pirko <jiri@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bb047ddd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment