dev_ioctl: split out ndo_eth_ioctl
Most users of ndo_do_ioctl are ethernet drivers that implement the MII commands SIOCGMIIPHY/SIOCGMIIREG/SIOCSMIIREG, or hardware timestamping with SIOCSHWTSTAMP/SIOCGHWTSTAMP. Separate these from the few drivers that use ndo_do_ioctl to implement SIOCBOND, SIOCBR and SIOCWANDEV commands. This is a purely cosmetic change intended to help readers find their way through the implementation. Cc: Doug Ledford <dledford@redhat.com> Cc: Jason Gunthorpe <jgg@ziepe.ca> Cc: Jay Vosburgh <j.vosburgh@gmail.com> Cc: Veaceslav Falico <vfalico@gmail.com> Cc: Andy Gospodarek <andy@greyhouse.net> Cc: Andrew Lunn <andrew@lunn.ch> Cc: Vivien Didelot <vivien.didelot@gmail.com> Cc: Florian Fainelli <f.fainelli@gmail.com> Cc: Vladimir Oltean <olteanv@gmail.com> Cc: Leon Romanovsky <leon@kernel.org> Cc: linux-rdma@vger.kernel.org Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Jason Gunthorpe <jgg@nvidia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
a554bf96b4
commit
a76053707d
@@ -426,7 +426,7 @@ int phy_mii_ioctl(struct phy_device *phydev, struct ifreq *ifr, int cmd)
|
||||
EXPORT_SYMBOL(phy_mii_ioctl);
|
||||
|
||||
/**
|
||||
* phy_do_ioctl - generic ndo_do_ioctl implementation
|
||||
* phy_do_ioctl - generic ndo_eth_ioctl implementation
|
||||
* @dev: the net_device struct
|
||||
* @ifr: &struct ifreq for socket ioctl's
|
||||
* @cmd: ioctl cmd to execute
|
||||
@@ -441,7 +441,7 @@ int phy_do_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
|
||||
EXPORT_SYMBOL(phy_do_ioctl);
|
||||
|
||||
/**
|
||||
* phy_do_ioctl_running - generic ndo_do_ioctl implementation but test first
|
||||
* phy_do_ioctl_running - generic ndo_eth_ioctl implementation but test first
|
||||
*
|
||||
* @dev: the net_device struct
|
||||
* @ifr: &struct ifreq for socket ioctl's
|
||||
|
||||
Reference in New Issue
Block a user