Skip to content

Commit

Permalink
net_sched: use tcindex_filter_result_init()
Browse files Browse the repository at this point in the history
Fixes: commit 331b729 ("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>
  • Loading branch information
congwang authored and davem330 committed Sep 15, 2014
1 parent 2f9a220 commit 10ee1c3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions net/sched/cls_tcindex.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 10ee1c3

Please sign in to comment.