]> 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)
commite2c695893269ae8955d659c46810e370f40b3d6a
treec538ec251120852f5ffa2ba4c6b97d483da5d745
parenta8f27e2cf5cc952cbfe2ceb4152c8e5d2070b30a
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: b4f31e97a52c ("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