]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: Add the invalid handle check in qdisc_class_find
authorGao Feng <gfree.wind@vip.163.com>
Fri, 18 Aug 2017 07:23:24 +0000 (15:23 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Aug 2017 20:40:31 +0000 (13:40 -0700)
commit456a12a95fe96ec31355d6d20a52ae9df29a6c1f
tree3b4187deb041d1d9667050bf1b64763fed79570f
parent1cbb5e20c4e3cdebd8b08e3afbe1e98192c83da9
net: sched: Add the invalid handle check in qdisc_class_find

Add the invalid handle "0" check to avoid unnecessary search, because
the qdisc uses the skb->priority as the handle value to look up, and
it is "0" usually.

Signed-off-by: Gao Feng <gfree.wind@vip.163.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sch_generic.h