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)
commit6c80563c2fdd9b32e37e2570e5b1ba9befd591c0
tree33c4325bcc9d5795e3495f44ac445811239f29a7
parent7dff08bbda1610697a350eeb7dcdc6177d229407
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