Skip to content
  • Jiri Pirko's avatar
    net: sched: teach tcf_bind/unbind_filter to use block->q · 34e3759c
    Jiri Pirko authored
    
    
    Whenever the block->q is set, it can be used instead of tp->q as it
    contains the same value. When it is not set, which can't happen now but
    it might happen with the follow-up shared blocks introduction, the class
    is not set in the result. That would lead to a class lookup instead
    of direct class pointer use for classful qdiscs. However, it is not
    planned to support classful qdisqs sharing filter blocks, so that may
    never happen.
    
    Signed-off-by: default avatarJiri Pirko <jiri@mellanox.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    34e3759c