Merge branch 'add-mtu-change-with-stmmac-interface-running'
authorJakub Kicinski <kuba@kernel.org>
Tue, 26 Jul 2022 02:39:35 +0000 (19:39 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 26 Jul 2022 02:39:36 +0000 (19:39 -0700)
commit8e4372e617854a16d4ec549ba821aad78fd748a6
tree539d61930d6a33512c7e1fe54f3b6a9c5075126f
parentaa246499bb5f44bf4822ff1966213c14912c732c
parent3470079687448abac42deb62774253be1d6bdef3
Merge branch 'add-mtu-change-with-stmmac-interface-running'

Christian Marangi says:

====================
Add MTU change with stmmac interface running

This series is to permit MTU change while the interface is running.
Major rework are needed to permit to allocate a new dma conf based on
the new MTU before applying it. This is to make sure there is enough
space to allocate all the DMA queue before releasing the stmmac driver.

This was tested with a simple way to stress the network while the
interface is running.

2 ssh connection to the device:
- One generating simple traffic with while true; do free; done
- The other making the mtu change with a delay of 1 second

The connection is correctly stopped and recovered after the MTU is changed.

The first 2 patch of this series are minor fixup that fix problems
presented while testing this. One fix a problem when we renable a queue
while we are generating a new dma conf. The other is a corner case that
was notice while stressing the driver and turning down the interface while
there was some traffic.

(this is a follow-up of a simpler patch that wanted to add the same
feature. It was suggested to first try to check if it was possible to
apply the new configuration. Posting as RFC as it does major rework for
the new concept of DMA conf)
====================

Link: https://lore.kernel.org/r/20220723142933.16030-1-ansuelsmth@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>