From: WANG Cong Date: Mon, 15 Sep 2014 21:06:49 +0000 (-0700) Subject: net_sched: use tcindex_filter_result_init() X-Git-Tag: MMI-PSA29.97-13-9~11350^2~50 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=10ee1c34bedcc0e2a196d85ec87806fd111b5e79;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git net_sched: use tcindex_filter_result_init() Fixes: commit 331b72922c5f58d48fd ("net: sched: RCU cls_tcindex") Cc: John Fastabend Signed-off-by: Cong Wang Signed-off-by: David S. Miller --- diff --git a/net/sched/cls_tcindex.c b/net/sched/cls_tcindex.c index b93974c4570c..dd2d691f0bbb 100644 --- a/net/sched/cls_tcindex.c +++ b/net/sched/cls_tcindex.c @@ -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;