Commit dad54c0f authored by Jakub Kicinski's avatar Jakub Kicinski Committed by David S. Miller

net: sched: red: remove unnecessary red_dump_offload_stats parameter

Offload dump helper does not use opt parameter, remove it.
Signed-off-by: default avatarJakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: default avatarJohn Hurley <john.hurley@netronome.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b592843c
...@@ -279,7 +279,7 @@ static int red_init(struct Qdisc *sch, struct nlattr *opt, ...@@ -279,7 +279,7 @@ static int red_init(struct Qdisc *sch, struct nlattr *opt,
return red_change(sch, opt, extack); return red_change(sch, opt, extack);
} }
static int red_dump_offload_stats(struct Qdisc *sch, struct tc_red_qopt *opt) static int red_dump_offload_stats(struct Qdisc *sch)
{ {
struct tc_red_qopt_offload hw_stats = { struct tc_red_qopt_offload hw_stats = {
.command = TC_RED_STATS, .command = TC_RED_STATS,
...@@ -309,7 +309,7 @@ static int red_dump(struct Qdisc *sch, struct sk_buff *skb) ...@@ -309,7 +309,7 @@ static int red_dump(struct Qdisc *sch, struct sk_buff *skb)
}; };
int err; int err;
err = red_dump_offload_stats(sch, &opt); err = red_dump_offload_stats(sch);
if (err) if (err)
goto nla_put_failure; goto nla_put_failure;
......
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