diff options
author | Tariq Toukan <tariqt@mellanox.com> | 2018-07-24 14:12:20 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-07-26 14:00:37 -0700 |
commit | 7effaf06c3cdef6855e127886c7405b9ab62f90d (patch) | |
tree | e57ff205792f9acc28ca9922bf79d7aca0d88396 /net/rds/rds.h | |
parent | 7f3fc7ddf719cd6faaf787722c511f6918ac6aab (diff) | |
download | linux-rpi-7effaf06c3cdef6855e127886c7405b9ab62f90d.tar.gz linux-rpi-7effaf06c3cdef6855e127886c7405b9ab62f90d.tar.bz2 linux-rpi-7effaf06c3cdef6855e127886c7405b9ab62f90d.zip |
net: rollback orig value on failure of dev_qdisc_change_tx_queue_len
Fix dev_change_tx_queue_len so it rolls back original value
upon a failure in dev_qdisc_change_tx_queue_len.
This is already done for notifirers' failures, share the code.
In case of failure in dev_qdisc_change_tx_queue_len, some tx queues
would still be of the new length, while they should be reverted.
Currently, the revert is not done, and is marked with a TODO label
in dev_qdisc_change_tx_queue_len, and should find some nice solution
to do it.
Yet it is still better to not apply the newly requested value.
Fixes: 48bfd55e7e41 ("net_sched: plug in qdisc ops change_tx_queue_len")
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Reviewed-by: Eran Ben Elisha <eranbe@mellanox.com>
Reported-by: Ran Rozenstein <ranro@mellanox.com>
Cc: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rds/rds.h')
0 files changed, 0 insertions, 0 deletions