[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190520120954.ffz2ius5nvojkxlh@katana>
Date: Mon, 20 May 2019 14:09:54 +0200
From: Wolfram Sang <wsa@...-dreams.de>
To: Simon Horman <horms@...ge.net.au>
Cc: Ulrich Hecht <uli@...nd.eu>,
Niklas Söderlund <niklas.soderlund@...natech.se>,
Sergei Shtylyov <sergei.shtylyov@...entembedded.com>,
linux-renesas-soc@...r.kernel.org, netdev@...r.kernel.org,
davem@...emloft.net, magnus.damm@...il.com
Subject: Re: [PATCH] ravb: implement MTU change while device is up
> > > > > > How about the code below instead?
> > > > > >
> > > > > > if (netif_running(ndev))
> > > > > > ravb_close(ndev);
> > > > > >
> > > > > > ndev->mtu = new_mtu;
> > > > > > netdev_update_features(ndev);
> > > > >
> > > > > Is there a need to call netdev_update_features() even if the if is not
> > > > > running?
> > > >
> > > > In my testing, it didn't seem so.
> > >
> > > That may be because your testing doesn't cover cases where it would make
> > > any difference.
> >
> > Cases other than changing the MTU while the device is up?
>
> I was thinking of cases where listeners are registered for the
> notifier that netdev_update_features() triggers.
Where are we here? Is this a blocker?
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists