aboutsummaryrefslogtreecommitdiff
path: root/drivers/iio
diff options
context:
space:
mode:
authorShannon Nelson2020-08-27 16:00:28 -0700
committerDavid S. Miller2020-08-28 08:01:30 -0700
commita34e25ab977ced1c3366fc69c0595bb3fde63fad (patch)
tree791eff1b9f42b1645ed3ddabed931aed76a4daa8 /drivers/iio
parentf053e1f8709819fdc3cdc03803ad137bade9a7d6 (diff)
ionic: change the descriptor ring length without full reset
The original way of changing ring length was to completely tear down the lif's queue structure and then rebuild it, while running the risk of allocations that might fail in the middle and leave us with a broken driver. Instead, we can set up all the new queue and descriptor allocations first, then swap them out and delete the old allocations. If the new allocations fail, we report the error, stay with the old setup and continue running. This gives us a safer path, and a smaller window of time where we're not processing traffic. Signed-off-by: Shannon Nelson <snelson@pensando.io> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/iio')
0 files changed, 0 insertions, 0 deletions