mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-30 08:02:30 +00:00
net: sched: cls_bpf: rename cls_bpf_modify_existing function
The name cls_bpf_modify_existing is highly misleading, as it indeed does not modify anything existing. It does not modify at all. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Acked-by: Daniel Borkmann <daniel@iogearbox.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
978dfd8d14
commit
6a725c481d
1 changed files with 4 additions and 6 deletions
|
@ -382,10 +382,9 @@ static int cls_bpf_prog_from_efd(struct nlattr **tb, struct cls_bpf_prog *prog,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int cls_bpf_modify_existing(struct net *net, struct tcf_proto *tp,
|
static int cls_bpf_set_parms(struct net *net, struct tcf_proto *tp,
|
||||||
struct cls_bpf_prog *prog,
|
struct cls_bpf_prog *prog, unsigned long base,
|
||||||
unsigned long base, struct nlattr **tb,
|
struct nlattr **tb, struct nlattr *est, bool ovr)
|
||||||
struct nlattr *est, bool ovr)
|
|
||||||
{
|
{
|
||||||
bool is_bpf, is_ebpf, have_exts = false;
|
bool is_bpf, is_ebpf, have_exts = false;
|
||||||
struct tcf_exts exts;
|
struct tcf_exts exts;
|
||||||
|
@ -508,8 +507,7 @@ static int cls_bpf_change(struct net *net, struct sk_buff *in_skb,
|
||||||
goto errout;
|
goto errout;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = cls_bpf_modify_existing(net, tp, prog, base, tb, tca[TCA_RATE],
|
ret = cls_bpf_set_parms(net, tp, prog, base, tb, tca[TCA_RATE], ovr);
|
||||||
ovr);
|
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
goto errout;
|
goto errout;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue