Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Arnd Bergmann and committed by
David S. Miller
a7605370 a554bf96

+273 -231
+4
Documentation/networking/netdevices.rst
··· 229 229 This is used to implement SIOCDEVPRIVATE ioctl helpers. 230 230 These should not be added to new drivers, so don't use. 231 231 232 + ndo_eth_ioctl: 233 + Synchronization: rtnl_lock() semaphore. 234 + Context: process 235 + 232 236 ndo_get_stats: 233 237 Synchronization: rtnl_lock() semaphore, dev_base_lock rwlock, or RCU. 234 238 Context: atomic (can't sleep under rwlock or RCU)
+3 -3
Documentation/networking/timestamping.rst
··· 625 625 By design, PTP timestamping with a DSA switch does not need any special 626 626 handling in the driver for the host port it is attached to. However, when the 627 627 host port also supports PTP timestamping, DSA will take care of intercepting 628 - the ``.ndo_do_ioctl`` calls towards the host port, and block attempts to enable 628 + the ``.ndo_eth_ioctl`` calls towards the host port, and block attempts to enable 629 629 hardware timestamping on it. This is because the SO_TIMESTAMPING API does not 630 630 allow the delivery of multiple hardware timestamps for the same packet, so 631 631 anybody else except for the DSA switch port must be prevented from doing so. ··· 688 688 driver. Therefore, as opposed to DSA switches, modifications need to be done 689 689 to each individual MAC driver for PHY timestamping support. This entails: 690 690 691 - - Checking, in ``.ndo_do_ioctl``, whether ``phy_has_hwtstamp(netdev->phydev)`` 691 + - Checking, in ``.ndo_eth_ioctl``, whether ``phy_has_hwtstamp(netdev->phydev)`` 692 692 is true or not. If it is, then the MAC driver should not process this request 693 693 but instead pass it on to the PHY using ``phy_mii_ioctl()``. 694 694 ··· 747 747 transmission part into 2 portions: 748 748 749 749 1. "TX": checks whether PTP timestamping has been previously enabled through 750 - the ``.ndo_do_ioctl`` ("``priv->hwtstamp_tx_enabled == true``") and the 750 + the ``.ndo_eth_ioctl`` ("``priv->hwtstamp_tx_enabled == true``") and the 751 751 current skb requires a TX timestamp ("``skb_shinfo(skb)->tx_flags & 752 752 SKBTX_HW_TSTAMP``"). If this is true, it sets the 753 753 "``skb_shinfo(skb)->tx_flags |= SKBTX_IN_PROGRESS``" flag. Note: as
+4 -4
drivers/infiniband/ulp/ipoib/ipoib_main.c
··· 1745 1745 { 1746 1746 struct ipoib_dev_priv *priv = ipoib_priv(dev); 1747 1747 1748 - if (!priv->rn_ops->ndo_do_ioctl) 1748 + if (!priv->rn_ops->ndo_eth_ioctl) 1749 1749 return -EOPNOTSUPP; 1750 1750 1751 - return priv->rn_ops->ndo_do_ioctl(dev, ifr, cmd); 1751 + return priv->rn_ops->ndo_eth_ioctl(dev, ifr, cmd); 1752 1752 } 1753 1753 1754 1754 static int ipoib_dev_init(struct net_device *dev) ··· 2078 2078 .ndo_set_vf_guid = ipoib_set_vf_guid, 2079 2079 .ndo_set_mac_address = ipoib_set_mac, 2080 2080 .ndo_get_stats64 = ipoib_get_stats, 2081 - .ndo_do_ioctl = ipoib_ioctl, 2081 + .ndo_eth_ioctl = ipoib_ioctl, 2082 2082 }; 2083 2083 2084 2084 static const struct net_device_ops ipoib_netdev_ops_vf = { ··· 2093 2093 .ndo_set_rx_mode = ipoib_set_mcast_list, 2094 2094 .ndo_get_iflink = ipoib_get_iflink, 2095 2095 .ndo_get_stats64 = ipoib_get_stats, 2096 - .ndo_do_ioctl = ipoib_ioctl, 2096 + .ndo_eth_ioctl = ipoib_ioctl, 2097 2097 }; 2098 2098 2099 2099 static const struct net_device_ops ipoib_netdev_default_pf = {
+29 -13
drivers/net/bonding/bond_main.c
··· 732 732 BMSR_LSTATUS : 0; 733 733 734 734 /* Ethtool can't be used, fallback to MII ioctls. */ 735 - ioctl = slave_ops->ndo_do_ioctl; 735 + ioctl = slave_ops->ndo_eth_ioctl; 736 736 if (ioctl) { 737 737 /* TODO: set pointer to correct ioctl on a per team member 738 738 * bases to make this more efficient. that is, once ··· 756 756 } 757 757 } 758 758 759 - /* If reporting, report that either there's no dev->do_ioctl, 759 + /* If reporting, report that either there's no ndo_eth_ioctl, 760 760 * or both SIOCGMIIREG and get_link failed (meaning that we 761 761 * cannot report link status). If not reporting, pretend 762 762 * we're ok. ··· 1733 1733 1734 1734 if (!bond->params.use_carrier && 1735 1735 slave_dev->ethtool_ops->get_link == NULL && 1736 - slave_ops->ndo_do_ioctl == NULL) { 1736 + slave_ops->ndo_eth_ioctl == NULL) { 1737 1737 slave_warn(bond_dev, slave_dev, "no link monitoring support\n"); 1738 1738 } 1739 1739 ··· 3962 3962 rcu_read_unlock(); 3963 3963 } 3964 3964 3965 - static int bond_do_ioctl(struct net_device *bond_dev, struct ifreq *ifr, int cmd) 3965 + static int bond_eth_ioctl(struct net_device *bond_dev, struct ifreq *ifr, int cmd) 3966 3966 { 3967 3967 struct bonding *bond = netdev_priv(bond_dev); 3968 - struct net_device *slave_dev = NULL; 3969 - struct ifbond k_binfo; 3970 - struct ifbond __user *u_binfo = NULL; 3971 - struct ifslave k_sinfo; 3972 - struct ifslave __user *u_sinfo = NULL; 3973 3968 struct mii_ioctl_data *mii = NULL; 3974 - struct bond_opt_value newval; 3975 - struct net *net; 3976 - int res = 0; 3969 + int res; 3977 3970 3978 - netdev_dbg(bond_dev, "bond_ioctl: cmd=%d\n", cmd); 3971 + netdev_dbg(bond_dev, "bond_eth_ioctl: cmd=%d\n", cmd); 3979 3972 3980 3973 switch (cmd) { 3981 3974 case SIOCGMIIPHY: ··· 3993 4000 } 3994 4001 3995 4002 return 0; 4003 + default: 4004 + res = -EOPNOTSUPP; 4005 + } 4006 + 4007 + return res; 4008 + } 4009 + 4010 + static int bond_do_ioctl(struct net_device *bond_dev, struct ifreq *ifr, int cmd) 4011 + { 4012 + struct bonding *bond = netdev_priv(bond_dev); 4013 + struct net_device *slave_dev = NULL; 4014 + struct ifbond k_binfo; 4015 + struct ifbond __user *u_binfo = NULL; 4016 + struct ifslave k_sinfo; 4017 + struct ifslave __user *u_sinfo = NULL; 4018 + struct bond_opt_value newval; 4019 + struct net *net; 4020 + int res = 0; 4021 + 4022 + netdev_dbg(bond_dev, "bond_ioctl: cmd=%d\n", cmd); 4023 + 4024 + switch (cmd) { 3996 4025 case SIOCBONDINFOQUERY: 3997 4026 u_binfo = (struct ifbond __user *)ifr->ifr_data; 3998 4027 ··· 4987 4972 .ndo_start_xmit = bond_start_xmit, 4988 4973 .ndo_select_queue = bond_select_queue, 4989 4974 .ndo_get_stats64 = bond_get_stats, 4975 + .ndo_eth_ioctl = bond_eth_ioctl, 4990 4976 .ndo_do_ioctl = bond_do_ioctl, 4991 4977 .ndo_siocdevprivate = bond_siocdevprivate, 4992 4978 .ndo_change_rx_flags = bond_change_rx_flags,
+1 -1
drivers/net/ethernet/3com/3c574_cs.c
··· 252 252 .ndo_start_xmit = el3_start_xmit, 253 253 .ndo_tx_timeout = el3_tx_timeout, 254 254 .ndo_get_stats = el3_get_stats, 255 - .ndo_do_ioctl = el3_ioctl, 255 + .ndo_eth_ioctl = el3_ioctl, 256 256 .ndo_set_rx_mode = set_multicast_list, 257 257 .ndo_set_mac_address = eth_mac_addr, 258 258 .ndo_validate_addr = eth_validate_addr,
+2 -2
drivers/net/ethernet/3com/3c59x.c
··· 1052 1052 .ndo_tx_timeout = vortex_tx_timeout, 1053 1053 .ndo_get_stats = vortex_get_stats, 1054 1054 #ifdef CONFIG_PCI 1055 - .ndo_do_ioctl = vortex_ioctl, 1055 + .ndo_eth_ioctl = vortex_ioctl, 1056 1056 #endif 1057 1057 .ndo_set_rx_mode = set_rx_mode, 1058 1058 .ndo_set_mac_address = eth_mac_addr, ··· 1069 1069 .ndo_tx_timeout = vortex_tx_timeout, 1070 1070 .ndo_get_stats = vortex_get_stats, 1071 1071 #ifdef CONFIG_PCI 1072 - .ndo_do_ioctl = vortex_ioctl, 1072 + .ndo_eth_ioctl = vortex_ioctl, 1073 1073 #endif 1074 1074 .ndo_set_rx_mode = set_rx_mode, 1075 1075 .ndo_set_mac_address = eth_mac_addr,
+1 -1
drivers/net/ethernet/8390/ax88796.c
··· 635 635 static const struct net_device_ops ax_netdev_ops = { 636 636 .ndo_open = ax_open, 637 637 .ndo_stop = ax_close, 638 - .ndo_do_ioctl = ax_ioctl, 638 + .ndo_eth_ioctl = ax_ioctl, 639 639 640 640 .ndo_start_xmit = ax_ei_start_xmit, 641 641 .ndo_tx_timeout = ax_ei_tx_timeout,
+1 -1
drivers/net/ethernet/8390/axnet_cs.c
··· 128 128 static const struct net_device_ops axnet_netdev_ops = { 129 129 .ndo_open = axnet_open, 130 130 .ndo_stop = axnet_close, 131 - .ndo_do_ioctl = axnet_ioctl, 131 + .ndo_eth_ioctl = axnet_ioctl, 132 132 .ndo_start_xmit = axnet_start_xmit, 133 133 .ndo_tx_timeout = axnet_tx_timeout, 134 134 .ndo_get_stats = get_stats,
+1 -1
drivers/net/ethernet/8390/pcnet_cs.c
··· 223 223 .ndo_set_config = set_config, 224 224 .ndo_start_xmit = ei_start_xmit, 225 225 .ndo_get_stats = ei_get_stats, 226 - .ndo_do_ioctl = ei_ioctl, 226 + .ndo_eth_ioctl = ei_ioctl, 227 227 .ndo_set_rx_mode = ei_set_multicast_list, 228 228 .ndo_tx_timeout = ei_tx_timeout, 229 229 .ndo_set_mac_address = eth_mac_addr,
+3 -3
drivers/net/ethernet/actions/owl-emac.c
··· 1179 1179 return owl_emac_setup_frame_xmit(netdev_priv(netdev)); 1180 1180 } 1181 1181 1182 - static int owl_emac_ndo_do_ioctl(struct net_device *netdev, 1183 - struct ifreq *req, int cmd) 1182 + static int owl_emac_ndo_eth_ioctl(struct net_device *netdev, 1183 + struct ifreq *req, int cmd) 1184 1184 { 1185 1185 if (!netif_running(netdev)) 1186 1186 return -EINVAL; ··· 1224 1224 .ndo_set_rx_mode = owl_emac_ndo_set_rx_mode, 1225 1225 .ndo_set_mac_address = owl_emac_ndo_set_mac_addr, 1226 1226 .ndo_validate_addr = eth_validate_addr, 1227 - .ndo_do_ioctl = owl_emac_ndo_do_ioctl, 1227 + .ndo_eth_ioctl = owl_emac_ndo_eth_ioctl, 1228 1228 .ndo_tx_timeout = owl_emac_ndo_tx_timeout, 1229 1229 .ndo_get_stats = owl_emac_ndo_get_stats, 1230 1230 };
+1 -1
drivers/net/ethernet/adaptec/starfire.c
··· 625 625 .ndo_tx_timeout = tx_timeout, 626 626 .ndo_get_stats = get_stats, 627 627 .ndo_set_rx_mode = set_rx_mode, 628 - .ndo_do_ioctl = netdev_ioctl, 628 + .ndo_eth_ioctl = netdev_ioctl, 629 629 .ndo_set_mac_address = eth_mac_addr, 630 630 .ndo_validate_addr = eth_validate_addr, 631 631 #ifdef VLAN_SUPPORT
+1 -1
drivers/net/ethernet/agere/et131x.c
··· 3882 3882 .ndo_set_mac_address = eth_mac_addr, 3883 3883 .ndo_validate_addr = eth_validate_addr, 3884 3884 .ndo_get_stats = et131x_stats, 3885 - .ndo_do_ioctl = phy_do_ioctl, 3885 + .ndo_eth_ioctl = phy_do_ioctl, 3886 3886 }; 3887 3887 3888 3888 static int et131x_pci_setup(struct pci_dev *pdev,
+1 -1
drivers/net/ethernet/allwinner/sun4i-emac.c
··· 774 774 .ndo_start_xmit = emac_start_xmit, 775 775 .ndo_tx_timeout = emac_timeout, 776 776 .ndo_set_rx_mode = emac_set_rx_mode, 777 - .ndo_do_ioctl = phy_do_ioctl_running, 777 + .ndo_eth_ioctl = phy_do_ioctl_running, 778 778 .ndo_validate_addr = eth_validate_addr, 779 779 .ndo_set_mac_address = emac_set_mac_address, 780 780 #ifdef CONFIG_NET_POLL_CONTROLLER
+1 -1
drivers/net/ethernet/amd/amd8111e.c
··· 1729 1729 .ndo_set_rx_mode = amd8111e_set_multicast_list, 1730 1730 .ndo_validate_addr = eth_validate_addr, 1731 1731 .ndo_set_mac_address = amd8111e_set_mac_address, 1732 - .ndo_do_ioctl = amd8111e_ioctl, 1732 + .ndo_eth_ioctl = amd8111e_ioctl, 1733 1733 .ndo_change_mtu = amd8111e_change_mtu, 1734 1734 #ifdef CONFIG_NET_POLL_CONTROLLER 1735 1735 .ndo_poll_controller = amd8111e_poll,
+1 -1
drivers/net/ethernet/amd/au1000_eth.c
··· 1051 1051 .ndo_stop = au1000_close, 1052 1052 .ndo_start_xmit = au1000_tx, 1053 1053 .ndo_set_rx_mode = au1000_multicast_list, 1054 - .ndo_do_ioctl = phy_do_ioctl_running, 1054 + .ndo_eth_ioctl = phy_do_ioctl_running, 1055 1055 .ndo_tx_timeout = au1000_tx_timeout, 1056 1056 .ndo_set_mac_address = eth_mac_addr, 1057 1057 .ndo_validate_addr = eth_validate_addr,
+1 -1
drivers/net/ethernet/amd/pcnet32.c
··· 1572 1572 .ndo_tx_timeout = pcnet32_tx_timeout, 1573 1573 .ndo_get_stats = pcnet32_get_stats, 1574 1574 .ndo_set_rx_mode = pcnet32_set_multicast_list, 1575 - .ndo_do_ioctl = pcnet32_ioctl, 1575 + .ndo_eth_ioctl = pcnet32_ioctl, 1576 1576 .ndo_set_mac_address = eth_mac_addr, 1577 1577 .ndo_validate_addr = eth_validate_addr, 1578 1578 #ifdef CONFIG_NET_POLL_CONTROLLER
+1 -1
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
··· 2284 2284 .ndo_set_rx_mode = xgbe_set_rx_mode, 2285 2285 .ndo_set_mac_address = xgbe_set_mac_address, 2286 2286 .ndo_validate_addr = eth_validate_addr, 2287 - .ndo_do_ioctl = xgbe_ioctl, 2287 + .ndo_eth_ioctl = xgbe_ioctl, 2288 2288 .ndo_change_mtu = xgbe_change_mtu, 2289 2289 .ndo_tx_timeout = xgbe_tx_timeout, 2290 2290 .ndo_get_stats64 = xgbe_get_stats64,
+1 -1
drivers/net/ethernet/aquantia/atlantic/aq_main.c
··· 421 421 .ndo_change_mtu = aq_ndev_change_mtu, 422 422 .ndo_set_mac_address = aq_ndev_set_mac_address, 423 423 .ndo_set_features = aq_ndev_set_features, 424 - .ndo_do_ioctl = aq_ndev_ioctl, 424 + .ndo_eth_ioctl = aq_ndev_ioctl, 425 425 .ndo_vlan_rx_add_vid = aq_ndo_vlan_rx_add_vid, 426 426 .ndo_vlan_rx_kill_vid = aq_ndo_vlan_rx_kill_vid, 427 427 .ndo_setup_tc = aq_ndo_setup_tc,
+1 -1
drivers/net/ethernet/arc/emac_main.c
··· 844 844 .ndo_set_mac_address = arc_emac_set_address, 845 845 .ndo_get_stats = arc_emac_stats, 846 846 .ndo_set_rx_mode = arc_emac_set_rx_mode, 847 - .ndo_do_ioctl = phy_do_ioctl_running, 847 + .ndo_eth_ioctl = phy_do_ioctl_running, 848 848 #ifdef CONFIG_NET_POLL_CONTROLLER 849 849 .ndo_poll_controller = arc_emac_poll_controller, 850 850 #endif
+1 -1
drivers/net/ethernet/atheros/ag71xx.c
··· 1851 1851 .ndo_open = ag71xx_open, 1852 1852 .ndo_stop = ag71xx_stop, 1853 1853 .ndo_start_xmit = ag71xx_hard_start_xmit, 1854 - .ndo_do_ioctl = phy_do_ioctl, 1854 + .ndo_eth_ioctl = phy_do_ioctl, 1855 1855 .ndo_tx_timeout = ag71xx_tx_timeout, 1856 1856 .ndo_change_mtu = ag71xx_change_mtu, 1857 1857 .ndo_set_mac_address = eth_mac_addr,
+1 -1
drivers/net/ethernet/atheros/alx/main.c
··· 1701 1701 .ndo_validate_addr = eth_validate_addr, 1702 1702 .ndo_set_mac_address = alx_set_mac_address, 1703 1703 .ndo_change_mtu = alx_change_mtu, 1704 - .ndo_do_ioctl = alx_ioctl, 1704 + .ndo_eth_ioctl = alx_ioctl, 1705 1705 .ndo_tx_timeout = alx_tx_timeout, 1706 1706 .ndo_fix_features = alx_fix_features, 1707 1707 #ifdef CONFIG_NET_POLL_CONTROLLER
+1 -1
drivers/net/ethernet/atheros/atl1c/atl1c_main.c
··· 2609 2609 .ndo_change_mtu = atl1c_change_mtu, 2610 2610 .ndo_fix_features = atl1c_fix_features, 2611 2611 .ndo_set_features = atl1c_set_features, 2612 - .ndo_do_ioctl = atl1c_ioctl, 2612 + .ndo_eth_ioctl = atl1c_ioctl, 2613 2613 .ndo_tx_timeout = atl1c_tx_timeout, 2614 2614 .ndo_get_stats = atl1c_get_stats, 2615 2615 #ifdef CONFIG_NET_POLL_CONTROLLER
+1 -1
drivers/net/ethernet/atheros/atl1e/atl1e_main.c
··· 2247 2247 .ndo_fix_features = atl1e_fix_features, 2248 2248 .ndo_set_features = atl1e_set_features, 2249 2249 .ndo_change_mtu = atl1e_change_mtu, 2250 - .ndo_do_ioctl = atl1e_ioctl, 2250 + .ndo_eth_ioctl = atl1e_ioctl, 2251 2251 .ndo_tx_timeout = atl1e_tx_timeout, 2252 2252 #ifdef CONFIG_NET_POLL_CONTROLLER 2253 2253 .ndo_poll_controller = atl1e_netpoll,
+1 -1
drivers/net/ethernet/atheros/atlx/atl1.c
··· 2885 2885 .ndo_change_mtu = atl1_change_mtu, 2886 2886 .ndo_fix_features = atlx_fix_features, 2887 2887 .ndo_set_features = atlx_set_features, 2888 - .ndo_do_ioctl = atlx_ioctl, 2888 + .ndo_eth_ioctl = atlx_ioctl, 2889 2889 .ndo_tx_timeout = atlx_tx_timeout, 2890 2890 #ifdef CONFIG_NET_POLL_CONTROLLER 2891 2891 .ndo_poll_controller = atl1_poll_controller,
+1 -1
drivers/net/ethernet/atheros/atlx/atl2.c
··· 1293 1293 .ndo_change_mtu = atl2_change_mtu, 1294 1294 .ndo_fix_features = atl2_fix_features, 1295 1295 .ndo_set_features = atl2_set_features, 1296 - .ndo_do_ioctl = atl2_ioctl, 1296 + .ndo_eth_ioctl = atl2_ioctl, 1297 1297 .ndo_tx_timeout = atl2_tx_timeout, 1298 1298 #ifdef CONFIG_NET_POLL_CONTROLLER 1299 1299 .ndo_poll_controller = atl2_poll_controller,
+1 -1
drivers/net/ethernet/broadcom/b44.c
··· 2198 2198 .ndo_set_rx_mode = b44_set_rx_mode, 2199 2199 .ndo_set_mac_address = b44_set_mac_addr, 2200 2200 .ndo_validate_addr = eth_validate_addr, 2201 - .ndo_do_ioctl = b44_ioctl, 2201 + .ndo_eth_ioctl = b44_ioctl, 2202 2202 .ndo_tx_timeout = b44_tx_timeout, 2203 2203 .ndo_change_mtu = b44_change_mtu, 2204 2204 #ifdef CONFIG_NET_POLL_CONTROLLER
+2 -2
drivers/net/ethernet/broadcom/bcm63xx_enet.c
··· 1699 1699 .ndo_start_xmit = bcm_enet_start_xmit, 1700 1700 .ndo_set_mac_address = bcm_enet_set_mac_address, 1701 1701 .ndo_set_rx_mode = bcm_enet_set_multicast_list, 1702 - .ndo_do_ioctl = bcm_enet_ioctl, 1702 + .ndo_eth_ioctl = bcm_enet_ioctl, 1703 1703 .ndo_change_mtu = bcm_enet_change_mtu, 1704 1704 }; 1705 1705 ··· 2446 2446 .ndo_stop = bcm_enetsw_stop, 2447 2447 .ndo_start_xmit = bcm_enet_start_xmit, 2448 2448 .ndo_change_mtu = bcm_enet_change_mtu, 2449 - .ndo_do_ioctl = bcm_enetsw_ioctl, 2449 + .ndo_eth_ioctl = bcm_enetsw_ioctl, 2450 2450 }; 2451 2451 2452 2452
+1 -1
drivers/net/ethernet/broadcom/bgmac.c
··· 1263 1263 .ndo_set_rx_mode = bgmac_set_rx_mode, 1264 1264 .ndo_set_mac_address = bgmac_set_mac_address, 1265 1265 .ndo_validate_addr = eth_validate_addr, 1266 - .ndo_do_ioctl = phy_do_ioctl_running, 1266 + .ndo_eth_ioctl = phy_do_ioctl_running, 1267 1267 .ndo_change_mtu = bgmac_change_mtu, 1268 1268 }; 1269 1269
+1 -1
drivers/net/ethernet/broadcom/bnx2.c
··· 8546 8546 .ndo_stop = bnx2_close, 8547 8547 .ndo_get_stats64 = bnx2_get_stats64, 8548 8548 .ndo_set_rx_mode = bnx2_set_rx_mode, 8549 - .ndo_do_ioctl = bnx2_ioctl, 8549 + .ndo_eth_ioctl = bnx2_ioctl, 8550 8550 .ndo_validate_addr = eth_validate_addr, 8551 8551 .ndo_set_mac_address = bnx2_change_mac_addr, 8552 8552 .ndo_change_mtu = bnx2_change_mtu,
+1 -1
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
··· 13048 13048 .ndo_set_rx_mode = bnx2x_set_rx_mode, 13049 13049 .ndo_set_mac_address = bnx2x_change_mac_addr, 13050 13050 .ndo_validate_addr = bnx2x_validate_addr, 13051 - .ndo_do_ioctl = bnx2x_ioctl, 13051 + .ndo_eth_ioctl = bnx2x_ioctl, 13052 13052 .ndo_change_mtu = bnx2x_change_mtu, 13053 13053 .ndo_fix_features = bnx2x_fix_features, 13054 13054 .ndo_set_features = bnx2x_set_features,
+1 -1
drivers/net/ethernet/broadcom/bnxt/bnxt.c
··· 12667 12667 .ndo_stop = bnxt_close, 12668 12668 .ndo_get_stats64 = bnxt_get_stats64, 12669 12669 .ndo_set_rx_mode = bnxt_set_rx_mode, 12670 - .ndo_do_ioctl = bnxt_ioctl, 12670 + .ndo_eth_ioctl = bnxt_ioctl, 12671 12671 .ndo_validate_addr = eth_validate_addr, 12672 12672 .ndo_set_mac_address = bnxt_change_mac_addr, 12673 12673 .ndo_change_mtu = bnxt_change_mtu,
+1 -1
drivers/net/ethernet/broadcom/genet/bcmgenet.c
··· 3659 3659 .ndo_tx_timeout = bcmgenet_timeout, 3660 3660 .ndo_set_rx_mode = bcmgenet_set_rx_mode, 3661 3661 .ndo_set_mac_address = bcmgenet_set_mac_addr, 3662 - .ndo_do_ioctl = phy_do_ioctl_running, 3662 + .ndo_eth_ioctl = phy_do_ioctl_running, 3663 3663 .ndo_set_features = bcmgenet_set_features, 3664 3664 #ifdef CONFIG_NET_POLL_CONTROLLER 3665 3665 .ndo_poll_controller = bcmgenet_poll_controller,
+1 -1
drivers/net/ethernet/broadcom/sb1250-mac.c
··· 2136 2136 .ndo_start_xmit = sbmac_start_tx, 2137 2137 .ndo_set_rx_mode = sbmac_set_rx_mode, 2138 2138 .ndo_tx_timeout = sbmac_tx_timeout, 2139 - .ndo_do_ioctl = sbmac_mii_ioctl, 2139 + .ndo_eth_ioctl = sbmac_mii_ioctl, 2140 2140 .ndo_validate_addr = eth_validate_addr, 2141 2141 .ndo_set_mac_address = eth_mac_addr, 2142 2142 #ifdef CONFIG_NET_POLL_CONTROLLER
+1 -1
drivers/net/ethernet/broadcom/tg3.c
··· 14290 14290 .ndo_validate_addr = eth_validate_addr, 14291 14291 .ndo_set_rx_mode = tg3_set_rx_mode, 14292 14292 .ndo_set_mac_address = tg3_set_mac_addr, 14293 - .ndo_do_ioctl = tg3_ioctl, 14293 + .ndo_eth_ioctl = tg3_ioctl, 14294 14294 .ndo_tx_timeout = tg3_tx_timeout, 14295 14295 .ndo_change_mtu = tg3_change_mtu, 14296 14296 .ndo_fix_features = tg3_fix_features,
+2 -2
drivers/net/ethernet/cadence/macb_main.c
··· 3664 3664 .ndo_start_xmit = macb_start_xmit, 3665 3665 .ndo_set_rx_mode = macb_set_rx_mode, 3666 3666 .ndo_get_stats = macb_get_stats, 3667 - .ndo_do_ioctl = macb_ioctl, 3667 + .ndo_eth_ioctl = macb_ioctl, 3668 3668 .ndo_validate_addr = eth_validate_addr, 3669 3669 .ndo_change_mtu = macb_change_mtu, 3670 3670 .ndo_set_mac_address = eth_mac_addr, ··· 4323 4323 .ndo_get_stats = macb_get_stats, 4324 4324 .ndo_set_rx_mode = macb_set_rx_mode, 4325 4325 .ndo_set_mac_address = eth_mac_addr, 4326 - .ndo_do_ioctl = macb_ioctl, 4326 + .ndo_eth_ioctl = macb_ioctl, 4327 4327 .ndo_validate_addr = eth_validate_addr, 4328 4328 #ifdef CONFIG_NET_POLL_CONTROLLER 4329 4329 .ndo_poll_controller = at91ether_poll_controller,
+1 -1
drivers/net/ethernet/cavium/liquidio/lio_main.c
··· 3223 3223 .ndo_vlan_rx_add_vid = liquidio_vlan_rx_add_vid, 3224 3224 .ndo_vlan_rx_kill_vid = liquidio_vlan_rx_kill_vid, 3225 3225 .ndo_change_mtu = liquidio_change_mtu, 3226 - .ndo_do_ioctl = liquidio_ioctl, 3226 + .ndo_eth_ioctl = liquidio_ioctl, 3227 3227 .ndo_fix_features = liquidio_fix_features, 3228 3228 .ndo_set_features = liquidio_set_features, 3229 3229 .ndo_set_vf_mac = liquidio_set_vf_mac,
+1 -1
drivers/net/ethernet/cavium/liquidio/lio_vf_main.c
··· 1889 1889 .ndo_vlan_rx_add_vid = liquidio_vlan_rx_add_vid, 1890 1890 .ndo_vlan_rx_kill_vid = liquidio_vlan_rx_kill_vid, 1891 1891 .ndo_change_mtu = liquidio_change_mtu, 1892 - .ndo_do_ioctl = liquidio_ioctl, 1892 + .ndo_eth_ioctl = liquidio_ioctl, 1893 1893 .ndo_fix_features = liquidio_fix_features, 1894 1894 .ndo_set_features = liquidio_set_features, 1895 1895 };
+1 -1
drivers/net/ethernet/cavium/octeon/octeon_mgmt.c
··· 1373 1373 .ndo_start_xmit = octeon_mgmt_xmit, 1374 1374 .ndo_set_rx_mode = octeon_mgmt_set_rx_filtering, 1375 1375 .ndo_set_mac_address = octeon_mgmt_set_mac_address, 1376 - .ndo_do_ioctl = octeon_mgmt_ioctl, 1376 + .ndo_eth_ioctl = octeon_mgmt_ioctl, 1377 1377 .ndo_change_mtu = octeon_mgmt_change_mtu, 1378 1378 #ifdef CONFIG_NET_POLL_CONTROLLER 1379 1379 .ndo_poll_controller = octeon_mgmt_poll_controller,
+1 -1
drivers/net/ethernet/cavium/thunder/nicvf_main.c
··· 2096 2096 .ndo_fix_features = nicvf_fix_features, 2097 2097 .ndo_set_features = nicvf_set_features, 2098 2098 .ndo_bpf = nicvf_xdp, 2099 - .ndo_do_ioctl = nicvf_ioctl, 2099 + .ndo_eth_ioctl = nicvf_ioctl, 2100 2100 .ndo_set_rx_mode = nicvf_set_rx_mode, 2101 2101 }; 2102 2102
+1 -1
drivers/net/ethernet/chelsio/cxgb/cxgb2.c
··· 924 924 .ndo_get_stats = t1_get_stats, 925 925 .ndo_validate_addr = eth_validate_addr, 926 926 .ndo_set_rx_mode = t1_set_rxmode, 927 - .ndo_do_ioctl = t1_ioctl, 927 + .ndo_eth_ioctl = t1_ioctl, 928 928 .ndo_change_mtu = t1_change_mtu, 929 929 .ndo_set_mac_address = t1_set_mac_addr, 930 930 .ndo_fix_features = t1_fix_features,
+1 -1
drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c
··· 3184 3184 .ndo_get_stats = cxgb_get_stats, 3185 3185 .ndo_validate_addr = eth_validate_addr, 3186 3186 .ndo_set_rx_mode = cxgb_set_rxmode, 3187 - .ndo_do_ioctl = cxgb_ioctl, 3187 + .ndo_eth_ioctl = cxgb_ioctl, 3188 3188 .ndo_siocdevprivate = cxgb_siocdevprivate, 3189 3189 .ndo_change_mtu = cxgb_change_mtu, 3190 3190 .ndo_set_mac_address = cxgb_set_mac_addr,
+1 -1
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
··· 3872 3872 .ndo_set_mac_address = cxgb_set_mac_addr, 3873 3873 .ndo_set_features = cxgb_set_features, 3874 3874 .ndo_validate_addr = eth_validate_addr, 3875 - .ndo_do_ioctl = cxgb_ioctl, 3875 + .ndo_eth_ioctl = cxgb_ioctl, 3876 3876 .ndo_change_mtu = cxgb_change_mtu, 3877 3877 #ifdef CONFIG_NET_POLL_CONTROLLER 3878 3878 .ndo_poll_controller = cxgb_netpoll,
+1 -1
drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c
··· 2837 2837 .ndo_set_rx_mode = cxgb4vf_set_rxmode, 2838 2838 .ndo_set_mac_address = cxgb4vf_set_mac_addr, 2839 2839 .ndo_validate_addr = eth_validate_addr, 2840 - .ndo_do_ioctl = cxgb4vf_do_ioctl, 2840 + .ndo_eth_ioctl = cxgb4vf_do_ioctl, 2841 2841 .ndo_change_mtu = cxgb4vf_change_mtu, 2842 2842 .ndo_fix_features = cxgb4vf_fix_features, 2843 2843 .ndo_set_features = cxgb4vf_set_features,
+1 -1
drivers/net/ethernet/cirrus/ep93xx_eth.c
··· 733 733 .ndo_open = ep93xx_open, 734 734 .ndo_stop = ep93xx_close, 735 735 .ndo_start_xmit = ep93xx_xmit, 736 - .ndo_do_ioctl = ep93xx_ioctl, 736 + .ndo_eth_ioctl = ep93xx_ioctl, 737 737 .ndo_validate_addr = eth_validate_addr, 738 738 .ndo_set_mac_address = eth_mac_addr, 739 739 };
+1 -1
drivers/net/ethernet/davicom/dm9000.c
··· 1372 1372 .ndo_start_xmit = dm9000_start_xmit, 1373 1373 .ndo_tx_timeout = dm9000_timeout, 1374 1374 .ndo_set_rx_mode = dm9000_hash_table, 1375 - .ndo_do_ioctl = dm9000_ioctl, 1375 + .ndo_eth_ioctl = dm9000_ioctl, 1376 1376 .ndo_set_features = dm9000_set_features, 1377 1377 .ndo_validate_addr = eth_validate_addr, 1378 1378 .ndo_set_mac_address = eth_mac_addr,
+1 -1
drivers/net/ethernet/dec/tulip/tulip_core.c
··· 1271 1271 .ndo_tx_timeout = tulip_tx_timeout, 1272 1272 .ndo_stop = tulip_close, 1273 1273 .ndo_get_stats = tulip_get_stats, 1274 - .ndo_do_ioctl = private_ioctl, 1274 + .ndo_eth_ioctl = private_ioctl, 1275 1275 .ndo_set_rx_mode = set_rx_mode, 1276 1276 .ndo_set_mac_address = eth_mac_addr, 1277 1277 .ndo_validate_addr = eth_validate_addr,
+1 -1
drivers/net/ethernet/dec/tulip/winbond-840.c
··· 341 341 .ndo_start_xmit = start_tx, 342 342 .ndo_get_stats = get_stats, 343 343 .ndo_set_rx_mode = set_rx_mode, 344 - .ndo_do_ioctl = netdev_ioctl, 344 + .ndo_eth_ioctl = netdev_ioctl, 345 345 .ndo_tx_timeout = tx_timeout, 346 346 .ndo_set_mac_address = eth_mac_addr, 347 347 .ndo_validate_addr = eth_validate_addr,
+1 -1
drivers/net/ethernet/dlink/dl2k.c
··· 95 95 .ndo_validate_addr = eth_validate_addr, 96 96 .ndo_set_mac_address = eth_mac_addr, 97 97 .ndo_set_rx_mode = set_multicast, 98 - .ndo_do_ioctl = rio_ioctl, 98 + .ndo_eth_ioctl = rio_ioctl, 99 99 .ndo_tx_timeout = rio_tx_timeout, 100 100 }; 101 101
+1 -1
drivers/net/ethernet/dlink/sundance.c
··· 479 479 .ndo_start_xmit = start_tx, 480 480 .ndo_get_stats = get_stats, 481 481 .ndo_set_rx_mode = set_rx_mode, 482 - .ndo_do_ioctl = netdev_ioctl, 482 + .ndo_eth_ioctl = netdev_ioctl, 483 483 .ndo_tx_timeout = tx_timeout, 484 484 .ndo_change_mtu = change_mtu, 485 485 .ndo_set_mac_address = sundance_set_mac_addr,
+1 -1
drivers/net/ethernet/dnet.c
··· 742 742 .ndo_stop = dnet_close, 743 743 .ndo_get_stats = dnet_get_stats, 744 744 .ndo_start_xmit = dnet_start_xmit, 745 - .ndo_do_ioctl = phy_do_ioctl_running, 745 + .ndo_eth_ioctl = phy_do_ioctl_running, 746 746 .ndo_set_mac_address = eth_mac_addr, 747 747 .ndo_validate_addr = eth_validate_addr, 748 748 };
+1 -1
drivers/net/ethernet/ethoc.c
··· 1009 1009 static const struct net_device_ops ethoc_netdev_ops = { 1010 1010 .ndo_open = ethoc_open, 1011 1011 .ndo_stop = ethoc_stop, 1012 - .ndo_do_ioctl = ethoc_ioctl, 1012 + .ndo_eth_ioctl = ethoc_ioctl, 1013 1013 .ndo_set_mac_address = ethoc_set_mac_address, 1014 1014 .ndo_set_rx_mode = ethoc_set_multicast_list, 1015 1015 .ndo_change_mtu = ethoc_change_mtu,
+1 -1
drivers/net/ethernet/faraday/ftgmac100.c
··· 1616 1616 .ndo_start_xmit = ftgmac100_hard_start_xmit, 1617 1617 .ndo_set_mac_address = ftgmac100_set_mac_addr, 1618 1618 .ndo_validate_addr = eth_validate_addr, 1619 - .ndo_do_ioctl = phy_do_ioctl, 1619 + .ndo_eth_ioctl = phy_do_ioctl, 1620 1620 .ndo_tx_timeout = ftgmac100_tx_timeout, 1621 1621 .ndo_set_rx_mode = ftgmac100_set_rx_mode, 1622 1622 .ndo_set_features = ftgmac100_set_features,
+1 -1
drivers/net/ethernet/faraday/ftmac100.c
··· 1043 1043 .ndo_start_xmit = ftmac100_hard_start_xmit, 1044 1044 .ndo_set_mac_address = eth_mac_addr, 1045 1045 .ndo_validate_addr = eth_validate_addr, 1046 - .ndo_do_ioctl = ftmac100_do_ioctl, 1046 + .ndo_eth_ioctl = ftmac100_do_ioctl, 1047 1047 }; 1048 1048 1049 1049 /******************************************************************************
+1 -1
drivers/net/ethernet/fealnx.c
··· 463 463 .ndo_start_xmit = start_tx, 464 464 .ndo_get_stats = get_stats, 465 465 .ndo_set_rx_mode = set_rx_mode, 466 - .ndo_do_ioctl = mii_ioctl, 466 + .ndo_eth_ioctl = mii_ioctl, 467 467 .ndo_tx_timeout = fealnx_tx_timeout, 468 468 .ndo_set_mac_address = eth_mac_addr, 469 469 .ndo_validate_addr = eth_validate_addr,
+1 -1
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c
··· 3157 3157 .ndo_set_mac_address = dpaa_set_mac_address, 3158 3158 .ndo_validate_addr = eth_validate_addr, 3159 3159 .ndo_set_rx_mode = dpaa_set_rx_mode, 3160 - .ndo_do_ioctl = dpaa_ioctl, 3160 + .ndo_eth_ioctl = dpaa_ioctl, 3161 3161 .ndo_setup_tc = dpaa_setup_tc, 3162 3162 .ndo_change_mtu = dpaa_change_mtu, 3163 3163 .ndo_bpf = dpaa_xdp,
+1 -1
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
··· 2594 2594 .ndo_get_stats64 = dpaa2_eth_get_stats, 2595 2595 .ndo_set_rx_mode = dpaa2_eth_set_rx_mode, 2596 2596 .ndo_set_features = dpaa2_eth_set_features, 2597 - .ndo_do_ioctl = dpaa2_eth_ioctl, 2597 + .ndo_eth_ioctl = dpaa2_eth_ioctl, 2598 2598 .ndo_change_mtu = dpaa2_eth_change_mtu, 2599 2599 .ndo_bpf = dpaa2_eth_xdp, 2600 2600 .ndo_xdp_xmit = dpaa2_eth_xdp_xmit,
+1 -1
drivers/net/ethernet/freescale/enetc/enetc_pf.c
··· 735 735 .ndo_set_vf_vlan = enetc_pf_set_vf_vlan, 736 736 .ndo_set_vf_spoofchk = enetc_pf_set_vf_spoofchk, 737 737 .ndo_set_features = enetc_pf_set_features, 738 - .ndo_do_ioctl = enetc_ioctl, 738 + .ndo_eth_ioctl = enetc_ioctl, 739 739 .ndo_setup_tc = enetc_setup_tc, 740 740 .ndo_bpf = enetc_setup_bpf, 741 741 .ndo_xdp_xmit = enetc_xdp_xmit,
+1 -1
drivers/net/ethernet/freescale/enetc/enetc_vf.c
··· 99 99 .ndo_get_stats = enetc_get_stats, 100 100 .ndo_set_mac_address = enetc_vf_set_mac_addr, 101 101 .ndo_set_features = enetc_vf_set_features, 102 - .ndo_do_ioctl = enetc_ioctl, 102 + .ndo_eth_ioctl = enetc_ioctl, 103 103 .ndo_setup_tc = enetc_setup_tc, 104 104 }; 105 105
+1 -1
drivers/net/ethernet/freescale/fec_main.c
··· 3280 3280 .ndo_validate_addr = eth_validate_addr, 3281 3281 .ndo_tx_timeout = fec_timeout, 3282 3282 .ndo_set_mac_address = fec_set_mac_address, 3283 - .ndo_do_ioctl = fec_enet_ioctl, 3283 + .ndo_eth_ioctl = fec_enet_ioctl, 3284 3284 #ifdef CONFIG_NET_POLL_CONTROLLER 3285 3285 .ndo_poll_controller = fec_poll_controller, 3286 3286 #endif
+1 -1
drivers/net/ethernet/freescale/fec_mpc52xx.c
··· 792 792 .ndo_set_rx_mode = mpc52xx_fec_set_multicast_list, 793 793 .ndo_set_mac_address = mpc52xx_fec_set_mac_address, 794 794 .ndo_validate_addr = eth_validate_addr, 795 - .ndo_do_ioctl = phy_do_ioctl, 795 + .ndo_eth_ioctl = phy_do_ioctl, 796 796 .ndo_tx_timeout = mpc52xx_fec_tx_timeout, 797 797 .ndo_get_stats = mpc52xx_fec_get_stats, 798 798 #ifdef CONFIG_NET_POLL_CONTROLLER
+1 -1
drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c
··· 900 900 .ndo_start_xmit = fs_enet_start_xmit, 901 901 .ndo_tx_timeout = fs_timeout, 902 902 .ndo_set_rx_mode = fs_set_multicast_list, 903 - .ndo_do_ioctl = phy_do_ioctl_running, 903 + .ndo_eth_ioctl = phy_do_ioctl_running, 904 904 .ndo_validate_addr = eth_validate_addr, 905 905 .ndo_set_mac_address = eth_mac_addr, 906 906 #ifdef CONFIG_NET_POLL_CONTROLLER
+1 -1
drivers/net/ethernet/freescale/gianfar.c
··· 3184 3184 .ndo_set_features = gfar_set_features, 3185 3185 .ndo_set_rx_mode = gfar_set_multi, 3186 3186 .ndo_tx_timeout = gfar_timeout, 3187 - .ndo_do_ioctl = gfar_ioctl, 3187 + .ndo_eth_ioctl = gfar_ioctl, 3188 3188 .ndo_get_stats64 = gfar_get_stats64, 3189 3189 .ndo_change_carrier = fixed_phy_change_carrier, 3190 3190 .ndo_set_mac_address = gfar_set_mac_addr,
+1 -1
drivers/net/ethernet/freescale/ucc_geth.c
··· 3516 3516 .ndo_set_mac_address = ucc_geth_set_mac_addr, 3517 3517 .ndo_set_rx_mode = ucc_geth_set_multi, 3518 3518 .ndo_tx_timeout = ucc_geth_timeout, 3519 - .ndo_do_ioctl = ucc_geth_ioctl, 3519 + .ndo_eth_ioctl = ucc_geth_ioctl, 3520 3520 #ifdef CONFIG_NET_POLL_CONTROLLER 3521 3521 .ndo_poll_controller = ucc_netpoll, 3522 3522 #endif
+1 -1
drivers/net/ethernet/hisilicon/hisi_femac.c
··· 685 685 .ndo_open = hisi_femac_net_open, 686 686 .ndo_stop = hisi_femac_net_close, 687 687 .ndo_start_xmit = hisi_femac_net_xmit, 688 - .ndo_do_ioctl = phy_do_ioctl_running, 688 + .ndo_eth_ioctl = phy_do_ioctl_running, 689 689 .ndo_set_mac_address = hisi_femac_set_mac_address, 690 690 .ndo_set_rx_mode = hisi_femac_net_set_rx_mode, 691 691 };
+1 -1
drivers/net/ethernet/hisilicon/hns/hns_enet.c
··· 1945 1945 .ndo_tx_timeout = hns_nic_net_timeout, 1946 1946 .ndo_set_mac_address = hns_nic_net_set_mac_address, 1947 1947 .ndo_change_mtu = hns_nic_change_mtu, 1948 - .ndo_do_ioctl = phy_do_ioctl_running, 1948 + .ndo_eth_ioctl = phy_do_ioctl_running, 1949 1949 .ndo_set_features = hns_nic_set_features, 1950 1950 .ndo_fix_features = hns_nic_fix_features, 1951 1951 .ndo_get_stats64 = hns_nic_get_stats64,
+1 -1
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
··· 2852 2852 .ndo_start_xmit = hns3_nic_net_xmit, 2853 2853 .ndo_tx_timeout = hns3_nic_net_timeout, 2854 2854 .ndo_set_mac_address = hns3_nic_net_set_mac_address, 2855 - .ndo_do_ioctl = hns3_nic_do_ioctl, 2855 + .ndo_eth_ioctl = hns3_nic_do_ioctl, 2856 2856 .ndo_change_mtu = hns3_nic_change_mtu, 2857 2857 .ndo_set_features = hns3_nic_set_features, 2858 2858 .ndo_features_check = hns3_features_check,
+2 -2
drivers/net/ethernet/ibm/emac/core.c
··· 3011 3011 .ndo_stop = emac_close, 3012 3012 .ndo_get_stats = emac_stats, 3013 3013 .ndo_set_rx_mode = emac_set_multicast_list, 3014 - .ndo_do_ioctl = emac_ioctl, 3014 + .ndo_eth_ioctl = emac_ioctl, 3015 3015 .ndo_tx_timeout = emac_tx_timeout, 3016 3016 .ndo_validate_addr = eth_validate_addr, 3017 3017 .ndo_set_mac_address = emac_set_mac_address, ··· 3023 3023 .ndo_stop = emac_close, 3024 3024 .ndo_get_stats = emac_stats, 3025 3025 .ndo_set_rx_mode = emac_set_multicast_list, 3026 - .ndo_do_ioctl = emac_ioctl, 3026 + .ndo_eth_ioctl = emac_ioctl, 3027 3027 .ndo_tx_timeout = emac_tx_timeout, 3028 3028 .ndo_validate_addr = eth_validate_addr, 3029 3029 .ndo_set_mac_address = emac_set_mac_address,
+1 -1
drivers/net/ethernet/ibm/ibmveth.c
··· 1630 1630 .ndo_stop = ibmveth_close, 1631 1631 .ndo_start_xmit = ibmveth_start_xmit, 1632 1632 .ndo_set_rx_mode = ibmveth_set_multicast_list, 1633 - .ndo_do_ioctl = ibmveth_ioctl, 1633 + .ndo_eth_ioctl = ibmveth_ioctl, 1634 1634 .ndo_change_mtu = ibmveth_change_mtu, 1635 1635 .ndo_fix_features = ibmveth_fix_features, 1636 1636 .ndo_set_features = ibmveth_set_features,
+1 -1
drivers/net/ethernet/intel/e100.c
··· 2809 2809 .ndo_validate_addr = eth_validate_addr, 2810 2810 .ndo_set_rx_mode = e100_set_multicast_list, 2811 2811 .ndo_set_mac_address = e100_set_mac_address, 2812 - .ndo_do_ioctl = e100_do_ioctl, 2812 + .ndo_eth_ioctl = e100_do_ioctl, 2813 2813 .ndo_tx_timeout = e100_tx_timeout, 2814 2814 #ifdef CONFIG_NET_POLL_CONTROLLER 2815 2815 .ndo_poll_controller = e100_netpoll,
+1 -1
drivers/net/ethernet/intel/e1000/e1000_main.c
··· 832 832 .ndo_set_mac_address = e1000_set_mac, 833 833 .ndo_tx_timeout = e1000_tx_timeout, 834 834 .ndo_change_mtu = e1000_change_mtu, 835 - .ndo_do_ioctl = e1000_ioctl, 835 + .ndo_eth_ioctl = e1000_ioctl, 836 836 .ndo_validate_addr = eth_validate_addr, 837 837 .ndo_vlan_rx_add_vid = e1000_vlan_rx_add_vid, 838 838 .ndo_vlan_rx_kill_vid = e1000_vlan_rx_kill_vid,
+1 -1
drivers/net/ethernet/intel/e1000e/netdev.c
··· 7354 7354 .ndo_set_rx_mode = e1000e_set_rx_mode, 7355 7355 .ndo_set_mac_address = e1000_set_mac, 7356 7356 .ndo_change_mtu = e1000_change_mtu, 7357 - .ndo_do_ioctl = e1000_ioctl, 7357 + .ndo_eth_ioctl = e1000_ioctl, 7358 7358 .ndo_tx_timeout = e1000_tx_timeout, 7359 7359 .ndo_validate_addr = eth_validate_addr, 7360 7360
+1 -1
drivers/net/ethernet/intel/i40e/i40e_main.c
··· 13256 13256 .ndo_validate_addr = eth_validate_addr, 13257 13257 .ndo_set_mac_address = i40e_set_mac, 13258 13258 .ndo_change_mtu = i40e_change_mtu, 13259 - .ndo_do_ioctl = i40e_ioctl, 13259 + .ndo_eth_ioctl = i40e_ioctl, 13260 13260 .ndo_tx_timeout = i40e_tx_timeout, 13261 13261 .ndo_vlan_rx_add_vid = i40e_vlan_rx_add_vid, 13262 13262 .ndo_vlan_rx_kill_vid = i40e_vlan_rx_kill_vid,
+3 -3
drivers/net/ethernet/intel/ice/ice_main.c
··· 6558 6558 } 6559 6559 6560 6560 /** 6561 - * ice_do_ioctl - Access the hwtstamp interface 6561 + * ice_eth_ioctl - Access the hwtstamp interface 6562 6562 * @netdev: network interface device structure 6563 6563 * @ifr: interface request data 6564 6564 * @cmd: ioctl command 6565 6565 */ 6566 - static int ice_do_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd) 6566 + static int ice_eth_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd) 6567 6567 { 6568 6568 struct ice_netdev_priv *np = netdev_priv(netdev); 6569 6569 struct ice_pf *pf = np->vsi->back; ··· 7229 7229 .ndo_change_mtu = ice_change_mtu, 7230 7230 .ndo_get_stats64 = ice_get_stats64, 7231 7231 .ndo_set_tx_maxrate = ice_set_tx_maxrate, 7232 - .ndo_do_ioctl = ice_do_ioctl, 7232 + .ndo_eth_ioctl = ice_eth_ioctl, 7233 7233 .ndo_set_vf_spoofchk = ice_set_vf_spoofchk, 7234 7234 .ndo_set_vf_mac = ice_set_vf_mac, 7235 7235 .ndo_get_vf_config = ice_get_vf_cfg,
+1 -1
drivers/net/ethernet/intel/igb/igb_main.c
··· 2991 2991 .ndo_set_rx_mode = igb_set_rx_mode, 2992 2992 .ndo_set_mac_address = igb_set_mac, 2993 2993 .ndo_change_mtu = igb_change_mtu, 2994 - .ndo_do_ioctl = igb_ioctl, 2994 + .ndo_eth_ioctl = igb_ioctl, 2995 2995 .ndo_tx_timeout = igb_tx_timeout, 2996 2996 .ndo_validate_addr = eth_validate_addr, 2997 2997 .ndo_vlan_rx_add_vid = igb_vlan_rx_add_vid,
+1 -1
drivers/net/ethernet/intel/igbvf/netdev.c
··· 2657 2657 .ndo_set_rx_mode = igbvf_set_rx_mode, 2658 2658 .ndo_set_mac_address = igbvf_set_mac, 2659 2659 .ndo_change_mtu = igbvf_change_mtu, 2660 - .ndo_do_ioctl = igbvf_ioctl, 2660 + .ndo_eth_ioctl = igbvf_ioctl, 2661 2661 .ndo_tx_timeout = igbvf_tx_timeout, 2662 2662 .ndo_vlan_rx_add_vid = igbvf_vlan_rx_add_vid, 2663 2663 .ndo_vlan_rx_kill_vid = igbvf_vlan_rx_kill_vid,
+1 -1
drivers/net/ethernet/intel/igc/igc_main.c
··· 6013 6013 .ndo_fix_features = igc_fix_features, 6014 6014 .ndo_set_features = igc_set_features, 6015 6015 .ndo_features_check = igc_features_check, 6016 - .ndo_do_ioctl = igc_ioctl, 6016 + .ndo_eth_ioctl = igc_ioctl, 6017 6017 .ndo_setup_tc = igc_setup_tc, 6018 6018 .ndo_bpf = igc_bpf, 6019 6019 .ndo_xdp_xmit = igc_xdp_xmit,
+1 -1
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
··· 10247 10247 .ndo_set_tx_maxrate = ixgbe_tx_maxrate, 10248 10248 .ndo_vlan_rx_add_vid = ixgbe_vlan_rx_add_vid, 10249 10249 .ndo_vlan_rx_kill_vid = ixgbe_vlan_rx_kill_vid, 10250 - .ndo_do_ioctl = ixgbe_ioctl, 10250 + .ndo_eth_ioctl = ixgbe_ioctl, 10251 10251 .ndo_set_vf_mac = ixgbe_ndo_set_vf_mac, 10252 10252 .ndo_set_vf_vlan = ixgbe_ndo_set_vf_vlan, 10253 10253 .ndo_set_vf_rate = ixgbe_ndo_set_vf_bw,
+1 -1
drivers/net/ethernet/jme.c
··· 2901 2901 .ndo_open = jme_open, 2902 2902 .ndo_stop = jme_close, 2903 2903 .ndo_validate_addr = eth_validate_addr, 2904 - .ndo_do_ioctl = jme_ioctl, 2904 + .ndo_eth_ioctl = jme_ioctl, 2905 2905 .ndo_start_xmit = jme_start_xmit, 2906 2906 .ndo_set_mac_address = jme_set_macaddr, 2907 2907 .ndo_set_rx_mode = jme_set_multi,
+1 -1
drivers/net/ethernet/korina.c
··· 1272 1272 .ndo_start_xmit = korina_send_packet, 1273 1273 .ndo_set_rx_mode = korina_multicast_list, 1274 1274 .ndo_tx_timeout = korina_tx_timeout, 1275 - .ndo_do_ioctl = korina_ioctl, 1275 + .ndo_eth_ioctl = korina_ioctl, 1276 1276 .ndo_validate_addr = eth_validate_addr, 1277 1277 .ndo_set_mac_address = eth_mac_addr, 1278 1278 #ifdef CONFIG_NET_POLL_CONTROLLER
+1 -1
drivers/net/ethernet/lantiq_etop.c
··· 609 609 .ndo_stop = ltq_etop_stop, 610 610 .ndo_start_xmit = ltq_etop_tx, 611 611 .ndo_change_mtu = ltq_etop_change_mtu, 612 - .ndo_do_ioctl = phy_do_ioctl, 612 + .ndo_eth_ioctl = phy_do_ioctl, 613 613 .ndo_set_mac_address = ltq_etop_set_mac_address, 614 614 .ndo_validate_addr = eth_validate_addr, 615 615 .ndo_set_rx_mode = ltq_etop_set_multicast_list,
+1 -1
drivers/net/ethernet/marvell/mv643xx_eth.c
··· 3060 3060 .ndo_set_rx_mode = mv643xx_eth_set_rx_mode, 3061 3061 .ndo_set_mac_address = mv643xx_eth_set_mac_address, 3062 3062 .ndo_validate_addr = eth_validate_addr, 3063 - .ndo_do_ioctl = mv643xx_eth_ioctl, 3063 + .ndo_eth_ioctl = mv643xx_eth_ioctl, 3064 3064 .ndo_change_mtu = mv643xx_eth_change_mtu, 3065 3065 .ndo_set_features = mv643xx_eth_set_features, 3066 3066 .ndo_tx_timeout = mv643xx_eth_tx_timeout,
+1 -1
drivers/net/ethernet/marvell/mvneta.c
··· 4994 4994 .ndo_change_mtu = mvneta_change_mtu, 4995 4995 .ndo_fix_features = mvneta_fix_features, 4996 4996 .ndo_get_stats64 = mvneta_get_stats64, 4997 - .ndo_do_ioctl = mvneta_ioctl, 4997 + .ndo_eth_ioctl = mvneta_ioctl, 4998 4998 .ndo_bpf = mvneta_xdp, 4999 4999 .ndo_xdp_xmit = mvneta_xdp_xmit, 5000 5000 .ndo_setup_tc = mvneta_setup_tc,
+1 -1
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
··· 5702 5702 .ndo_set_mac_address = mvpp2_set_mac_address, 5703 5703 .ndo_change_mtu = mvpp2_change_mtu, 5704 5704 .ndo_get_stats64 = mvpp2_get_stats64, 5705 - .ndo_do_ioctl = mvpp2_ioctl, 5705 + .ndo_eth_ioctl = mvpp2_ioctl, 5706 5706 .ndo_vlan_rx_add_vid = mvpp2_vlan_rx_add_vid, 5707 5707 .ndo_vlan_rx_kill_vid = mvpp2_vlan_rx_kill_vid, 5708 5708 .ndo_set_features = mvpp2_set_features,
+1 -1
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c
··· 2326 2326 .ndo_set_features = otx2_set_features, 2327 2327 .ndo_tx_timeout = otx2_tx_timeout, 2328 2328 .ndo_get_stats64 = otx2_get_stats64, 2329 - .ndo_do_ioctl = otx2_ioctl, 2329 + .ndo_eth_ioctl = otx2_ioctl, 2330 2330 .ndo_set_vf_mac = otx2_set_vf_mac, 2331 2331 .ndo_set_vf_vlan = otx2_set_vf_vlan, 2332 2332 .ndo_get_vf_config = otx2_get_vf_config,
+1 -1
drivers/net/ethernet/marvell/pxa168_eth.c
··· 1377 1377 .ndo_set_rx_mode = pxa168_eth_set_rx_mode, 1378 1378 .ndo_set_mac_address = pxa168_eth_set_mac_address, 1379 1379 .ndo_validate_addr = eth_validate_addr, 1380 - .ndo_do_ioctl = phy_do_ioctl, 1380 + .ndo_eth_ioctl = phy_do_ioctl, 1381 1381 .ndo_change_mtu = pxa168_eth_change_mtu, 1382 1382 .ndo_tx_timeout = pxa168_eth_tx_timeout, 1383 1383 #ifdef CONFIG_NET_POLL_CONTROLLER
+1 -1
drivers/net/ethernet/marvell/skge.c
··· 3787 3787 .ndo_open = skge_up, 3788 3788 .ndo_stop = skge_down, 3789 3789 .ndo_start_xmit = skge_xmit_frame, 3790 - .ndo_do_ioctl = skge_ioctl, 3790 + .ndo_eth_ioctl = skge_ioctl, 3791 3791 .ndo_get_stats = skge_get_stats, 3792 3792 .ndo_tx_timeout = skge_tx_timeout, 3793 3793 .ndo_change_mtu = skge_change_mtu,
+2 -2
drivers/net/ethernet/marvell/sky2.c
··· 4693 4693 .ndo_open = sky2_open, 4694 4694 .ndo_stop = sky2_close, 4695 4695 .ndo_start_xmit = sky2_xmit_frame, 4696 - .ndo_do_ioctl = sky2_ioctl, 4696 + .ndo_eth_ioctl = sky2_ioctl, 4697 4697 .ndo_validate_addr = eth_validate_addr, 4698 4698 .ndo_set_mac_address = sky2_set_mac_address, 4699 4699 .ndo_set_rx_mode = sky2_set_multicast, ··· 4710 4710 .ndo_open = sky2_open, 4711 4711 .ndo_stop = sky2_close, 4712 4712 .ndo_start_xmit = sky2_xmit_frame, 4713 - .ndo_do_ioctl = sky2_ioctl, 4713 + .ndo_eth_ioctl = sky2_ioctl, 4714 4714 .ndo_validate_addr = eth_validate_addr, 4715 4715 .ndo_set_mac_address = sky2_set_mac_address, 4716 4716 .ndo_set_rx_mode = sky2_set_multicast,
+1 -1
drivers/net/ethernet/mediatek/mtk_eth_soc.c
··· 2933 2933 .ndo_start_xmit = mtk_start_xmit, 2934 2934 .ndo_set_mac_address = mtk_set_mac_address, 2935 2935 .ndo_validate_addr = eth_validate_addr, 2936 - .ndo_do_ioctl = mtk_do_ioctl, 2936 + .ndo_eth_ioctl = mtk_do_ioctl, 2937 2937 .ndo_change_mtu = mtk_change_mtu, 2938 2938 .ndo_tx_timeout = mtk_tx_timeout, 2939 2939 .ndo_get_stats64 = mtk_get_stats64,
+1 -1
drivers/net/ethernet/mediatek/mtk_star_emac.c
··· 1162 1162 .ndo_start_xmit = mtk_star_netdev_start_xmit, 1163 1163 .ndo_get_stats64 = mtk_star_netdev_get_stats64, 1164 1164 .ndo_set_rx_mode = mtk_star_set_rx_mode, 1165 - .ndo_do_ioctl = mtk_star_netdev_ioctl, 1165 + .ndo_eth_ioctl = mtk_star_netdev_ioctl, 1166 1166 .ndo_set_mac_address = eth_mac_addr, 1167 1167 .ndo_validate_addr = eth_validate_addr, 1168 1168 };
+1 -1
drivers/net/ethernet/mellanox/mlx4/en_netdev.c
··· 2828 2828 .ndo_set_mac_address = mlx4_en_set_mac, 2829 2829 .ndo_validate_addr = eth_validate_addr, 2830 2830 .ndo_change_mtu = mlx4_en_change_mtu, 2831 - .ndo_do_ioctl = mlx4_en_ioctl, 2831 + .ndo_eth_ioctl = mlx4_en_ioctl, 2832 2832 .ndo_tx_timeout = mlx4_en_tx_timeout, 2833 2833 .ndo_vlan_rx_add_vid = mlx4_en_vlan_rx_add_vid, 2834 2834 .ndo_vlan_rx_kill_vid = mlx4_en_vlan_rx_kill_vid,
+1 -1
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
··· 4417 4417 .ndo_set_features = mlx5e_set_features, 4418 4418 .ndo_fix_features = mlx5e_fix_features, 4419 4419 .ndo_change_mtu = mlx5e_change_nic_mtu, 4420 - .ndo_do_ioctl = mlx5e_ioctl, 4420 + .ndo_eth_ioctl = mlx5e_ioctl, 4421 4421 .ndo_set_tx_maxrate = mlx5e_set_tx_maxrate, 4422 4422 .ndo_features_check = mlx5e_features_check, 4423 4423 .ndo_tx_timeout = mlx5e_tx_timeout,
+1 -1
drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c
··· 50 50 .ndo_init = mlx5i_dev_init, 51 51 .ndo_uninit = mlx5i_dev_cleanup, 52 52 .ndo_change_mtu = mlx5i_change_mtu, 53 - .ndo_do_ioctl = mlx5i_ioctl, 53 + .ndo_eth_ioctl = mlx5i_ioctl, 54 54 }; 55 55 56 56 /* IPoIB mlx5 netdev profile */
+1 -1
drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib_vlan.c
··· 149 149 .ndo_get_stats64 = mlx5i_get_stats, 150 150 .ndo_uninit = mlx5i_pkey_dev_cleanup, 151 151 .ndo_change_mtu = mlx5i_pkey_change_mtu, 152 - .ndo_do_ioctl = mlx5i_pkey_ioctl, 152 + .ndo_eth_ioctl = mlx5i_pkey_ioctl, 153 153 }; 154 154 155 155 /* Child NDOs */
+2 -2
drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_main.c
··· 199 199 return 0; 200 200 } 201 201 202 - static int mlxbf_gige_do_ioctl(struct net_device *netdev, 202 + static int mlxbf_gige_eth_ioctl(struct net_device *netdev, 203 203 struct ifreq *ifr, int cmd) 204 204 { 205 205 if (!(netif_running(netdev))) ··· 253 253 .ndo_start_xmit = mlxbf_gige_start_xmit, 254 254 .ndo_set_mac_address = eth_mac_addr, 255 255 .ndo_validate_addr = eth_validate_addr, 256 - .ndo_do_ioctl = mlxbf_gige_do_ioctl, 256 + .ndo_eth_ioctl = mlxbf_gige_eth_ioctl, 257 257 .ndo_set_rx_mode = mlxbf_gige_set_rx_mode, 258 258 .ndo_get_stats64 = mlxbf_gige_get_stats64, 259 259 };
+1 -1
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
··· 1207 1207 .ndo_vlan_rx_kill_vid = mlxsw_sp_port_kill_vid, 1208 1208 .ndo_set_features = mlxsw_sp_set_features, 1209 1209 .ndo_get_devlink_port = mlxsw_sp_port_get_devlink_port, 1210 - .ndo_do_ioctl = mlxsw_sp_port_ioctl, 1210 + .ndo_eth_ioctl = mlxsw_sp_port_ioctl, 1211 1211 }; 1212 1212 1213 1213 static int
+1 -1
drivers/net/ethernet/micrel/ks8851_common.c
··· 689 689 static const struct net_device_ops ks8851_netdev_ops = { 690 690 .ndo_open = ks8851_net_open, 691 691 .ndo_stop = ks8851_net_stop, 692 - .ndo_do_ioctl = ks8851_net_ioctl, 692 + .ndo_eth_ioctl = ks8851_net_ioctl, 693 693 .ndo_start_xmit = ks8851_start_xmit, 694 694 .ndo_set_mac_address = ks8851_set_mac_address, 695 695 .ndo_set_rx_mode = ks8851_set_rx_mode,
+1 -1
drivers/net/ethernet/micrel/ksz884x.c
··· 6738 6738 .ndo_set_features = netdev_set_features, 6739 6739 .ndo_set_mac_address = netdev_set_mac_address, 6740 6740 .ndo_validate_addr = eth_validate_addr, 6741 - .ndo_do_ioctl = netdev_ioctl, 6741 + .ndo_eth_ioctl = netdev_ioctl, 6742 6742 .ndo_set_rx_mode = netdev_set_rx_mode, 6743 6743 #ifdef CONFIG_NET_POLL_CONTROLLER 6744 6744 .ndo_poll_controller = netdev_netpoll,
+1 -1
drivers/net/ethernet/microchip/lan743x_main.c
··· 2655 2655 .ndo_open = lan743x_netdev_open, 2656 2656 .ndo_stop = lan743x_netdev_close, 2657 2657 .ndo_start_xmit = lan743x_netdev_xmit_frame, 2658 - .ndo_do_ioctl = lan743x_netdev_ioctl, 2658 + .ndo_eth_ioctl = lan743x_netdev_ioctl, 2659 2659 .ndo_set_rx_mode = lan743x_netdev_set_multicast, 2660 2660 .ndo_change_mtu = lan743x_netdev_change_mtu, 2661 2661 .ndo_get_stats64 = lan743x_netdev_get_stats64,
+1 -1
drivers/net/ethernet/mscc/ocelot_net.c
··· 823 823 .ndo_vlan_rx_kill_vid = ocelot_vlan_rx_kill_vid, 824 824 .ndo_set_features = ocelot_set_features, 825 825 .ndo_setup_tc = ocelot_setup_tc, 826 - .ndo_do_ioctl = ocelot_ioctl, 826 + .ndo_eth_ioctl = ocelot_ioctl, 827 827 .ndo_get_devlink_port = ocelot_get_devlink_port, 828 828 }; 829 829
+1 -1
drivers/net/ethernet/natsemi/natsemi.c
··· 790 790 .ndo_get_stats = get_stats, 791 791 .ndo_set_rx_mode = set_rx_mode, 792 792 .ndo_change_mtu = natsemi_change_mtu, 793 - .ndo_do_ioctl = netdev_ioctl, 793 + .ndo_eth_ioctl = netdev_ioctl, 794 794 .ndo_tx_timeout = ns_tx_timeout, 795 795 .ndo_set_mac_address = eth_mac_addr, 796 796 .ndo_validate_addr = eth_validate_addr,
+1 -1
drivers/net/ethernet/neterion/s2io.c
··· 7625 7625 .ndo_start_xmit = s2io_xmit, 7626 7626 .ndo_validate_addr = eth_validate_addr, 7627 7627 .ndo_set_rx_mode = s2io_ndo_set_multicast, 7628 - .ndo_do_ioctl = s2io_ioctl, 7628 + .ndo_eth_ioctl = s2io_ioctl, 7629 7629 .ndo_set_mac_address = s2io_set_mac_addr, 7630 7630 .ndo_change_mtu = s2io_change_mtu, 7631 7631 .ndo_set_features = s2io_set_features,
+1 -1
drivers/net/ethernet/neterion/vxge/vxge-main.c
··· 3339 3339 .ndo_start_xmit = vxge_xmit, 3340 3340 .ndo_validate_addr = eth_validate_addr, 3341 3341 .ndo_set_rx_mode = vxge_set_multicast, 3342 - .ndo_do_ioctl = vxge_ioctl, 3342 + .ndo_eth_ioctl = vxge_ioctl, 3343 3343 .ndo_set_mac_address = vxge_set_mac_addr, 3344 3344 .ndo_change_mtu = vxge_change_mtu, 3345 3345 .ndo_fix_features = vxge_fix_features,
+1 -1
drivers/net/ethernet/nxp/lpc_eth.c
··· 1219 1219 .ndo_stop = lpc_eth_close, 1220 1220 .ndo_start_xmit = lpc_eth_hard_start_xmit, 1221 1221 .ndo_set_rx_mode = lpc_eth_set_multicast_list, 1222 - .ndo_do_ioctl = phy_do_ioctl_running, 1222 + .ndo_eth_ioctl = phy_do_ioctl_running, 1223 1223 .ndo_set_mac_address = lpc_set_mac_address, 1224 1224 .ndo_validate_addr = eth_validate_addr, 1225 1225 };
+1 -1
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c
··· 2333 2333 .ndo_tx_timeout = pch_gbe_tx_timeout, 2334 2334 .ndo_change_mtu = pch_gbe_change_mtu, 2335 2335 .ndo_set_features = pch_gbe_set_features, 2336 - .ndo_do_ioctl = pch_gbe_ioctl, 2336 + .ndo_eth_ioctl = pch_gbe_ioctl, 2337 2337 .ndo_set_rx_mode = pch_gbe_set_multi, 2338 2338 #ifdef CONFIG_NET_POLL_CONTROLLER 2339 2339 .ndo_poll_controller = pch_gbe_netpoll,
+1 -1
drivers/net/ethernet/packetengines/hamachi.c
··· 573 573 .ndo_validate_addr = eth_validate_addr, 574 574 .ndo_set_mac_address = eth_mac_addr, 575 575 .ndo_tx_timeout = hamachi_tx_timeout, 576 - .ndo_do_ioctl = hamachi_ioctl, 576 + .ndo_eth_ioctl = hamachi_ioctl, 577 577 .ndo_siocdevprivate = hamachi_siocdevprivate, 578 578 }; 579 579
+1 -1
drivers/net/ethernet/packetengines/yellowfin.c
··· 362 362 .ndo_set_rx_mode = set_rx_mode, 363 363 .ndo_validate_addr = eth_validate_addr, 364 364 .ndo_set_mac_address = eth_mac_addr, 365 - .ndo_do_ioctl = netdev_ioctl, 365 + .ndo_eth_ioctl = netdev_ioctl, 366 366 .ndo_tx_timeout = yellowfin_tx_timeout, 367 367 }; 368 368
+2 -2
drivers/net/ethernet/pensando/ionic/ionic_lif.c
··· 2264 2264 return 0; 2265 2265 } 2266 2266 2267 - static int ionic_do_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd) 2267 + static int ionic_eth_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd) 2268 2268 { 2269 2269 struct ionic_lif *lif = netdev_priv(netdev); 2270 2270 ··· 2526 2526 static const struct net_device_ops ionic_netdev_ops = { 2527 2527 .ndo_open = ionic_open, 2528 2528 .ndo_stop = ionic_stop, 2529 - .ndo_do_ioctl = ionic_do_ioctl, 2529 + .ndo_eth_ioctl = ionic_eth_ioctl, 2530 2530 .ndo_start_xmit = ionic_start_xmit, 2531 2531 .ndo_get_stats64 = ionic_get_stats64, 2532 2532 .ndo_set_rx_mode = ionic_ndo_set_rx_mode,
+1 -1
drivers/net/ethernet/qlogic/qede/qede_main.c
··· 644 644 .ndo_set_mac_address = qede_set_mac_addr, 645 645 .ndo_validate_addr = eth_validate_addr, 646 646 .ndo_change_mtu = qede_change_mtu, 647 - .ndo_do_ioctl = qede_ioctl, 647 + .ndo_eth_ioctl = qede_ioctl, 648 648 .ndo_tx_timeout = qede_tx_timeout, 649 649 #ifdef CONFIG_QED_SRIOV 650 650 .ndo_set_vf_mac = qede_set_vf_mac,
+1 -1
drivers/net/ethernet/qualcomm/emac/emac.c
··· 377 377 .ndo_start_xmit = emac_start_xmit, 378 378 .ndo_set_mac_address = eth_mac_addr, 379 379 .ndo_change_mtu = emac_change_mtu, 380 - .ndo_do_ioctl = phy_do_ioctl_running, 380 + .ndo_eth_ioctl = phy_do_ioctl_running, 381 381 .ndo_tx_timeout = emac_tx_timeout, 382 382 .ndo_get_stats64 = emac_get_stats64, 383 383 .ndo_set_features = emac_set_features,
+1 -1
drivers/net/ethernet/rdc/r6040.c
··· 954 954 .ndo_set_rx_mode = r6040_multicast_list, 955 955 .ndo_validate_addr = eth_validate_addr, 956 956 .ndo_set_mac_address = eth_mac_addr, 957 - .ndo_do_ioctl = phy_do_ioctl, 957 + .ndo_eth_ioctl = phy_do_ioctl, 958 958 .ndo_tx_timeout = r6040_tx_timeout, 959 959 #ifdef CONFIG_NET_POLL_CONTROLLER 960 960 .ndo_poll_controller = r6040_poll_controller,
+1 -1
drivers/net/ethernet/realtek/8139cp.c
··· 1869 1869 .ndo_set_mac_address = cp_set_mac_address, 1870 1870 .ndo_set_rx_mode = cp_set_rx_mode, 1871 1871 .ndo_get_stats = cp_get_stats, 1872 - .ndo_do_ioctl = cp_ioctl, 1872 + .ndo_eth_ioctl = cp_ioctl, 1873 1873 .ndo_start_xmit = cp_start_xmit, 1874 1874 .ndo_tx_timeout = cp_tx_timeout, 1875 1875 .ndo_set_features = cp_set_features,
+1 -1
drivers/net/ethernet/realtek/8139too.c
··· 932 932 .ndo_set_mac_address = rtl8139_set_mac_address, 933 933 .ndo_start_xmit = rtl8139_start_xmit, 934 934 .ndo_set_rx_mode = rtl8139_set_rx_mode, 935 - .ndo_do_ioctl = netdev_ioctl, 935 + .ndo_eth_ioctl = netdev_ioctl, 936 936 .ndo_tx_timeout = rtl8139_tx_timeout, 937 937 #ifdef CONFIG_NET_POLL_CONTROLLER 938 938 .ndo_poll_controller = rtl8139_poll_controller,
+1 -1
drivers/net/ethernet/realtek/r8169_main.c
··· 4979 4979 .ndo_fix_features = rtl8169_fix_features, 4980 4980 .ndo_set_features = rtl8169_set_features, 4981 4981 .ndo_set_mac_address = rtl_set_mac_address, 4982 - .ndo_do_ioctl = phy_do_ioctl_running, 4982 + .ndo_eth_ioctl = phy_do_ioctl_running, 4983 4983 .ndo_set_rx_mode = rtl_set_rx_mode, 4984 4984 #ifdef CONFIG_NET_POLL_CONTROLLER 4985 4985 .ndo_poll_controller = rtl8169_netpoll,
+1 -1
drivers/net/ethernet/renesas/ravb_main.c
··· 1872 1872 .ndo_get_stats = ravb_get_stats, 1873 1873 .ndo_set_rx_mode = ravb_set_rx_mode, 1874 1874 .ndo_tx_timeout = ravb_tx_timeout, 1875 - .ndo_do_ioctl = ravb_do_ioctl, 1875 + .ndo_eth_ioctl = ravb_do_ioctl, 1876 1876 .ndo_change_mtu = ravb_change_mtu, 1877 1877 .ndo_validate_addr = eth_validate_addr, 1878 1878 .ndo_set_mac_address = eth_mac_addr,
+2 -2
drivers/net/ethernet/renesas/sh_eth.c
··· 3141 3141 .ndo_get_stats = sh_eth_get_stats, 3142 3142 .ndo_set_rx_mode = sh_eth_set_rx_mode, 3143 3143 .ndo_tx_timeout = sh_eth_tx_timeout, 3144 - .ndo_do_ioctl = phy_do_ioctl_running, 3144 + .ndo_eth_ioctl = phy_do_ioctl_running, 3145 3145 .ndo_change_mtu = sh_eth_change_mtu, 3146 3146 .ndo_validate_addr = eth_validate_addr, 3147 3147 .ndo_set_mac_address = eth_mac_addr, ··· 3157 3157 .ndo_vlan_rx_add_vid = sh_eth_vlan_rx_add_vid, 3158 3158 .ndo_vlan_rx_kill_vid = sh_eth_vlan_rx_kill_vid, 3159 3159 .ndo_tx_timeout = sh_eth_tx_timeout, 3160 - .ndo_do_ioctl = phy_do_ioctl_running, 3160 + .ndo_eth_ioctl = phy_do_ioctl_running, 3161 3161 .ndo_change_mtu = sh_eth_change_mtu, 3162 3162 .ndo_validate_addr = eth_validate_addr, 3163 3163 .ndo_set_mac_address = eth_mac_addr,
+1 -1
drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c
··· 1964 1964 .ndo_set_features = sxgbe_set_features, 1965 1965 .ndo_set_rx_mode = sxgbe_set_rx_mode, 1966 1966 .ndo_tx_timeout = sxgbe_tx_timeout, 1967 - .ndo_do_ioctl = sxgbe_ioctl, 1967 + .ndo_eth_ioctl = sxgbe_ioctl, 1968 1968 #ifdef CONFIG_NET_POLL_CONTROLLER 1969 1969 .ndo_poll_controller = sxgbe_poll_controller, 1970 1970 #endif
+1 -1
drivers/net/ethernet/sfc/efx.c
··· 591 591 .ndo_tx_timeout = efx_watchdog, 592 592 .ndo_start_xmit = efx_hard_start_xmit, 593 593 .ndo_validate_addr = eth_validate_addr, 594 - .ndo_do_ioctl = efx_ioctl, 594 + .ndo_eth_ioctl = efx_ioctl, 595 595 .ndo_change_mtu = efx_change_mtu, 596 596 .ndo_set_mac_address = efx_set_mac_address, 597 597 .ndo_set_rx_mode = efx_set_rx_mode,
+1 -1
drivers/net/ethernet/sfc/falcon/efx.c
··· 2219 2219 .ndo_tx_timeout = ef4_watchdog, 2220 2220 .ndo_start_xmit = ef4_hard_start_xmit, 2221 2221 .ndo_validate_addr = eth_validate_addr, 2222 - .ndo_do_ioctl = ef4_ioctl, 2222 + .ndo_eth_ioctl = ef4_ioctl, 2223 2223 .ndo_change_mtu = ef4_change_mtu, 2224 2224 .ndo_set_mac_address = ef4_set_mac_address, 2225 2225 .ndo_set_rx_mode = ef4_set_rx_mode,
+1 -1
drivers/net/ethernet/sgi/ioc3-eth.c
··· 820 820 .ndo_tx_timeout = ioc3_timeout, 821 821 .ndo_get_stats = ioc3_get_stats, 822 822 .ndo_set_rx_mode = ioc3_set_multicast_list, 823 - .ndo_do_ioctl = ioc3_ioctl, 823 + .ndo_eth_ioctl = ioc3_ioctl, 824 824 .ndo_validate_addr = eth_validate_addr, 825 825 .ndo_set_mac_address = ioc3_set_mac_address, 826 826 };
+1 -1
drivers/net/ethernet/sgi/meth.c
··· 812 812 .ndo_open = meth_open, 813 813 .ndo_stop = meth_release, 814 814 .ndo_start_xmit = meth_tx, 815 - .ndo_do_ioctl = meth_ioctl, 815 + .ndo_eth_ioctl = meth_ioctl, 816 816 .ndo_tx_timeout = meth_tx_timeout, 817 817 .ndo_validate_addr = eth_validate_addr, 818 818 .ndo_set_mac_address = eth_mac_addr,
+1 -1
drivers/net/ethernet/sis/sis190.c
··· 1841 1841 static const struct net_device_ops sis190_netdev_ops = { 1842 1842 .ndo_open = sis190_open, 1843 1843 .ndo_stop = sis190_close, 1844 - .ndo_do_ioctl = sis190_ioctl, 1844 + .ndo_eth_ioctl = sis190_ioctl, 1845 1845 .ndo_start_xmit = sis190_start_xmit, 1846 1846 .ndo_tx_timeout = sis190_tx_timeout, 1847 1847 .ndo_set_rx_mode = sis190_set_rx_mode,
+1 -1
drivers/net/ethernet/sis/sis900.c
··· 404 404 .ndo_set_rx_mode = set_rx_mode, 405 405 .ndo_validate_addr = eth_validate_addr, 406 406 .ndo_set_mac_address = eth_mac_addr, 407 - .ndo_do_ioctl = mii_ioctl, 407 + .ndo_eth_ioctl = mii_ioctl, 408 408 .ndo_tx_timeout = sis900_tx_timeout, 409 409 #ifdef CONFIG_NET_POLL_CONTROLLER 410 410 .ndo_poll_controller = sis900_poll,
+1 -1
drivers/net/ethernet/smsc/epic100.c
··· 312 312 .ndo_tx_timeout = epic_tx_timeout, 313 313 .ndo_get_stats = epic_get_stats, 314 314 .ndo_set_rx_mode = set_rx_mode, 315 - .ndo_do_ioctl = netdev_ioctl, 315 + .ndo_eth_ioctl = netdev_ioctl, 316 316 .ndo_set_mac_address = eth_mac_addr, 317 317 .ndo_validate_addr = eth_validate_addr, 318 318 };
+1 -1
drivers/net/ethernet/smsc/smc91c92_cs.c
··· 294 294 .ndo_tx_timeout = smc_tx_timeout, 295 295 .ndo_set_config = s9k_config, 296 296 .ndo_set_rx_mode = set_rx_mode, 297 - .ndo_do_ioctl = smc_ioctl, 297 + .ndo_eth_ioctl = smc_ioctl, 298 298 .ndo_set_mac_address = eth_mac_addr, 299 299 .ndo_validate_addr = eth_validate_addr, 300 300 };
+1 -1
drivers/net/ethernet/smsc/smsc911x.c
··· 2148 2148 .ndo_start_xmit = smsc911x_hard_start_xmit, 2149 2149 .ndo_get_stats = smsc911x_get_stats, 2150 2150 .ndo_set_rx_mode = smsc911x_set_multicast_list, 2151 - .ndo_do_ioctl = phy_do_ioctl_running, 2151 + .ndo_eth_ioctl = phy_do_ioctl_running, 2152 2152 .ndo_validate_addr = eth_validate_addr, 2153 2153 .ndo_set_mac_address = smsc911x_set_mac_address, 2154 2154 #ifdef CONFIG_NET_POLL_CONTROLLER
+1 -1
drivers/net/ethernet/smsc/smsc9420.c
··· 1482 1482 .ndo_start_xmit = smsc9420_hard_start_xmit, 1483 1483 .ndo_get_stats = smsc9420_get_stats, 1484 1484 .ndo_set_rx_mode = smsc9420_set_multicast_list, 1485 - .ndo_do_ioctl = phy_do_ioctl_running, 1485 + .ndo_eth_ioctl = phy_do_ioctl_running, 1486 1486 .ndo_validate_addr = eth_validate_addr, 1487 1487 .ndo_set_mac_address = eth_mac_addr, 1488 1488 #ifdef CONFIG_NET_POLL_CONTROLLER
+1 -1
drivers/net/ethernet/socionext/netsec.c
··· 1831 1831 .ndo_set_features = netsec_netdev_set_features, 1832 1832 .ndo_set_mac_address = eth_mac_addr, 1833 1833 .ndo_validate_addr = eth_validate_addr, 1834 - .ndo_do_ioctl = phy_do_ioctl, 1834 + .ndo_eth_ioctl = phy_do_ioctl, 1835 1835 .ndo_xdp_xmit = netsec_xdp_xmit, 1836 1836 .ndo_bpf = netsec_xdp, 1837 1837 };
+1 -1
drivers/net/ethernet/socionext/sni_ave.c
··· 1543 1543 .ndo_open = ave_open, 1544 1544 .ndo_stop = ave_stop, 1545 1545 .ndo_start_xmit = ave_start_xmit, 1546 - .ndo_do_ioctl = ave_ioctl, 1546 + .ndo_eth_ioctl = ave_ioctl, 1547 1547 .ndo_set_rx_mode = ave_set_rx_mode, 1548 1548 .ndo_get_stats64 = ave_get_stats64, 1549 1549 .ndo_set_mac_address = ave_set_mac_address,
+1 -1
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
··· 6451 6451 .ndo_set_features = stmmac_set_features, 6452 6452 .ndo_set_rx_mode = stmmac_set_rx_mode, 6453 6453 .ndo_tx_timeout = stmmac_tx_timeout, 6454 - .ndo_do_ioctl = stmmac_ioctl, 6454 + .ndo_eth_ioctl = stmmac_ioctl, 6455 6455 .ndo_setup_tc = stmmac_setup_tc, 6456 6456 .ndo_select_queue = stmmac_select_queue, 6457 6457 #ifdef CONFIG_NET_POLL_CONTROLLER
+1 -1
drivers/net/ethernet/sun/cassini.c
··· 4876 4876 .ndo_start_xmit = cas_start_xmit, 4877 4877 .ndo_get_stats = cas_get_stats, 4878 4878 .ndo_set_rx_mode = cas_set_multicast, 4879 - .ndo_do_ioctl = cas_ioctl, 4879 + .ndo_eth_ioctl = cas_ioctl, 4880 4880 .ndo_tx_timeout = cas_tx_timeout, 4881 4881 .ndo_change_mtu = cas_change_mtu, 4882 4882 .ndo_set_mac_address = eth_mac_addr,
+1 -1
drivers/net/ethernet/sun/niu.c
··· 9667 9667 .ndo_set_rx_mode = niu_set_rx_mode, 9668 9668 .ndo_validate_addr = eth_validate_addr, 9669 9669 .ndo_set_mac_address = niu_set_mac_addr, 9670 - .ndo_do_ioctl = niu_ioctl, 9670 + .ndo_eth_ioctl = niu_ioctl, 9671 9671 .ndo_tx_timeout = niu_tx_timeout, 9672 9672 .ndo_change_mtu = niu_change_mtu, 9673 9673 };
+1 -1
drivers/net/ethernet/sun/sungem.c
··· 2831 2831 .ndo_start_xmit = gem_start_xmit, 2832 2832 .ndo_get_stats = gem_get_stats, 2833 2833 .ndo_set_rx_mode = gem_set_multicast, 2834 - .ndo_do_ioctl = gem_ioctl, 2834 + .ndo_eth_ioctl = gem_ioctl, 2835 2835 .ndo_tx_timeout = gem_tx_timeout, 2836 2836 .ndo_change_mtu = gem_change_mtu, 2837 2837 .ndo_validate_addr = eth_validate_addr,
+1 -1
drivers/net/ethernet/synopsys/dwc-xlgmac-net.c
··· 933 933 .ndo_change_mtu = xlgmac_change_mtu, 934 934 .ndo_set_mac_address = xlgmac_set_mac_address, 935 935 .ndo_validate_addr = eth_validate_addr, 936 - .ndo_do_ioctl = xlgmac_ioctl, 936 + .ndo_eth_ioctl = xlgmac_ioctl, 937 937 .ndo_vlan_rx_add_vid = xlgmac_vlan_rx_add_vid, 938 938 .ndo_vlan_rx_kill_vid = xlgmac_vlan_rx_kill_vid, 939 939 #ifdef CONFIG_NET_POLL_CONTROLLER
+1 -1
drivers/net/ethernet/ti/am65-cpsw-nuss.c
··· 1480 1480 .ndo_tx_timeout = am65_cpsw_nuss_ndo_host_tx_timeout, 1481 1481 .ndo_vlan_rx_add_vid = am65_cpsw_nuss_ndo_slave_add_vid, 1482 1482 .ndo_vlan_rx_kill_vid = am65_cpsw_nuss_ndo_slave_kill_vid, 1483 - .ndo_do_ioctl = am65_cpsw_nuss_ndo_slave_ioctl, 1483 + .ndo_eth_ioctl = am65_cpsw_nuss_ndo_slave_ioctl, 1484 1484 .ndo_setup_tc = am65_cpsw_qos_ndo_setup_tc, 1485 1485 .ndo_get_devlink_port = am65_cpsw_ndo_get_devlink_port, 1486 1486 };
+1 -1
drivers/net/ethernet/ti/cpmac.c
··· 1044 1044 .ndo_start_xmit = cpmac_start_xmit, 1045 1045 .ndo_tx_timeout = cpmac_tx_timeout, 1046 1046 .ndo_set_rx_mode = cpmac_set_multicast_list, 1047 - .ndo_do_ioctl = phy_do_ioctl_running, 1047 + .ndo_eth_ioctl = phy_do_ioctl_running, 1048 1048 .ndo_validate_addr = eth_validate_addr, 1049 1049 .ndo_set_mac_address = eth_mac_addr, 1050 1050 };
+1 -1
drivers/net/ethernet/ti/cpsw.c
··· 1159 1159 .ndo_stop = cpsw_ndo_stop, 1160 1160 .ndo_start_xmit = cpsw_ndo_start_xmit, 1161 1161 .ndo_set_mac_address = cpsw_ndo_set_mac_address, 1162 - .ndo_do_ioctl = cpsw_ndo_ioctl, 1162 + .ndo_eth_ioctl = cpsw_ndo_ioctl, 1163 1163 .ndo_validate_addr = eth_validate_addr, 1164 1164 .ndo_tx_timeout = cpsw_ndo_tx_timeout, 1165 1165 .ndo_set_rx_mode = cpsw_ndo_set_rx_mode,
+1 -1
drivers/net/ethernet/ti/cpsw_new.c
··· 1128 1128 .ndo_stop = cpsw_ndo_stop, 1129 1129 .ndo_start_xmit = cpsw_ndo_start_xmit, 1130 1130 .ndo_set_mac_address = cpsw_ndo_set_mac_address, 1131 - .ndo_do_ioctl = cpsw_ndo_ioctl, 1131 + .ndo_eth_ioctl = cpsw_ndo_ioctl, 1132 1132 .ndo_validate_addr = eth_validate_addr, 1133 1133 .ndo_tx_timeout = cpsw_ndo_tx_timeout, 1134 1134 .ndo_set_rx_mode = cpsw_ndo_set_rx_mode,
+1 -1
drivers/net/ethernet/ti/davinci_emac.c
··· 1670 1670 .ndo_start_xmit = emac_dev_xmit, 1671 1671 .ndo_set_rx_mode = emac_dev_mcast_set, 1672 1672 .ndo_set_mac_address = emac_dev_setmac_addr, 1673 - .ndo_do_ioctl = emac_devioctl, 1673 + .ndo_eth_ioctl = emac_devioctl, 1674 1674 .ndo_tx_timeout = emac_dev_tx_timeout, 1675 1675 .ndo_get_stats = emac_dev_getnetstats, 1676 1676 #ifdef CONFIG_NET_POLL_CONTROLLER
+1 -1
drivers/net/ethernet/ti/netcp_core.c
··· 1944 1944 .ndo_stop = netcp_ndo_stop, 1945 1945 .ndo_start_xmit = netcp_ndo_start_xmit, 1946 1946 .ndo_set_rx_mode = netcp_set_rx_mode, 1947 - .ndo_do_ioctl = netcp_ndo_ioctl, 1947 + .ndo_eth_ioctl = netcp_ndo_ioctl, 1948 1948 .ndo_get_stats64 = netcp_get_stats, 1949 1949 .ndo_set_mac_address = eth_mac_addr, 1950 1950 .ndo_validate_addr = eth_validate_addr,
+1 -1
drivers/net/ethernet/ti/tlan.c
··· 749 749 .ndo_tx_timeout = tlan_tx_timeout, 750 750 .ndo_get_stats = tlan_get_stats, 751 751 .ndo_set_rx_mode = tlan_set_multicast_list, 752 - .ndo_do_ioctl = tlan_ioctl, 752 + .ndo_eth_ioctl = tlan_ioctl, 753 753 .ndo_set_mac_address = eth_mac_addr, 754 754 .ndo_validate_addr = eth_validate_addr, 755 755 #ifdef CONFIG_NET_POLL_CONTROLLER
+1 -1
drivers/net/ethernet/toshiba/spider_net.c
··· 2214 2214 .ndo_start_xmit = spider_net_xmit, 2215 2215 .ndo_set_rx_mode = spider_net_set_multi, 2216 2216 .ndo_set_mac_address = spider_net_set_mac, 2217 - .ndo_do_ioctl = spider_net_do_ioctl, 2217 + .ndo_eth_ioctl = spider_net_do_ioctl, 2218 2218 .ndo_tx_timeout = spider_net_tx_timeout, 2219 2219 .ndo_validate_addr = eth_validate_addr, 2220 2220 /* HW VLAN */
+1 -1
drivers/net/ethernet/toshiba/tc35815.c
··· 750 750 .ndo_get_stats = tc35815_get_stats, 751 751 .ndo_set_rx_mode = tc35815_set_multicast_list, 752 752 .ndo_tx_timeout = tc35815_tx_timeout, 753 - .ndo_do_ioctl = phy_do_ioctl_running, 753 + .ndo_eth_ioctl = phy_do_ioctl_running, 754 754 .ndo_validate_addr = eth_validate_addr, 755 755 .ndo_set_mac_address = eth_mac_addr, 756 756 #ifdef CONFIG_NET_POLL_CONTROLLER
+1 -1
drivers/net/ethernet/tundra/tsi108_eth.c
··· 1538 1538 .ndo_start_xmit = tsi108_send_packet, 1539 1539 .ndo_set_rx_mode = tsi108_set_rx_mode, 1540 1540 .ndo_get_stats = tsi108_get_stats, 1541 - .ndo_do_ioctl = tsi108_do_ioctl, 1541 + .ndo_eth_ioctl = tsi108_do_ioctl, 1542 1542 .ndo_set_mac_address = tsi108_set_mac, 1543 1543 .ndo_validate_addr = eth_validate_addr, 1544 1544 };
+1 -1
drivers/net/ethernet/via/via-rhine.c
··· 884 884 .ndo_set_rx_mode = rhine_set_rx_mode, 885 885 .ndo_validate_addr = eth_validate_addr, 886 886 .ndo_set_mac_address = eth_mac_addr, 887 - .ndo_do_ioctl = netdev_ioctl, 887 + .ndo_eth_ioctl = netdev_ioctl, 888 888 .ndo_tx_timeout = rhine_tx_timeout, 889 889 .ndo_vlan_rx_add_vid = rhine_vlan_rx_add_vid, 890 890 .ndo_vlan_rx_kill_vid = rhine_vlan_rx_kill_vid,
+1 -1
drivers/net/ethernet/via/via-velocity.c
··· 2637 2637 .ndo_set_mac_address = eth_mac_addr, 2638 2638 .ndo_set_rx_mode = velocity_set_multi, 2639 2639 .ndo_change_mtu = velocity_change_mtu, 2640 - .ndo_do_ioctl = velocity_ioctl, 2640 + .ndo_eth_ioctl = velocity_ioctl, 2641 2641 .ndo_vlan_rx_add_vid = velocity_vlan_rx_add_vid, 2642 2642 .ndo_vlan_rx_kill_vid = velocity_vlan_rx_kill_vid, 2643 2643 #ifdef CONFIG_NET_POLL_CONTROLLER
+1 -1
drivers/net/ethernet/xilinx/ll_temac_main.c
··· 1237 1237 .ndo_set_rx_mode = temac_set_multicast_list, 1238 1238 .ndo_set_mac_address = temac_set_mac_address, 1239 1239 .ndo_validate_addr = eth_validate_addr, 1240 - .ndo_do_ioctl = phy_do_ioctl_running, 1240 + .ndo_eth_ioctl = phy_do_ioctl_running, 1241 1241 #ifdef CONFIG_NET_POLL_CONTROLLER 1242 1242 .ndo_poll_controller = temac_poll_controller, 1243 1243 #endif
+1 -1
drivers/net/ethernet/xilinx/xilinx_axienet_main.c
··· 1227 1227 .ndo_change_mtu = axienet_change_mtu, 1228 1228 .ndo_set_mac_address = netdev_set_mac_address, 1229 1229 .ndo_validate_addr = eth_validate_addr, 1230 - .ndo_do_ioctl = axienet_ioctl, 1230 + .ndo_eth_ioctl = axienet_ioctl, 1231 1231 .ndo_set_rx_mode = axienet_set_multicast_list, 1232 1232 #ifdef CONFIG_NET_POLL_CONTROLLER 1233 1233 .ndo_poll_controller = axienet_poll_controller,
+1 -1
drivers/net/ethernet/xilinx/xilinx_emaclite.c
··· 1263 1263 .ndo_start_xmit = xemaclite_send, 1264 1264 .ndo_set_mac_address = xemaclite_set_mac_address, 1265 1265 .ndo_tx_timeout = xemaclite_tx_timeout, 1266 - .ndo_do_ioctl = xemaclite_ioctl, 1266 + .ndo_eth_ioctl = xemaclite_ioctl, 1267 1267 #ifdef CONFIG_NET_POLL_CONTROLLER 1268 1268 .ndo_poll_controller = xemaclite_poll_controller, 1269 1269 #endif
+1 -1
drivers/net/ethernet/xircom/xirc2ps_cs.c
··· 464 464 .ndo_start_xmit = do_start_xmit, 465 465 .ndo_tx_timeout = xirc_tx_timeout, 466 466 .ndo_set_config = do_config, 467 - .ndo_do_ioctl = do_ioctl, 467 + .ndo_eth_ioctl = do_ioctl, 468 468 .ndo_set_rx_mode = set_multicast_list, 469 469 .ndo_set_mac_address = eth_mac_addr, 470 470 .ndo_validate_addr = eth_validate_addr,
+1 -1
drivers/net/ethernet/xscale/ixp4xx_eth.c
··· 1357 1357 .ndo_stop = eth_close, 1358 1358 .ndo_start_xmit = eth_xmit, 1359 1359 .ndo_set_rx_mode = eth_set_mcast_list, 1360 - .ndo_do_ioctl = eth_ioctl, 1360 + .ndo_eth_ioctl = eth_ioctl, 1361 1361 .ndo_set_mac_address = eth_mac_addr, 1362 1362 .ndo_validate_addr = eth_validate_addr, 1363 1363 };
+4 -4
drivers/net/macvlan.c
··· 829 829 return 0; 830 830 } 831 831 832 - static int macvlan_do_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) 832 + static int macvlan_eth_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) 833 833 { 834 834 struct net_device *real_dev = macvlan_dev_real_dev(dev); 835 835 const struct net_device_ops *ops = real_dev->netdev_ops; ··· 845 845 break; 846 846 fallthrough; 847 847 case SIOCGHWTSTAMP: 848 - if (netif_device_present(real_dev) && ops->ndo_do_ioctl) 849 - err = ops->ndo_do_ioctl(real_dev, &ifrr, cmd); 848 + if (netif_device_present(real_dev) && ops->ndo_eth_ioctl) 849 + err = ops->ndo_eth_ioctl(real_dev, &ifrr, cmd); 850 850 break; 851 851 } 852 852 ··· 1151 1151 .ndo_stop = macvlan_stop, 1152 1152 .ndo_start_xmit = macvlan_start_xmit, 1153 1153 .ndo_change_mtu = macvlan_change_mtu, 1154 - .ndo_do_ioctl = macvlan_do_ioctl, 1154 + .ndo_eth_ioctl = macvlan_eth_ioctl, 1155 1155 .ndo_fix_features = macvlan_fix_features, 1156 1156 .ndo_change_rx_flags = macvlan_change_rx_flags, 1157 1157 .ndo_set_mac_address = macvlan_set_mac_address,
+2 -2
drivers/net/phy/phy.c
··· 426 426 EXPORT_SYMBOL(phy_mii_ioctl); 427 427 428 428 /** 429 - * phy_do_ioctl - generic ndo_do_ioctl implementation 429 + * phy_do_ioctl - generic ndo_eth_ioctl implementation 430 430 * @dev: the net_device struct 431 431 * @ifr: &struct ifreq for socket ioctl's 432 432 * @cmd: ioctl cmd to execute ··· 441 441 EXPORT_SYMBOL(phy_do_ioctl); 442 442 443 443 /** 444 - * phy_do_ioctl_running - generic ndo_do_ioctl implementation but test first 444 + * phy_do_ioctl_running - generic ndo_eth_ioctl implementation but test first 445 445 * 446 446 * @dev: the net_device struct 447 447 * @ifr: &struct ifreq for socket ioctl's
+3 -3
drivers/net/usb/asix_devices.c
··· 197 197 .ndo_get_stats64 = dev_get_tstats64, 198 198 .ndo_set_mac_address = eth_mac_addr, 199 199 .ndo_validate_addr = eth_validate_addr, 200 - .ndo_do_ioctl = asix_ioctl, 200 + .ndo_eth_ioctl = asix_ioctl, 201 201 .ndo_set_rx_mode = ax88172_set_multicast, 202 202 }; 203 203 ··· 589 589 .ndo_get_stats64 = dev_get_tstats64, 590 590 .ndo_set_mac_address = asix_set_mac_address, 591 591 .ndo_validate_addr = eth_validate_addr, 592 - .ndo_do_ioctl = phy_do_ioctl_running, 592 + .ndo_eth_ioctl = phy_do_ioctl_running, 593 593 .ndo_set_rx_mode = asix_set_multicast, 594 594 }; 595 595 ··· 1095 1095 .ndo_set_mac_address = asix_set_mac_address, 1096 1096 .ndo_validate_addr = eth_validate_addr, 1097 1097 .ndo_set_rx_mode = asix_set_multicast, 1098 - .ndo_do_ioctl = asix_ioctl, 1098 + .ndo_eth_ioctl = asix_ioctl, 1099 1099 .ndo_change_mtu = ax88178_change_mtu, 1100 1100 }; 1101 1101
+1 -1
drivers/net/usb/ax88172a.c
··· 109 109 .ndo_get_stats64 = dev_get_tstats64, 110 110 .ndo_set_mac_address = asix_set_mac_address, 111 111 .ndo_validate_addr = eth_validate_addr, 112 - .ndo_do_ioctl = phy_do_ioctl_running, 112 + .ndo_eth_ioctl = phy_do_ioctl_running, 113 113 .ndo_set_rx_mode = asix_set_multicast, 114 114 }; 115 115
+1 -1
drivers/net/usb/ax88179_178a.c
··· 1035 1035 .ndo_change_mtu = ax88179_change_mtu, 1036 1036 .ndo_set_mac_address = ax88179_set_mac_addr, 1037 1037 .ndo_validate_addr = eth_validate_addr, 1038 - .ndo_do_ioctl = ax88179_ioctl, 1038 + .ndo_eth_ioctl = ax88179_ioctl, 1039 1039 .ndo_set_rx_mode = ax88179_set_multicast, 1040 1040 .ndo_set_features = ax88179_set_features, 1041 1041 };
+1 -1
drivers/net/usb/dm9601.c
··· 345 345 .ndo_change_mtu = usbnet_change_mtu, 346 346 .ndo_get_stats64 = dev_get_tstats64, 347 347 .ndo_validate_addr = eth_validate_addr, 348 - .ndo_do_ioctl = dm9601_ioctl, 348 + .ndo_eth_ioctl = dm9601_ioctl, 349 349 .ndo_set_rx_mode = dm9601_set_multicast, 350 350 .ndo_set_mac_address = dm9601_set_mac_address, 351 351 };
+1 -1
drivers/net/usb/lan78xx.c
··· 3601 3601 .ndo_change_mtu = lan78xx_change_mtu, 3602 3602 .ndo_set_mac_address = lan78xx_set_mac_addr, 3603 3603 .ndo_validate_addr = eth_validate_addr, 3604 - .ndo_do_ioctl = phy_do_ioctl_running, 3604 + .ndo_eth_ioctl = phy_do_ioctl_running, 3605 3605 .ndo_set_rx_mode = lan78xx_set_multicast, 3606 3606 .ndo_set_features = lan78xx_set_features, 3607 3607 .ndo_vlan_rx_add_vid = lan78xx_vlan_rx_add_vid,
+1 -1
drivers/net/usb/mcs7830.c
··· 464 464 .ndo_change_mtu = usbnet_change_mtu, 465 465 .ndo_get_stats64 = dev_get_tstats64, 466 466 .ndo_validate_addr = eth_validate_addr, 467 - .ndo_do_ioctl = mcs7830_ioctl, 467 + .ndo_eth_ioctl = mcs7830_ioctl, 468 468 .ndo_set_rx_mode = mcs7830_set_multicast, 469 469 .ndo_set_mac_address = mcs7830_set_mac_address, 470 470 };
+1 -1
drivers/net/usb/r8152.c
··· 9173 9173 static const struct net_device_ops rtl8152_netdev_ops = { 9174 9174 .ndo_open = rtl8152_open, 9175 9175 .ndo_stop = rtl8152_close, 9176 - .ndo_do_ioctl = rtl8152_ioctl, 9176 + .ndo_eth_ioctl = rtl8152_ioctl, 9177 9177 .ndo_start_xmit = rtl8152_start_xmit, 9178 9178 .ndo_tx_timeout = rtl8152_tx_timeout, 9179 9179 .ndo_set_features = rtl8152_set_features,
+1 -1
drivers/net/usb/smsc75xx.c
··· 1439 1439 .ndo_change_mtu = smsc75xx_change_mtu, 1440 1440 .ndo_set_mac_address = eth_mac_addr, 1441 1441 .ndo_validate_addr = eth_validate_addr, 1442 - .ndo_do_ioctl = smsc75xx_ioctl, 1442 + .ndo_eth_ioctl = smsc75xx_ioctl, 1443 1443 .ndo_set_rx_mode = smsc75xx_set_multicast, 1444 1444 .ndo_set_features = smsc75xx_set_features, 1445 1445 };
+1 -1
drivers/net/usb/smsc95xx.c
··· 1044 1044 .ndo_get_stats64 = dev_get_tstats64, 1045 1045 .ndo_set_mac_address = eth_mac_addr, 1046 1046 .ndo_validate_addr = eth_validate_addr, 1047 - .ndo_do_ioctl = smsc95xx_ioctl, 1047 + .ndo_eth_ioctl = smsc95xx_ioctl, 1048 1048 .ndo_set_rx_mode = smsc95xx_set_multicast, 1049 1049 .ndo_set_features = smsc95xx_set_features, 1050 1050 };
+1 -1
drivers/net/usb/sr9700.c
··· 310 310 .ndo_change_mtu = usbnet_change_mtu, 311 311 .ndo_get_stats64 = dev_get_tstats64, 312 312 .ndo_validate_addr = eth_validate_addr, 313 - .ndo_do_ioctl = sr9700_ioctl, 313 + .ndo_eth_ioctl = sr9700_ioctl, 314 314 .ndo_set_rx_mode = sr9700_set_multicast, 315 315 .ndo_set_mac_address = sr9700_set_mac_address, 316 316 };
+1 -1
drivers/net/usb/sr9800.c
··· 684 684 .ndo_get_stats64 = dev_get_tstats64, 685 685 .ndo_set_mac_address = sr_set_mac_address, 686 686 .ndo_validate_addr = eth_validate_addr, 687 - .ndo_do_ioctl = sr_ioctl, 687 + .ndo_eth_ioctl = sr_ioctl, 688 688 .ndo_set_rx_mode = sr_set_multicast, 689 689 }; 690 690
+1 -1
drivers/s390/net/qeth_l2_main.c
··· 836 836 .ndo_select_queue = qeth_l2_select_queue, 837 837 .ndo_validate_addr = qeth_l2_validate_addr, 838 838 .ndo_set_rx_mode = qeth_l2_set_rx_mode, 839 - .ndo_do_ioctl = qeth_do_ioctl, 839 + .ndo_eth_ioctl = qeth_do_ioctl, 840 840 .ndo_siocdevprivate = qeth_siocdevprivate, 841 841 .ndo_set_mac_address = qeth_l2_set_mac_address, 842 842 .ndo_vlan_rx_add_vid = qeth_l2_vlan_rx_add_vid,
+2 -2
drivers/s390/net/qeth_l3_main.c
··· 1841 1841 .ndo_select_queue = qeth_l3_iqd_select_queue, 1842 1842 .ndo_validate_addr = eth_validate_addr, 1843 1843 .ndo_set_rx_mode = qeth_l3_set_rx_mode, 1844 - .ndo_do_ioctl = qeth_do_ioctl, 1844 + .ndo_eth_ioctl = qeth_do_ioctl, 1845 1845 .ndo_siocdevprivate = qeth_siocdevprivate, 1846 1846 .ndo_fix_features = qeth_fix_features, 1847 1847 .ndo_set_features = qeth_set_features, ··· 1857 1857 .ndo_select_queue = qeth_l3_osa_select_queue, 1858 1858 .ndo_validate_addr = eth_validate_addr, 1859 1859 .ndo_set_rx_mode = qeth_l3_set_rx_mode, 1860 - .ndo_do_ioctl = qeth_do_ioctl, 1860 + .ndo_eth_ioctl = qeth_do_ioctl, 1861 1861 .ndo_siocdevprivate = qeth_siocdevprivate, 1862 1862 .ndo_fix_features = qeth_fix_features, 1863 1863 .ndo_set_features = qeth_set_features,
+6 -6
drivers/staging/octeon/ethernet.c
··· 524 524 .ndo_start_xmit = cvm_oct_xmit, 525 525 .ndo_set_rx_mode = cvm_oct_common_set_multicast_list, 526 526 .ndo_set_mac_address = cvm_oct_common_set_mac_address, 527 - .ndo_do_ioctl = cvm_oct_ioctl, 527 + .ndo_eth_ioctl = cvm_oct_ioctl, 528 528 .ndo_change_mtu = cvm_oct_common_change_mtu, 529 529 .ndo_get_stats = cvm_oct_common_get_stats, 530 530 #ifdef CONFIG_NET_POLL_CONTROLLER ··· 540 540 .ndo_start_xmit = cvm_oct_xmit, 541 541 .ndo_set_rx_mode = cvm_oct_common_set_multicast_list, 542 542 .ndo_set_mac_address = cvm_oct_common_set_mac_address, 543 - .ndo_do_ioctl = cvm_oct_ioctl, 543 + .ndo_eth_ioctl = cvm_oct_ioctl, 544 544 .ndo_change_mtu = cvm_oct_common_change_mtu, 545 545 .ndo_get_stats = cvm_oct_common_get_stats, 546 546 #ifdef CONFIG_NET_POLL_CONTROLLER ··· 556 556 .ndo_start_xmit = cvm_oct_xmit, 557 557 .ndo_set_rx_mode = cvm_oct_common_set_multicast_list, 558 558 .ndo_set_mac_address = cvm_oct_common_set_mac_address, 559 - .ndo_do_ioctl = cvm_oct_ioctl, 559 + .ndo_eth_ioctl = cvm_oct_ioctl, 560 560 .ndo_change_mtu = cvm_oct_common_change_mtu, 561 561 .ndo_get_stats = cvm_oct_common_get_stats, 562 562 #ifdef CONFIG_NET_POLL_CONTROLLER ··· 570 570 .ndo_start_xmit = cvm_oct_xmit, 571 571 .ndo_set_rx_mode = cvm_oct_common_set_multicast_list, 572 572 .ndo_set_mac_address = cvm_oct_common_set_mac_address, 573 - .ndo_do_ioctl = cvm_oct_ioctl, 573 + .ndo_eth_ioctl = cvm_oct_ioctl, 574 574 .ndo_change_mtu = cvm_oct_common_change_mtu, 575 575 .ndo_get_stats = cvm_oct_common_get_stats, 576 576 #ifdef CONFIG_NET_POLL_CONTROLLER ··· 586 586 .ndo_start_xmit = cvm_oct_xmit, 587 587 .ndo_set_rx_mode = cvm_oct_common_set_multicast_list, 588 588 .ndo_set_mac_address = cvm_oct_common_set_mac_address, 589 - .ndo_do_ioctl = cvm_oct_ioctl, 589 + .ndo_eth_ioctl = cvm_oct_ioctl, 590 590 .ndo_change_mtu = cvm_oct_common_change_mtu, 591 591 .ndo_get_stats = cvm_oct_common_get_stats, 592 592 #ifdef CONFIG_NET_POLL_CONTROLLER ··· 599 599 .ndo_start_xmit = cvm_oct_xmit_pow, 600 600 .ndo_set_rx_mode = cvm_oct_common_set_multicast_list, 601 601 .ndo_set_mac_address = cvm_oct_common_set_mac_address, 602 - .ndo_do_ioctl = cvm_oct_ioctl, 602 + .ndo_eth_ioctl = cvm_oct_ioctl, 603 603 .ndo_change_mtu = cvm_oct_common_change_mtu, 604 604 .ndo_get_stats = cvm_oct_common_get_stats, 605 605 #ifdef CONFIG_NET_POLL_CONTROLLER
+6
include/linux/netdevice.h
··· 1090 1090 * the generic interface code. If not defined ioctls return 1091 1091 * not supported error code. 1092 1092 * 1093 + * * int (*ndo_eth_ioctl)(struct net_device *dev, struct ifreq *ifr, int cmd); 1094 + * Called for ethernet specific ioctls: SIOCGMIIPHY, SIOCGMIIREG, 1095 + * SIOCSMIIREG, SIOCSHWTSTAMP and SIOCGHWTSTAMP. 1096 + * 1093 1097 * int (*ndo_set_config)(struct net_device *dev, struct ifmap *map); 1094 1098 * Used to set network devices bus interface parameters. This interface 1095 1099 * is retained for legacy reasons; new devices should use the bus ··· 1365 1361 int (*ndo_validate_addr)(struct net_device *dev); 1366 1362 int (*ndo_do_ioctl)(struct net_device *dev, 1367 1363 struct ifreq *ifr, int cmd); 1364 + int (*ndo_eth_ioctl)(struct net_device *dev, 1365 + struct ifreq *ifr, int cmd); 1368 1366 int (*ndo_siocdevprivate)(struct net_device *dev, 1369 1367 struct ifreq *ifr, 1370 1368 void __user *data, int cmd);
+7 -7
include/net/dsa.h
··· 106 106 * function pointers. 107 107 */ 108 108 struct dsa_netdevice_ops { 109 - int (*ndo_do_ioctl)(struct net_device *dev, struct ifreq *ifr, 110 - int cmd); 109 + int (*ndo_eth_ioctl)(struct net_device *dev, struct ifreq *ifr, 110 + int cmd); 111 111 }; 112 112 113 113 #define DSA_TAG_DRIVER_ALIAS "dsa_tag-" ··· 1019 1019 return 0; 1020 1020 } 1021 1021 1022 - static inline int dsa_ndo_do_ioctl(struct net_device *dev, struct ifreq *ifr, 1023 - int cmd) 1022 + static inline int dsa_ndo_eth_ioctl(struct net_device *dev, struct ifreq *ifr, 1023 + int cmd) 1024 1024 { 1025 1025 const struct dsa_netdevice_ops *ops; 1026 1026 int err; ··· 1031 1031 1032 1032 ops = dev->dsa_ptr->netdev_ops; 1033 1033 1034 - return ops->ndo_do_ioctl(dev, ifr, cmd); 1034 + return ops->ndo_eth_ioctl(dev, ifr, cmd); 1035 1035 } 1036 1036 #else 1037 - static inline int dsa_ndo_do_ioctl(struct net_device *dev, struct ifreq *ifr, 1038 - int cmd) 1037 + static inline int dsa_ndo_eth_ioctl(struct net_device *dev, struct ifreq *ifr, 1038 + int cmd) 1039 1039 { 1040 1040 return -EOPNOTSUPP; 1041 1041 }
+3 -3
net/8021q/vlan_dev.c
··· 372 372 case SIOCGMIIREG: 373 373 case SIOCSMIIREG: 374 374 case SIOCGHWTSTAMP: 375 - if (netif_device_present(real_dev) && ops->ndo_do_ioctl) 376 - err = ops->ndo_do_ioctl(real_dev, &ifrr, cmd); 375 + if (netif_device_present(real_dev) && ops->ndo_eth_ioctl) 376 + err = ops->ndo_eth_ioctl(real_dev, &ifrr, cmd); 377 377 break; 378 378 } 379 379 ··· 814 814 .ndo_set_mac_address = vlan_dev_set_mac_address, 815 815 .ndo_set_rx_mode = vlan_dev_set_rx_mode, 816 816 .ndo_change_rx_flags = vlan_dev_change_rx_flags, 817 - .ndo_do_ioctl = vlan_dev_ioctl, 817 + .ndo_eth_ioctl = vlan_dev_ioctl, 818 818 .ndo_neigh_setup = vlan_dev_neigh_setup, 819 819 .ndo_get_stats64 = vlan_dev_get_stats64, 820 820 #if IS_ENABLED(CONFIG_FCOE)
+27 -11
net/core/dev_ioctl.c
··· 239 239 return 0; 240 240 } 241 241 242 - static int dev_do_ioctl(struct net_device *dev, 243 - struct ifreq *ifr, unsigned int cmd) 242 + static int dev_eth_ioctl(struct net_device *dev, 243 + struct ifreq *ifr, unsigned int cmd) 244 244 { 245 245 const struct net_device_ops *ops = dev->netdev_ops; 246 246 int err; 247 247 248 - err = dsa_ndo_do_ioctl(dev, ifr, cmd); 248 + err = dsa_ndo_eth_ioctl(dev, ifr, cmd); 249 249 if (err == 0 || err != -EOPNOTSUPP) 250 250 return err; 251 251 252 - if (ops->ndo_do_ioctl) { 252 + if (ops->ndo_eth_ioctl) { 253 253 if (netif_device_present(dev)) 254 - err = ops->ndo_do_ioctl(dev, ifr, cmd); 254 + err = ops->ndo_eth_ioctl(dev, ifr, cmd); 255 255 else 256 256 err = -ENODEV; 257 257 } 258 258 259 259 return err; 260 + } 261 + 262 + static int dev_do_ioctl(struct net_device *dev, 263 + struct ifreq *ifr, unsigned int cmd) 264 + { 265 + const struct net_device_ops *ops = dev->netdev_ops; 266 + 267 + if (ops->ndo_do_ioctl) { 268 + if (netif_device_present(dev)) 269 + return ops->ndo_do_ioctl(dev, ifr, cmd); 270 + else 271 + return -ENODEV; 272 + } 273 + 274 + return -EOPNOTSUPP; 260 275 } 261 276 262 277 static int dev_siocdevprivate(struct net_device *dev, struct ifreq *ifr, ··· 373 358 cmd <= SIOCDEVPRIVATE + 15) 374 359 return dev_siocdevprivate(dev, ifr, data, cmd); 375 360 376 - if (cmd == SIOCBONDENSLAVE || 361 + if (cmd == SIOCGMIIPHY || 362 + cmd == SIOCGMIIREG || 363 + cmd == SIOCSMIIREG || 364 + cmd == SIOCSHWTSTAMP || 365 + cmd == SIOCGHWTSTAMP) { 366 + err = dev_eth_ioctl(dev, ifr, cmd); 367 + } else if (cmd == SIOCBONDENSLAVE || 377 368 cmd == SIOCBONDRELEASE || 378 369 cmd == SIOCBONDSETHWADDR || 379 370 cmd == SIOCBONDSLAVEINFOQUERY || 380 371 cmd == SIOCBONDINFOQUERY || 381 372 cmd == SIOCBONDCHANGEACTIVE || 382 - cmd == SIOCGMIIPHY || 383 - cmd == SIOCGMIIREG || 384 - cmd == SIOCSMIIREG || 385 373 cmd == SIOCBRADDIF || 386 374 cmd == SIOCBRDELIF || 387 - cmd == SIOCSHWTSTAMP || 388 - cmd == SIOCGHWTSTAMP || 389 375 cmd == SIOCWANDEV) { 390 376 err = dev_do_ioctl(dev, ifr, cmd); 391 377 } else
+3 -3
net/dsa/master.c
··· 210 210 break; 211 211 } 212 212 213 - if (dev->netdev_ops->ndo_do_ioctl) 214 - err = dev->netdev_ops->ndo_do_ioctl(dev, ifr, cmd); 213 + if (dev->netdev_ops->ndo_eth_ioctl) 214 + err = dev->netdev_ops->ndo_eth_ioctl(dev, ifr, cmd); 215 215 216 216 return err; 217 217 } 218 218 219 219 static const struct dsa_netdevice_ops dsa_netdev_ops = { 220 - .ndo_do_ioctl = dsa_master_ioctl, 220 + .ndo_eth_ioctl = dsa_master_ioctl, 221 221 }; 222 222 223 223 static int dsa_master_ethtool_setup(struct net_device *dev)
+1 -1
net/dsa/slave.c
··· 1687 1687 .ndo_set_rx_mode = dsa_slave_set_rx_mode, 1688 1688 .ndo_set_mac_address = dsa_slave_set_mac_address, 1689 1689 .ndo_fdb_dump = dsa_slave_fdb_dump, 1690 - .ndo_do_ioctl = dsa_slave_ioctl, 1690 + .ndo_eth_ioctl = dsa_slave_ioctl, 1691 1691 .ndo_get_iflink = dsa_slave_get_iflink, 1692 1692 #ifdef CONFIG_NET_POLL_CONTROLLER 1693 1693 .ndo_netpoll_setup = dsa_slave_netpoll_setup,