net_sched: use tcindex_filter_result_init()
authorWANG Cong <xiyou.wangcong@gmail.com>
Mon, 15 Sep 2014 21:06:49 +0000 (14:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Sep 2014 21:51:18 +0000 (17:51 -0400)
Fixes: commit 331b72922c5f58d48fd ("net: sched: RCU cls_tcindex")
Cc: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_tcindex.c

index b93974c4570c1043e5d151a19f27eaa5b5107081..dd2d691f0bbb334f1c9e0450e982511b3ffa74ef 100644 (file)
@@ -260,10 +260,7 @@ tcindex_set_parms(struct net *net, struct tcf_proto *tp, unsigned long base,
        }
        cp->h = p->h;
 
-       memset(&new_filter_result, 0, sizeof(new_filter_result));
-       tcf_exts_init(&new_filter_result.exts,
-                     TCA_TCINDEX_ACT, TCA_TCINDEX_POLICE);
-
+       tcindex_filter_result_init(&new_filter_result);
        tcindex_filter_result_init(&cr);
        if (old_r)
                cr.res = r->res;