On 7/18/2020 1:30 PM, Vladimir Oltean wrote: > Hi Florian, > > On Fri, Jul 17, 2020 at 08:05:30PM -0700, Florian Fainelli wrote: >> In preparation for adding another layer of call into a DSA stacked ops >> singleton, wrap the ndo_do_ioctl() call into dev_do_ioctl(). >> >> Signed-off-by: Florian Fainelli <f.faine...@gmail.com> >> --- > > I missed most of the context, but this looks interesting. Am I correct > in saying that this could save us from having to manually pass > phy_mii_ioctl() and that it could be generically handled here? The motivation for this work started with the realization while untangling the ethtool/netlink and PHY library that tests like those: dev->netdev_ops == &foo_ops would be defeated by the way DSA overloads the DSA net_device operations. A better solution needed to be found. You are correct that we could just put a call to phy_mii_ioctl() here as well and avoid having drivers have to use phy_do_ioctl_running or roll their own. -- Florian
- [PATCH net-next 0/4] net: dsa: Setup dsa_netdev_ops Florian Fainelli
- [PATCH net-next 4/4] net: dsa: Setup dsa_netdev_ops Florian Fainelli
- [PATCH net-next 1/4] net: Wrap ndo_do_ioctl() to pr... Florian Fainelli
- Re: [PATCH net-next 1/4] net: Wrap ndo_do_ioctl... Vladimir Oltean
- Re: [PATCH net-next 1/4] net: Wrap ndo_do_i... Florian Fainelli
- Re: [PATCH net-next 1/4] net: Wrap ndo_... Vladimir Oltean
- Re: [PATCH net-next 1/4] net: Wrap ndo_do_ioctl... Andrew Lunn
- [PATCH net-next 3/4] net: Call into DSA netdevice_o... Florian Fainelli
- Re: [PATCH net-next 3/4] net: Call into DSA net... Vladimir Oltean
- Re: [PATCH net-next 3/4] net: Call into DSA... Florian Fainelli
- Re: [PATCH net-next 3/4] net: Call into... Andrew Lunn
- Re: [PATCH net-next 3/4] net: Call... Florian Fainelli
- [PATCH net-next 2/4] net: dsa: Add wrappers for ove... Florian Fainelli
- Re: [PATCH net-next 2/4] net: dsa: Add wrappers... kernel test robot
- Re: [PATCH net-next 2/4] net: dsa: Add wrap... Florian Fainelli