diff options
| author | Jing Su <[email protected]> | 2025-03-19 08:57:51 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-03-25 13:26:55 +0000 |
| commit | 3a17f23f7c36bac3a3584aaf97d3e3e0b2790396 (patch) | |
| tree | 4724c9753e88acb2eb2a1cad61f3941c37b1e1a9 /net/ipv4/tcp_input.c | |
| parent | Merge branch 'selftests-net-mixed-select-polling-mode-for-tcp-ao-tests' (diff) | |
| download | kernel-3a17f23f7c36bac3a3584aaf97d3e3e0b2790396.tar.gz kernel-3a17f23f7c36bac3a3584aaf97d3e3e0b2790396.zip | |
dql: Fix dql->limit value when reset.
Executing dql_reset after setting a non-zero value for limit_min can
lead to an unreasonable situation where dql->limit is less than
dql->limit_min.
For instance, after setting
/sys/class/net/eth*/queues/tx-0/byte_queue_limits/limit_min,
an ifconfig down/up operation might cause the ethernet driver to call
netdev_tx_reset_queue, which in turn invokes dql_reset.
In this case, dql->limit is reset to 0 while dql->limit_min remains
non-zero value, which is unexpected. The limit should always be
greater than or equal to limit_min.
Signed-off-by: Jing Su <[email protected]>
Link: https://patch.msgid.link/Z9qHD1s/NEuQBdgH@pilot-ThinkCentre-M930t-N000
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_input.c')
0 files changed, 0 insertions, 0 deletions
