diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2018-11-12 14:58:16 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-14 08:51:28 -0800 |
commit | c0b7490b19f6ab43c3c4ef82c8d5ed3bf19a8913 (patch) | |
tree | d87f1f412440cbdd866c242fe1596de6a2ad4444 /include/net | |
parent | 6b8417b7e6f5e4da2bfb4dd087d5f7f082d077de (diff) |
net: sched: red: notify drivers about RED's limit parameter
RED qdisc's limit parameter changes the behaviour of the qdisc,
for instance if it's set to 0 qdisc will drop all the packets.
When replace operation happens and parameter is set to non-0
a new fifo qdisc will be instantiated and replace the old child
qdisc which will be destroyed.
Drivers need to know the parameter, even if they don't impose
the actual limit to be able to reliably reconstruct the Qdisc
hierarchy.
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: John Hurley <john.hurley@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/pkt_cls.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/pkt_cls.h b/include/net/pkt_cls.h index 5d31820b7e80..c497ada7f591 100644 --- a/include/net/pkt_cls.h +++ b/include/net/pkt_cls.h @@ -850,6 +850,7 @@ struct tc_red_qopt_offload_params { u32 min; u32 max; u32 probability; + u32 limit; bool is_ecn; bool is_harddrop; struct gnet_stats_queue *qstats; |