]> git.baikalelectronics.ru Git - kernel.git/commit
net_sched: act: pick a different type for act_xt
authorWANG Cong <xiyou.wangcong@gmail.com>
Wed, 15 Jan 2014 23:38:43 +0000 (15:38 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Jan 2014 01:24:11 +0000 (17:24 -0800)
commit2e05f6578b7a469b5739749b57540550e5fa19b9
tree33c4325bcc9d5795e3495f44ac445811239f29a7
parent15078e327bde0a007ccb28c6d9a190356466c48f
net_sched: act: pick a different type for act_xt

In tcf_register_action() we check either ->type or ->kind to see if
there is an existing action registered, but ipt action registers two
actions with same type but different kinds. They should have different
types too.

Cc: Jamal Hadi Salim <jhs@mojatatu.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>
include/uapi/linux/tc_act/tc_ipt.h
net/sched/act_ipt.c