Re: [PATCH] net: mvneta: fix changing MTU when using per-cpu processing

From: David Miller
Date: Fri Apr 01 2016 - 15:18:27 EST


From: Marcin Wojtas <mw@xxxxxxxxxxxx>
Date: Fri, 1 Apr 2016 15:21:18 +0200

> After enabling per-cpu processing it appeared that under heavy load
> changing MTU can result in blocking all port's interrupts and transmitting
> data is not possible after the change.
>
> This commit fixes above issue by disabling percpu interrupts for the
> time, when TXQs and RXQs are reconfigured.
>
> Signed-off-by: Marcin Wojtas <mw@xxxxxxxxxxxx>

Applied, thanks.

When I reviewed this I was worried that this was yet another case where
the ndo op could be invoked in a potentially atomic or similar context,
whereby on_each_cpu() would be illegal to use.

But that appears to not be the case, and thus this change is just fine.

Thanks.