mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
net: sched: remove unneeded tcf_em_tree_change
Since tcf_em_tree_validate could be always called on a newly created filter, there is no need for this change function. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f7ebdff757
commit
4ebc1e3cfc
4 changed files with 7 additions and 34 deletions
|
@ -130,7 +130,6 @@ static int basic_set_parms(struct net *net, struct tcf_proto *tp,
|
|||
{
|
||||
int err;
|
||||
struct tcf_exts e;
|
||||
struct tcf_ematch_tree t;
|
||||
|
||||
err = tcf_exts_init(&e, TCA_BASIC_ACT, TCA_BASIC_POLICE);
|
||||
if (err < 0)
|
||||
|
@ -139,7 +138,7 @@ static int basic_set_parms(struct net *net, struct tcf_proto *tp,
|
|||
if (err < 0)
|
||||
goto errout;
|
||||
|
||||
err = tcf_em_tree_validate(tp, tb[TCA_BASIC_EMATCHES], &t);
|
||||
err = tcf_em_tree_validate(tp, tb[TCA_BASIC_EMATCHES], &f->ematches);
|
||||
if (err < 0)
|
||||
goto errout;
|
||||
|
||||
|
@ -149,7 +148,6 @@ static int basic_set_parms(struct net *net, struct tcf_proto *tp,
|
|||
}
|
||||
|
||||
tcf_exts_change(tp, &f->exts, &e);
|
||||
tcf_em_tree_change(tp, &f->ematches, &t);
|
||||
f->tp = tp;
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue