Commit 1e5003af authored by Jiri Pirko's avatar Jiri Pirko Committed by David S. Miller

net: sched: cls_fw: rename fw_change_attrs function

Since the function name is misleading since it is not changing
anything, name it similarly to other cls.
Signed-off-by: default avatarJiri Pirko <jiri@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6a725c48
...@@ -190,10 +190,9 @@ static const struct nla_policy fw_policy[TCA_FW_MAX + 1] = { ...@@ -190,10 +190,9 @@ static const struct nla_policy fw_policy[TCA_FW_MAX + 1] = {
[TCA_FW_MASK] = { .type = NLA_U32 }, [TCA_FW_MASK] = { .type = NLA_U32 },
}; };
static int static int fw_set_parms(struct net *net, struct tcf_proto *tp,
fw_change_attrs(struct net *net, struct tcf_proto *tp, struct fw_filter *f, struct fw_filter *f, struct nlattr **tb,
struct nlattr **tb, struct nlattr **tca, unsigned long base, struct nlattr **tca, unsigned long base, bool ovr)
bool ovr)
{ {
struct fw_head *head = rtnl_dereference(tp->root); struct fw_head *head = rtnl_dereference(tp->root);
struct tcf_exts e; struct tcf_exts e;
...@@ -282,7 +281,7 @@ static int fw_change(struct net *net, struct sk_buff *in_skb, ...@@ -282,7 +281,7 @@ static int fw_change(struct net *net, struct sk_buff *in_skb,
return err; return err;
} }
err = fw_change_attrs(net, tp, fnew, tb, tca, base, ovr); err = fw_set_parms(net, tp, fnew, tb, tca, base, ovr);
if (err < 0) { if (err < 0) {
tcf_exts_destroy(&fnew->exts); tcf_exts_destroy(&fnew->exts);
kfree(fnew); kfree(fnew);
...@@ -330,7 +329,7 @@ static int fw_change(struct net *net, struct sk_buff *in_skb, ...@@ -330,7 +329,7 @@ static int fw_change(struct net *net, struct sk_buff *in_skb,
f->id = handle; f->id = handle;
f->tp = tp; f->tp = tp;
err = fw_change_attrs(net, tp, f, tb, tca, base, ovr); err = fw_set_parms(net, tp, f, tb, tca, base, ovr);
if (err < 0) if (err < 0)
goto errout; goto errout;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment