]> git.baikalelectronics.ru Git - kernel.git/commit
net_sched: fix a regression in tc actions
authorWANG Cong <xiyou.wangcong@gmail.com>
Fri, 20 Dec 2013 08:08:51 +0000 (00:08 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Dec 2013 22:06:27 +0000 (17:06 -0500)
commit987ecf79158c39150535b05062002ef747fdec7a
tree944006c1defc9335807ae15c30c466b5fb3f681f
parentd2780892244626b2a10f6d802691a0b5eb49a2e1
net_sched: fix a regression in tc actions

This patch fixes:
1) pass mask rather than size to tcf_hashinfo_init()
2) the cleanup should be in reversed order in mirred_cleanup_module()

Reported-by: Eric Dumazet <eric.dumazet@gmail.com>
Fixes: 1b6cda21efc1ccf6983e ("net_sched: init struct tcf_hashinfo at register time")
Cc: Eric Dumazet <eric.dumazet@gmail.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_csum.c
net/sched/act_gact.c
net/sched/act_ipt.c
net/sched/act_mirred.c
net/sched/act_nat.c
net/sched/act_pedit.c
net/sched/act_police.c
net/sched/act_simple.c
net/sched/act_skbedit.c