fq_codel: fix TCA_FQ_CODEL_DROP_BATCH_SIZE sanity checks
authorEric Dumazet <edumazet@google.com>
Sat, 25 Apr 2020 19:40:25 +0000 (12:40 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Apr 2020 18:34:04 +0000 (11:34 -0700)
commit14695212d4cd8b0c997f6121b6df8520038ce076
treec538ec251120852f5ffa2ba4c6b97d483da5d745
parent62b4011fa7bef9fa00a6aeec26e69685dc1cc21e
fq_codel: fix TCA_FQ_CODEL_DROP_BATCH_SIZE sanity checks

My intent was to not let users set a zero drop_batch_size,
it seems I once again messed with min()/max().

Fixes: 9d18562a2278 ("fq_codel: add batch ability to fq_codel_drop()")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Toke Høiland-Jørgensen <toke@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_fq_codel.c