diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2018-11-08 19:50:38 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-08 20:48:01 -0800 |
commit | 190852a55edbe138503259ea1bb40c08be221d75 (patch) | |
tree | 7d030dc2be5cca817f6562e9b72f984d7a1aa325 /net/sched | |
parent | cae5f48e3234dda5bab6f7f361b5eff6d4cc77b2 (diff) | |
download | linux-190852a55edbe138503259ea1bb40c08be221d75.tar.gz linux-190852a55edbe138503259ea1bb40c08be221d75.tar.bz2 linux-190852a55edbe138503259ea1bb40c08be221d75.zip |
net: sched: red: inform offloads about harddrop setting
To mirror software behaviour on offload more precisely inform
the drivers about the state of the harddrop flag.
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: John Hurley <john.hurley@netronome.com>
Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched')
-rw-r--r-- | net/sched/sch_red.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sched/sch_red.c b/net/sched/sch_red.c index 7682f7a618a1..a1d08bdd9357 100644 --- a/net/sched/sch_red.c +++ b/net/sched/sch_red.c @@ -167,6 +167,7 @@ static int red_offload(struct Qdisc *sch, bool enable) opt.set.max = q->parms.qth_max >> q->parms.Wlog; opt.set.probability = q->parms.max_P; opt.set.is_ecn = red_use_ecn(q); + opt.set.is_harddrop = red_use_harddrop(q); opt.set.qstats = &sch->qstats; } else { opt.command = TC_RED_DESTROY; |