]> git.baikalelectronics.ru Git - kernel.git/commit
net: revert "net_sched: move tp->root allocation into fw_init()"
authorWANG Cong <xiyou.wangcong@gmail.com>
Wed, 23 Sep 2015 00:01:11 +0000 (17:01 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Sep 2015 21:33:30 +0000 (14:33 -0700)
commit9237670c1297bce3ccee80860e539a7c16f4fd5b
tree25d7f2d7956f8e5bf7efdf24d951953bf3220ee1
parent749eb90bacc230c2170ec13db8ff7ca18b9ce9eb
net: revert "net_sched: move tp->root allocation into fw_init()"

fw filter uses tp->root==NULL to check if it is the old method,
so it doesn't need allocation at all in this case. This patch
reverts the offending commit and adds some comments for old
method to make it obvious.

Fixes: ae9c7e812c09 ("net_sched: move tp->root allocation into fw_init()")
Reported-by: Akshat Kakkar <akshat.1984@gmail.com>
Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_fw.c