]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf99975610e7f6675a8a7f1aa374237f074707646
treec538ec251120852f5ffa2ba4c6b97d483da5d745
parentfcd4a27fa57e0aa92d1cc7b7f8e3f805a3a21c1d
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: 79c32310438f ("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