Re: [PATCH net v2 2/2] net: stmmac: keep datapath state coherent after reinitialization failure

From: Andrew Lunn

Date: Tue Sep 22 2026 - 20:51:14 EST


On Tue, Sep 22, 2026 at 05:27:41PM -0600, James Hilliard wrote:
> An MTU change releases the running datapath before reopening it.

This is the real problem. Changing the MTU should not release the
datapath.

> If the reopen fails

Why is reopen failing?

You want the driver to allocate all the resources it needs before
releasing its old resources. That way you can always undo part way
through and still have a working interface.

Andrew