On Mon, 7 Dec 2020 17:45:17 +0100 Loic Poulain wrote: > > This would need similar checks in the NETDEV_PRECHANGEMTU > > netdev notifier. > > What about just returning an error on NETDEV_PRECHANGEMTU notification > to prevent real device MTU change while virtual rmnet devices are > linked? Not sure there is a more proper and thread safe way to manager > that otherwise.
Can't you copy what vlan devices do? That'd seem like a reasonable and well tested precedent, no?