]> git.ipfire.org Git - thirdparty/kernel/stable.git/blobdiff - net/sched/act_api.c
net: Change TCA_ACT_* to TCA_ID_* to match that of TCA_ID_POLICE
[thirdparty/kernel/stable.git] / net / sched / act_api.c
index d4b8355737d8f80b5304aa7aa6d73949a7b52c11..aecf1bf233c8362673812b5ab212f32e5f868a5b 100644 (file)
@@ -543,7 +543,7 @@ int tcf_register_action(struct tc_action_ops *act,
 
        write_lock(&act_mod_lock);
        list_for_each_entry(a, &act_base, head) {
-               if (act->type == a->type || (strcmp(act->kind, a->kind) == 0)) {
+               if (act->id == a->id || (strcmp(act->kind, a->kind) == 0)) {
                        write_unlock(&act_mod_lock);
                        unregister_pernet_subsys(ops);
                        return -EEXIST;