]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: teach tcf_bind/unbind_filter to use block->q
authorJiri Pirko <jiri@mellanox.com>
Fri, 13 Oct 2017 12:01:00 +0000 (14:01 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Oct 2017 20:00:40 +0000 (21:00 +0100)
commit71b150b08dea7a0eb10322d91f75471694823671
tree3f8b7388bf77278669b7bb8c636f0e79520289c8
parenta8244f5354fe966d4b6e7849e7d6617ccc3128f3
net: sched: teach tcf_bind/unbind_filter to use block->q

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: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/pkt_cls.h