summaryrefslogtreecommitdiffstats
path: root/net/sched/cls_tcindex.c
diff options
context:
space:
mode:
authorWANG Cong <xiyou.wangcong@gmail.com>2014-09-15 14:06:49 -0700
committerDavid S. Miller <davem@davemloft.net>2014-09-15 17:51:18 -0400
commit10ee1c34bedcc0e2a196d85ec87806fd111b5e79 (patch)
tree8ed9b46857ba5f102857e0e3238c65fd49bc5c68 /net/sched/cls_tcindex.c
parent2f9a220eff18d31cf82b92e74d5bbc8a3d7043d8 (diff)
downloadlinux-stable-10ee1c34bedcc0e2a196d85ec87806fd111b5e79.tar.gz
linux-stable-10ee1c34bedcc0e2a196d85ec87806fd111b5e79.tar.bz2
linux-stable-10ee1c34bedcc0e2a196d85ec87806fd111b5e79.zip
net_sched: use tcindex_filter_result_init()
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>
Diffstat (limited to 'net/sched/cls_tcindex.c')
-rw-r--r--net/sched/cls_tcindex.c5
1 files changed, 1 insertions, 4 deletions
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;