dev_ioctl: split out ndo_eth_ioctl
authorArnd Bergmann <arnd@arndb.de>
Tue, 27 Jul 2021 13:45:13 +0000 (15:45 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Jul 2021 19:11:45 +0000 (20:11 +0100)
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>
172 files changed:
Documentation/networking/netdevices.rst
Documentation/networking/timestamping.rst
drivers/infiniband/ulp/ipoib/ipoib_main.c
drivers/net/bonding/bond_main.c
drivers/net/ethernet/3com/3c574_cs.c
drivers/net/ethernet/3com/3c59x.c
drivers/net/ethernet/8390/ax88796.c
drivers/net/ethernet/8390/axnet_cs.c
drivers/net/ethernet/8390/pcnet_cs.c
drivers/net/ethernet/actions/owl-emac.c
drivers/net/ethernet/adaptec/starfire.c
drivers/net/ethernet/agere/et131x.c
drivers/net/ethernet/allwinner/sun4i-emac.c
drivers/net/ethernet/amd/amd8111e.c
drivers/net/ethernet/amd/au1000_eth.c
drivers/net/ethernet/amd/pcnet32.c
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
drivers/net/ethernet/aquantia/atlantic/aq_main.c
drivers/net/ethernet/arc/emac_main.c
drivers/net/ethernet/atheros/ag71xx.c
drivers/net/ethernet/atheros/alx/main.c
drivers/net/ethernet/atheros/atl1c/atl1c_main.c
drivers/net/ethernet/atheros/atl1e/atl1e_main.c
drivers/net/ethernet/atheros/atlx/atl1.c
drivers/net/ethernet/atheros/atlx/atl2.c
drivers/net/ethernet/broadcom/b44.c
drivers/net/ethernet/broadcom/bcm63xx_enet.c
drivers/net/ethernet/broadcom/bgmac.c
drivers/net/ethernet/broadcom/bnx2.c
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/genet/bcmgenet.c
drivers/net/ethernet/broadcom/sb1250-mac.c
drivers/net/ethernet/broadcom/tg3.c
drivers/net/ethernet/cadence/macb_main.c
drivers/net/ethernet/cavium/liquidio/lio_main.c
drivers/net/ethernet/cavium/liquidio/lio_vf_main.c
drivers/net/ethernet/cavium/octeon/octeon_mgmt.c
drivers/net/ethernet/cavium/thunder/nicvf_main.c
drivers/net/ethernet/chelsio/cxgb/cxgb2.c
drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c
drivers/net/ethernet/cirrus/ep93xx_eth.c
drivers/net/ethernet/davicom/dm9000.c
drivers/net/ethernet/dec/tulip/tulip_core.c
drivers/net/ethernet/dec/tulip/winbond-840.c
drivers/net/ethernet/dlink/dl2k.c
drivers/net/ethernet/dlink/sundance.c
drivers/net/ethernet/dnet.c
drivers/net/ethernet/ethoc.c
drivers/net/ethernet/faraday/ftgmac100.c
drivers/net/ethernet/faraday/ftmac100.c
drivers/net/ethernet/fealnx.c
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
drivers/net/ethernet/freescale/enetc/enetc_pf.c
drivers/net/ethernet/freescale/enetc/enetc_vf.c
drivers/net/ethernet/freescale/fec_main.c
drivers/net/ethernet/freescale/fec_mpc52xx.c
drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c
drivers/net/ethernet/freescale/gianfar.c
drivers/net/ethernet/freescale/ucc_geth.c
drivers/net/ethernet/hisilicon/hisi_femac.c
drivers/net/ethernet/hisilicon/hns/hns_enet.c
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
drivers/net/ethernet/ibm/emac/core.c
drivers/net/ethernet/ibm/ibmveth.c
drivers/net/ethernet/intel/e100.c
drivers/net/ethernet/intel/e1000/e1000_main.c
drivers/net/ethernet/intel/e1000e/netdev.c
drivers/net/ethernet/intel/i40e/i40e_main.c
drivers/net/ethernet/intel/ice/ice_main.c
drivers/net/ethernet/intel/igb/igb_main.c
drivers/net/ethernet/intel/igbvf/netdev.c
drivers/net/ethernet/intel/igc/igc_main.c
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
drivers/net/ethernet/jme.c
drivers/net/ethernet/korina.c
drivers/net/ethernet/lantiq_etop.c
drivers/net/ethernet/marvell/mv643xx_eth.c
drivers/net/ethernet/marvell/mvneta.c
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c
drivers/net/ethernet/marvell/pxa168_eth.c
drivers/net/ethernet/marvell/skge.c
drivers/net/ethernet/marvell/sky2.c
drivers/net/ethernet/mediatek/mtk_eth_soc.c
drivers/net/ethernet/mediatek/mtk_star_emac.c
drivers/net/ethernet/mellanox/mlx4/en_netdev.c
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c
drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib_vlan.c
drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_main.c
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
drivers/net/ethernet/micrel/ks8851_common.c
drivers/net/ethernet/micrel/ksz884x.c
drivers/net/ethernet/microchip/lan743x_main.c
drivers/net/ethernet/mscc/ocelot_net.c
drivers/net/ethernet/natsemi/natsemi.c
drivers/net/ethernet/neterion/s2io.c
drivers/net/ethernet/neterion/vxge/vxge-main.c
drivers/net/ethernet/nxp/lpc_eth.c
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c
drivers/net/ethernet/packetengines/hamachi.c
drivers/net/ethernet/packetengines/yellowfin.c
drivers/net/ethernet/pensando/ionic/ionic_lif.c
drivers/net/ethernet/qlogic/qede/qede_main.c
drivers/net/ethernet/qualcomm/emac/emac.c
drivers/net/ethernet/rdc/r6040.c
drivers/net/ethernet/realtek/8139cp.c
drivers/net/ethernet/realtek/8139too.c
drivers/net/ethernet/realtek/r8169_main.c
drivers/net/ethernet/renesas/ravb_main.c
drivers/net/ethernet/renesas/sh_eth.c
drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c
drivers/net/ethernet/sfc/efx.c
drivers/net/ethernet/sfc/falcon/efx.c
drivers/net/ethernet/sgi/ioc3-eth.c
drivers/net/ethernet/sgi/meth.c
drivers/net/ethernet/sis/sis190.c
drivers/net/ethernet/sis/sis900.c
drivers/net/ethernet/smsc/epic100.c
drivers/net/ethernet/smsc/smc91c92_cs.c
drivers/net/ethernet/smsc/smsc911x.c
drivers/net/ethernet/smsc/smsc9420.c
drivers/net/ethernet/socionext/netsec.c
drivers/net/ethernet/socionext/sni_ave.c
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
drivers/net/ethernet/sun/cassini.c
drivers/net/ethernet/sun/niu.c
drivers/net/ethernet/sun/sungem.c
drivers/net/ethernet/synopsys/dwc-xlgmac-net.c
drivers/net/ethernet/ti/am65-cpsw-nuss.c
drivers/net/ethernet/ti/cpmac.c
drivers/net/ethernet/ti/cpsw.c
drivers/net/ethernet/ti/cpsw_new.c
drivers/net/ethernet/ti/davinci_emac.c
drivers/net/ethernet/ti/netcp_core.c
drivers/net/ethernet/ti/tlan.c
drivers/net/ethernet/toshiba/spider_net.c
drivers/net/ethernet/toshiba/tc35815.c
drivers/net/ethernet/tundra/tsi108_eth.c
drivers/net/ethernet/via/via-rhine.c
drivers/net/ethernet/via/via-velocity.c
drivers/net/ethernet/xilinx/ll_temac_main.c
drivers/net/ethernet/xilinx/xilinx_axienet_main.c
drivers/net/ethernet/xilinx/xilinx_emaclite.c
drivers/net/ethernet/xircom/xirc2ps_cs.c
drivers/net/ethernet/xscale/ixp4xx_eth.c
drivers/net/macvlan.c
drivers/net/phy/phy.c
drivers/net/usb/asix_devices.c
drivers/net/usb/ax88172a.c
drivers/net/usb/ax88179_178a.c
drivers/net/usb/dm9601.c
drivers/net/usb/lan78xx.c
drivers/net/usb/mcs7830.c
drivers/net/usb/r8152.c
drivers/net/usb/smsc75xx.c
drivers/net/usb/smsc95xx.c
drivers/net/usb/sr9700.c
drivers/net/usb/sr9800.c
drivers/s390/net/qeth_l2_main.c
drivers/s390/net/qeth_l3_main.c
drivers/staging/octeon/ethernet.c
include/linux/netdevice.h
include/net/dsa.h
net/8021q/vlan_dev.c
net/core/dev_ioctl.c
net/dsa/master.c
net/dsa/slave.c

index 02f1faac839a3f3079180c99305568c9c212549d..f57f255f2397f7b013a54ddc34d1d0c6decb5846 100644 (file)
@@ -229,6 +229,10 @@ ndo_siocdevprivate:
        This is used to implement SIOCDEVPRIVATE ioctl helpers.
        These should not be added to new drivers, so don't use.
 
+ndo_eth_ioctl:
+       Synchronization: rtnl_lock() semaphore.
+       Context: process
+
 ndo_get_stats:
        Synchronization: rtnl_lock() semaphore, dev_base_lock rwlock, or RCU.
        Context: atomic (can't sleep under rwlock or RCU)
index 7db3985359bce8f611ad9d3bf1a85b38adf56870..a722eb30e0140dbcac0722275d533538b66c1396 100644 (file)
@@ -625,7 +625,7 @@ interfaces of a DSA switch to share the same PHC.
 By design, PTP timestamping with a DSA switch does not need any special
 handling in the driver for the host port it is attached to.  However, when the
 host port also supports PTP timestamping, DSA will take care of intercepting
-the ``.ndo_do_ioctl`` calls towards the host port, and block attempts to enable
+the ``.ndo_eth_ioctl`` calls towards the host port, and block attempts to enable
 hardware timestamping on it. This is because the SO_TIMESTAMPING API does not
 allow the delivery of multiple hardware timestamps for the same packet, so
 anybody else except for the DSA switch port must be prevented from doing so.
@@ -688,7 +688,7 @@ ethtool ioctl operations for them need to be mediated by their respective MAC
 driver.  Therefore, as opposed to DSA switches, modifications need to be done
 to each individual MAC driver for PHY timestamping support. This entails:
 
-- Checking, in ``.ndo_do_ioctl``, whether ``phy_has_hwtstamp(netdev->phydev)``
+- Checking, in ``.ndo_eth_ioctl``, whether ``phy_has_hwtstamp(netdev->phydev)``
   is true or not. If it is, then the MAC driver should not process this request
   but instead pass it on to the PHY using ``phy_mii_ioctl()``.
 
@@ -747,7 +747,7 @@ For example, a typical driver design for TX timestamping might be to split the
 transmission part into 2 portions:
 
 1. "TX": checks whether PTP timestamping has been previously enabled through
-   the ``.ndo_do_ioctl`` ("``priv->hwtstamp_tx_enabled == true``") and the
+   the ``.ndo_eth_ioctl`` ("``priv->hwtstamp_tx_enabled == true``") and the
    current skb requires a TX timestamp ("``skb_shinfo(skb)->tx_flags &
    SKBTX_HW_TSTAMP``"). If this is true, it sets the
    "``skb_shinfo(skb)->tx_flags |= SKBTX_IN_PROGRESS``" flag. Note: as
index abf60f4d920343463263a5b0e32054ad3471e691..0aa8629fdf62e2de43dd928cb97228ed1a6d3663 100644 (file)
@@ -1745,10 +1745,10 @@ static int ipoib_ioctl(struct net_device *dev, struct ifreq *ifr,
 {
        struct ipoib_dev_priv *priv = ipoib_priv(dev);
 
-       if (!priv->rn_ops->ndo_do_ioctl)
+       if (!priv->rn_ops->ndo_eth_ioctl)
                return -EOPNOTSUPP;
 
-       return priv->rn_ops->ndo_do_ioctl(dev, ifr, cmd);
+       return priv->rn_ops->ndo_eth_ioctl(dev, ifr, cmd);
 }
 
 static int ipoib_dev_init(struct net_device *dev)
@@ -2078,7 +2078,7 @@ static const struct net_device_ops ipoib_netdev_ops_pf = {
        .ndo_set_vf_guid         = ipoib_set_vf_guid,
        .ndo_set_mac_address     = ipoib_set_mac,
        .ndo_get_stats64         = ipoib_get_stats,
-       .ndo_do_ioctl            = ipoib_ioctl,
+       .ndo_eth_ioctl           = ipoib_ioctl,
 };
 
 static const struct net_device_ops ipoib_netdev_ops_vf = {
@@ -2093,7 +2093,7 @@ static const struct net_device_ops ipoib_netdev_ops_vf = {
        .ndo_set_rx_mode         = ipoib_set_mcast_list,
        .ndo_get_iflink          = ipoib_get_iflink,
        .ndo_get_stats64         = ipoib_get_stats,
-       .ndo_do_ioctl            = ipoib_ioctl,
+       .ndo_eth_ioctl           = ipoib_ioctl,
 };
 
 static const struct net_device_ops ipoib_netdev_default_pf = {
index 96864183f92ec3829066f1a816ccf53f89fc3616..23769e937c286397f4a9b7e8c939ee9e44fb2601 100644 (file)
@@ -732,7 +732,7 @@ static int bond_check_dev_link(struct bonding *bond,
                        BMSR_LSTATUS : 0;
 
        /* Ethtool can't be used, fallback to MII ioctls. */
-       ioctl = slave_ops->ndo_do_ioctl;
+       ioctl = slave_ops->ndo_eth_ioctl;
        if (ioctl) {
                /* TODO: set pointer to correct ioctl on a per team member
                 *       bases to make this more efficient. that is, once
@@ -756,7 +756,7 @@ static int bond_check_dev_link(struct bonding *bond,
                }
        }
 
-       /* If reporting, report that either there's no dev->do_ioctl,
+       /* If reporting, report that either there's no ndo_eth_ioctl,
         * or both SIOCGMIIREG and get_link failed (meaning that we
         * cannot report link status).  If not reporting, pretend
         * we're ok.
@@ -1733,7 +1733,7 @@ int bond_enslave(struct net_device *bond_dev, struct net_device *slave_dev,
 
        if (!bond->params.use_carrier &&
            slave_dev->ethtool_ops->get_link == NULL &&
-           slave_ops->ndo_do_ioctl == NULL) {
+           slave_ops->ndo_eth_ioctl == NULL) {
                slave_warn(bond_dev, slave_dev, "no link monitoring support\n");
        }
 
@@ -3962,20 +3962,13 @@ static void bond_get_stats(struct net_device *bond_dev,
        rcu_read_unlock();
 }
 
-static int bond_do_ioctl(struct net_device *bond_dev, struct ifreq *ifr, int cmd)
+static int bond_eth_ioctl(struct net_device *bond_dev, struct ifreq *ifr, int cmd)
 {
        struct bonding *bond = netdev_priv(bond_dev);
-       struct net_device *slave_dev = NULL;
-       struct ifbond k_binfo;
-       struct ifbond __user *u_binfo = NULL;
-       struct ifslave k_sinfo;
-       struct ifslave __user *u_sinfo = NULL;
        struct mii_ioctl_data *mii = NULL;
-       struct bond_opt_value newval;
-       struct net *net;
-       int res = 0;
+       int res;
 
-       netdev_dbg(bond_dev, "bond_ioctl: cmd=%d\n", cmd);
+       netdev_dbg(bond_dev, "bond_eth_ioctl: cmd=%d\n", cmd);
 
        switch (cmd) {
        case SIOCGMIIPHY:
@@ -4000,6 +3993,28 @@ static int bond_do_ioctl(struct net_device *bond_dev, struct ifreq *ifr, int cmd
                }
 
                return 0;
+       default:
+               res = -EOPNOTSUPP;
+       }
+
+       return res;
+}
+
+static int bond_do_ioctl(struct net_device *bond_dev, struct ifreq *ifr, int cmd)
+{
+       struct bonding *bond = netdev_priv(bond_dev);
+       struct net_device *slave_dev = NULL;
+       struct ifbond k_binfo;
+       struct ifbond __user *u_binfo = NULL;
+       struct ifslave k_sinfo;
+       struct ifslave __user *u_sinfo = NULL;
+       struct bond_opt_value newval;
+       struct net *net;
+       int res = 0;
+
+       netdev_dbg(bond_dev, "bond_ioctl: cmd=%d\n", cmd);
+
+       switch (cmd) {
        case SIOCBONDINFOQUERY:
                u_binfo = (struct ifbond __user *)ifr->ifr_data;
 
@@ -4972,6 +4987,7 @@ static const struct net_device_ops bond_netdev_ops = {
        .ndo_start_xmit         = bond_start_xmit,
        .ndo_select_queue       = bond_select_queue,
        .ndo_get_stats64        = bond_get_stats,
+       .ndo_eth_ioctl          = bond_eth_ioctl,
        .ndo_do_ioctl           = bond_do_ioctl,
        .ndo_siocdevprivate     = bond_siocdevprivate,
        .ndo_change_rx_flags    = bond_change_rx_flags,
index f66e7fb9a2bb9357884389c47cadbe43cf7b9e93..dd4d3c48b98db105dd89981e1263890edef1cd84 100644 (file)
@@ -252,7 +252,7 @@ static const struct net_device_ops el3_netdev_ops = {
        .ndo_start_xmit         = el3_start_xmit,
        .ndo_tx_timeout         = el3_tx_timeout,
        .ndo_get_stats          = el3_get_stats,
-       .ndo_do_ioctl           = el3_ioctl,
+       .ndo_eth_ioctl          = el3_ioctl,
        .ndo_set_rx_mode        = set_multicast_list,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
index 7d7d3ffe25c3936e2ffb50974448c576aecd5c82..17c16333a412d46e637992e447eb726b70768fc6 100644 (file)
@@ -1052,7 +1052,7 @@ static const struct net_device_ops boomrang_netdev_ops = {
        .ndo_tx_timeout         = vortex_tx_timeout,
        .ndo_get_stats          = vortex_get_stats,
 #ifdef CONFIG_PCI
-       .ndo_do_ioctl           = vortex_ioctl,
+       .ndo_eth_ioctl          = vortex_ioctl,
 #endif
        .ndo_set_rx_mode        = set_rx_mode,
        .ndo_set_mac_address    = eth_mac_addr,
@@ -1069,7 +1069,7 @@ static const struct net_device_ops vortex_netdev_ops = {
        .ndo_tx_timeout         = vortex_tx_timeout,
        .ndo_get_stats          = vortex_get_stats,
 #ifdef CONFIG_PCI
-       .ndo_do_ioctl           = vortex_ioctl,
+       .ndo_eth_ioctl          = vortex_ioctl,
 #endif
        .ndo_set_rx_mode        = set_rx_mode,
        .ndo_set_mac_address    = eth_mac_addr,
index 172947fc051a12346e3e00c7e9b5e8f2fb29c055..9595dd1f32cad53281a4aaf2f308ef414709014d 100644 (file)
@@ -635,7 +635,7 @@ static void ax_eeprom_register_write(struct eeprom_93cx6 *eeprom)
 static const struct net_device_ops ax_netdev_ops = {
        .ndo_open               = ax_open,
        .ndo_stop               = ax_close,
-       .ndo_do_ioctl           = ax_ioctl,
+       .ndo_eth_ioctl          = ax_ioctl,
 
        .ndo_start_xmit         = ax_ei_start_xmit,
        .ndo_tx_timeout         = ax_ei_tx_timeout,
index 8c321dfc7b3b6581732a5bde9f89ad577d82d7cc..3c370e686ec3ead3b3513187f1295ad1337616f1 100644 (file)
@@ -128,7 +128,7 @@ static inline struct axnet_dev *PRIV(struct net_device *dev)
 static const struct net_device_ops axnet_netdev_ops = {
        .ndo_open               = axnet_open,
        .ndo_stop               = axnet_close,
-       .ndo_do_ioctl           = axnet_ioctl,
+       .ndo_eth_ioctl          = axnet_ioctl,
        .ndo_start_xmit         = axnet_start_xmit,
        .ndo_tx_timeout         = axnet_tx_timeout,
        .ndo_get_stats          = get_stats,
index cac03670638217d48817f20c863f3fc11d309b61..96ad72abd373269489e21b5e26127240b2942928 100644 (file)
@@ -223,7 +223,7 @@ static const struct net_device_ops pcnet_netdev_ops = {
        .ndo_set_config         = set_config,
        .ndo_start_xmit         = ei_start_xmit,
        .ndo_get_stats          = ei_get_stats,
-       .ndo_do_ioctl           = ei_ioctl,
+       .ndo_eth_ioctl          = ei_ioctl,
        .ndo_set_rx_mode        = ei_set_multicast_list,
        .ndo_tx_timeout         = ei_tx_timeout,
        .ndo_set_mac_address    = eth_mac_addr,
index b8e771c2bc400dab1a30d11bffffa8a3ce314b9a..c4ecf4fcadf841b319d9c333b573c2f776f6c96d 100644 (file)
@@ -1179,8 +1179,8 @@ static int owl_emac_ndo_set_mac_addr(struct net_device *netdev, void *addr)
        return owl_emac_setup_frame_xmit(netdev_priv(netdev));
 }
 
-static int owl_emac_ndo_do_ioctl(struct net_device *netdev,
-                                struct ifreq *req, int cmd)
+static int owl_emac_ndo_eth_ioctl(struct net_device *netdev,
+                                 struct ifreq *req, int cmd)
 {
        if (!netif_running(netdev))
                return -EINVAL;
@@ -1224,7 +1224,7 @@ static const struct net_device_ops owl_emac_netdev_ops = {
        .ndo_set_rx_mode        = owl_emac_ndo_set_rx_mode,
        .ndo_set_mac_address    = owl_emac_ndo_set_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_do_ioctl           = owl_emac_ndo_do_ioctl,
+       .ndo_eth_ioctl          = owl_emac_ndo_eth_ioctl,
        .ndo_tx_timeout         = owl_emac_ndo_tx_timeout,
        .ndo_get_stats          = owl_emac_ndo_get_stats,
 };
index 7965e5e3c9859654d82b3511883b408f476590b5..e0f6cc910bd2432fe05102d1189ee3dace24cb53 100644 (file)
@@ -625,7 +625,7 @@ static const struct net_device_ops netdev_ops = {
        .ndo_tx_timeout         = tx_timeout,
        .ndo_get_stats          = get_stats,
        .ndo_set_rx_mode        = set_rx_mode,
-       .ndo_do_ioctl           = netdev_ioctl,
+       .ndo_eth_ioctl          = netdev_ioctl,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
 #ifdef VLAN_SUPPORT
index 41f8821f792d301bf8ca5e8801bb47e09aca60fa..920633161174d5cac550cf5ea8b488c10d9daad1 100644 (file)
@@ -3882,7 +3882,7 @@ static const struct net_device_ops et131x_netdev_ops = {
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_get_stats          = et131x_stats,
-       .ndo_do_ioctl           = phy_do_ioctl,
+       .ndo_eth_ioctl          = phy_do_ioctl,
 };
 
 static int et131x_pci_setup(struct pci_dev *pdev,
index f99ae317c188a8a7aa7804fcd53db7f59b6c25e1..037baea1c73881b79982ca0fbb84f9742be8b06b 100644 (file)
@@ -774,7 +774,7 @@ static const struct net_device_ops emac_netdev_ops = {
        .ndo_start_xmit         = emac_start_xmit,
        .ndo_tx_timeout         = emac_timeout,
        .ndo_set_rx_mode        = emac_set_rx_mode,
-       .ndo_do_ioctl           = phy_do_ioctl_running,
+       .ndo_eth_ioctl          = phy_do_ioctl_running,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = emac_set_mac_address,
 #ifdef CONFIG_NET_POLL_CONTROLLER
index 9cac5aa75a73866f00b9b00fe0a3fec5330cb669..92e4246dc359cf5acb4601b5d31089de6dd7e125 100644 (file)
@@ -1729,7 +1729,7 @@ static const struct net_device_ops amd8111e_netdev_ops = {
        .ndo_set_rx_mode        = amd8111e_set_multicast_list,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = amd8111e_set_mac_address,
-       .ndo_do_ioctl           = amd8111e_ioctl,
+       .ndo_eth_ioctl          = amd8111e_ioctl,
        .ndo_change_mtu         = amd8111e_change_mtu,
 #ifdef CONFIG_NET_POLL_CONTROLLER
        .ndo_poll_controller     = amd8111e_poll,
index 19e195420e2434a9416c7cd3a691266ad0f58268..9c1636222b99cc67e6ca7854a28a620ba0dae861 100644 (file)
@@ -1051,7 +1051,7 @@ static const struct net_device_ops au1000_netdev_ops = {
        .ndo_stop               = au1000_close,
        .ndo_start_xmit         = au1000_tx,
        .ndo_set_rx_mode        = au1000_multicast_list,
-       .ndo_do_ioctl           = phy_do_ioctl_running,
+       .ndo_eth_ioctl          = phy_do_ioctl_running,
        .ndo_tx_timeout         = au1000_tx_timeout,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
index 4100ab07e6b79e116a4fa036bb37a3c8e4f59234..70d76fdb9f569d59dd8a99e0228b0e17bc28a762 100644 (file)
@@ -1572,7 +1572,7 @@ static const struct net_device_ops pcnet32_netdev_ops = {
        .ndo_tx_timeout         = pcnet32_tx_timeout,
        .ndo_get_stats          = pcnet32_get_stats,
        .ndo_set_rx_mode        = pcnet32_set_multicast_list,
-       .ndo_do_ioctl           = pcnet32_ioctl,
+       .ndo_eth_ioctl          = pcnet32_ioctl,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
 #ifdef CONFIG_NET_POLL_CONTROLLER
index 4f714f874c4f90335ab5f98c60005af91bd09aef..17a585adfb49ce9aa18664c40538dbd39459205c 100644 (file)
@@ -2284,7 +2284,7 @@ static const struct net_device_ops xgbe_netdev_ops = {
        .ndo_set_rx_mode        = xgbe_set_rx_mode,
        .ndo_set_mac_address    = xgbe_set_mac_address,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_do_ioctl           = xgbe_ioctl,
+       .ndo_eth_ioctl          = xgbe_ioctl,
        .ndo_change_mtu         = xgbe_change_mtu,
        .ndo_tx_timeout         = xgbe_tx_timeout,
        .ndo_get_stats64        = xgbe_get_stats64,
index 4af0cd9530de64ffd49d519a6b3651cf05f2e18f..e22935ce95730bea37ddd5f7c964c240f38a986e 100644 (file)
@@ -421,7 +421,7 @@ static const struct net_device_ops aq_ndev_ops = {
        .ndo_change_mtu = aq_ndev_change_mtu,
        .ndo_set_mac_address = aq_ndev_set_mac_address,
        .ndo_set_features = aq_ndev_set_features,
-       .ndo_do_ioctl = aq_ndev_ioctl,
+       .ndo_eth_ioctl = aq_ndev_ioctl,
        .ndo_vlan_rx_add_vid = aq_ndo_vlan_rx_add_vid,
        .ndo_vlan_rx_kill_vid = aq_ndo_vlan_rx_kill_vid,
        .ndo_setup_tc = aq_ndo_setup_tc,
index 67b8113a2b5361ea2ab1dc2831fd5ca8a462d2c9..38c288ec9059013419c8e283957a9446b93e7a08 100644 (file)
@@ -844,7 +844,7 @@ static const struct net_device_ops arc_emac_netdev_ops = {
        .ndo_set_mac_address    = arc_emac_set_address,
        .ndo_get_stats          = arc_emac_stats,
        .ndo_set_rx_mode        = arc_emac_set_rx_mode,
-       .ndo_do_ioctl           = phy_do_ioctl_running,
+       .ndo_eth_ioctl          = phy_do_ioctl_running,
 #ifdef CONFIG_NET_POLL_CONTROLLER
        .ndo_poll_controller    = arc_emac_poll_controller,
 #endif
index 1ba81b1eb6fdbe7a02a46f486015a17745cb9552..02ae98aabf91c87e91f63e5010e85bd5f08a9ff1 100644 (file)
@@ -1851,7 +1851,7 @@ static const struct net_device_ops ag71xx_netdev_ops = {
        .ndo_open               = ag71xx_open,
        .ndo_stop               = ag71xx_stop,
        .ndo_start_xmit         = ag71xx_hard_start_xmit,
-       .ndo_do_ioctl           = phy_do_ioctl,
+       .ndo_eth_ioctl          = phy_do_ioctl,
        .ndo_tx_timeout         = ag71xx_tx_timeout,
        .ndo_change_mtu         = ag71xx_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
index 11ef1fbe7aeec218b743f2c77a90d15508b7f8d1..4ea157efca868c2634d6242aacf1850ff06e0d47 100644 (file)
@@ -1701,7 +1701,7 @@ static const struct net_device_ops alx_netdev_ops = {
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = alx_set_mac_address,
        .ndo_change_mtu         = alx_change_mtu,
-       .ndo_do_ioctl           = alx_ioctl,
+       .ndo_eth_ioctl           = alx_ioctl,
        .ndo_tx_timeout         = alx_tx_timeout,
        .ndo_fix_features       = alx_fix_features,
 #ifdef CONFIG_NET_POLL_CONTROLLER
index 1c6246a5dc22d0cab7baef1d96525b8143f4adf7..3b51b172b3172b3933a029940620f33fc1c6bc26 100644 (file)
@@ -2609,7 +2609,7 @@ static const struct net_device_ops atl1c_netdev_ops = {
        .ndo_change_mtu         = atl1c_change_mtu,
        .ndo_fix_features       = atl1c_fix_features,
        .ndo_set_features       = atl1c_set_features,
-       .ndo_do_ioctl           = atl1c_ioctl,
+       .ndo_eth_ioctl          = atl1c_ioctl,
        .ndo_tx_timeout         = atl1c_tx_timeout,
        .ndo_get_stats          = atl1c_get_stats,
 #ifdef CONFIG_NET_POLL_CONTROLLER
index 2eb0a2ab69f6821ed212c58ba103e6be7ca4944b..753973ac922e9bc7576a102b1a4d1664cb4d0b75 100644 (file)
@@ -2247,7 +2247,7 @@ static const struct net_device_ops atl1e_netdev_ops = {
        .ndo_fix_features       = atl1e_fix_features,
        .ndo_set_features       = atl1e_set_features,
        .ndo_change_mtu         = atl1e_change_mtu,
-       .ndo_do_ioctl           = atl1e_ioctl,
+       .ndo_eth_ioctl          = atl1e_ioctl,
        .ndo_tx_timeout         = atl1e_tx_timeout,
 #ifdef CONFIG_NET_POLL_CONTROLLER
        .ndo_poll_controller    = atl1e_netpoll,
index c67201a13cf56c6c39c4c36de0cef1981527c827..68f6c0bbd945c975965e2623faf926dbe21021d9 100644 (file)
@@ -2885,7 +2885,7 @@ static const struct net_device_ops atl1_netdev_ops = {
        .ndo_change_mtu         = atl1_change_mtu,
        .ndo_fix_features       = atlx_fix_features,
        .ndo_set_features       = atlx_set_features,
-       .ndo_do_ioctl           = atlx_ioctl,
+       .ndo_eth_ioctl          = atlx_ioctl,
        .ndo_tx_timeout         = atlx_tx_timeout,
 #ifdef CONFIG_NET_POLL_CONTROLLER
        .ndo_poll_controller    = atl1_poll_controller,
index 0cc0db04c27d11b7f9283db758556e532d6017ef..b69298ddb647fe9922d352d7859027bda52c5c08 100644 (file)
@@ -1293,7 +1293,7 @@ static const struct net_device_ops atl2_netdev_ops = {
        .ndo_change_mtu         = atl2_change_mtu,
        .ndo_fix_features       = atl2_fix_features,
        .ndo_set_features       = atl2_set_features,
-       .ndo_do_ioctl           = atl2_ioctl,
+       .ndo_eth_ioctl          = atl2_ioctl,
        .ndo_tx_timeout         = atl2_tx_timeout,
 #ifdef CONFIG_NET_POLL_CONTROLLER
        .ndo_poll_controller    = atl2_poll_controller,
index ad2655efe4234e53df386d71bffc3c11ecfa7ac4..fa784953c60188b47ca75d377d0b41bcb72ec06d 100644 (file)
@@ -2198,7 +2198,7 @@ static const struct net_device_ops b44_netdev_ops = {
        .ndo_set_rx_mode        = b44_set_rx_mode,
        .ndo_set_mac_address    = b44_set_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_do_ioctl           = b44_ioctl,
+       .ndo_eth_ioctl          = b44_ioctl,
        .ndo_tx_timeout         = b44_tx_timeout,
        .ndo_change_mtu         = b44_change_mtu,
 #ifdef CONFIG_NET_POLL_CONTROLLER
index 977f097fc7bf70f1e84e4c3456fda5206d3950b3..5ec056a26cf8e85486874f38c7314a90c4a11743 100644 (file)
@@ -1699,7 +1699,7 @@ static const struct net_device_ops bcm_enet_ops = {
        .ndo_start_xmit         = bcm_enet_start_xmit,
        .ndo_set_mac_address    = bcm_enet_set_mac_address,
        .ndo_set_rx_mode        = bcm_enet_set_multicast_list,
-       .ndo_do_ioctl           = bcm_enet_ioctl,
+       .ndo_eth_ioctl          = bcm_enet_ioctl,
        .ndo_change_mtu         = bcm_enet_change_mtu,
 };
 
@@ -2446,7 +2446,7 @@ static const struct net_device_ops bcm_enetsw_ops = {
        .ndo_stop               = bcm_enetsw_stop,
        .ndo_start_xmit         = bcm_enet_start_xmit,
        .ndo_change_mtu         = bcm_enet_change_mtu,
-       .ndo_do_ioctl           = bcm_enetsw_ioctl,
+       .ndo_eth_ioctl          = bcm_enetsw_ioctl,
 };
 
 
index 075f6e146b29608646b6b491fa9ce747eb9b9531..fe4d99abd54876ed4a2de109429861f6460aeead 100644 (file)
@@ -1263,7 +1263,7 @@ static const struct net_device_ops bgmac_netdev_ops = {
        .ndo_set_rx_mode        = bgmac_set_rx_mode,
        .ndo_set_mac_address    = bgmac_set_mac_address,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_do_ioctl           = phy_do_ioctl_running,
+       .ndo_eth_ioctl           = phy_do_ioctl_running,
        .ndo_change_mtu         = bgmac_change_mtu,
 };
 
index bee6cfad9fc69a81302febbbff9aa71570307e3e..89ee1c0e9c79b9bfe94885344545398713d4da5f 100644 (file)
@@ -8546,7 +8546,7 @@ static const struct net_device_ops bnx2_netdev_ops = {
        .ndo_stop               = bnx2_close,
        .ndo_get_stats64        = bnx2_get_stats64,
        .ndo_set_rx_mode        = bnx2_set_rx_mode,
-       .ndo_do_ioctl           = bnx2_ioctl,
+       .ndo_eth_ioctl          = bnx2_ioctl,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = bnx2_change_mac_addr,
        .ndo_change_mtu         = bnx2_change_mtu,
index 2acbc73dcd1826be9b57d9fc9a8bfcf50a08e19b..6d98134913cdbb949311a6c6b674f7461dddafd8 100644 (file)
@@ -13048,7 +13048,7 @@ static const struct net_device_ops bnx2x_netdev_ops = {
        .ndo_set_rx_mode        = bnx2x_set_rx_mode,
        .ndo_set_mac_address    = bnx2x_change_mac_addr,
        .ndo_validate_addr      = bnx2x_validate_addr,
-       .ndo_do_ioctl           = bnx2x_ioctl,
+       .ndo_eth_ioctl          = bnx2x_ioctl,
        .ndo_change_mtu         = bnx2x_change_mtu,
        .ndo_fix_features       = bnx2x_fix_features,
        .ndo_set_features       = bnx2x_set_features,
index 4db162cee911e99ba70f3c60828d70d90f555b55..e34c362a3c5867329d19169ce623525fc82f33ae 100644 (file)
@@ -12667,7 +12667,7 @@ static const struct net_device_ops bnxt_netdev_ops = {
        .ndo_stop               = bnxt_close,
        .ndo_get_stats64        = bnxt_get_stats64,
        .ndo_set_rx_mode        = bnxt_set_rx_mode,
-       .ndo_do_ioctl           = bnxt_ioctl,
+       .ndo_eth_ioctl          = bnxt_ioctl,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = bnxt_change_mac_addr,
        .ndo_change_mtu         = bnxt_change_mtu,
index db74241935ab4154bcd2c264f37ea638f60ef978..63e2237e0cb4d7bb8a7fa71b8d8327d71842cf37 100644 (file)
@@ -3659,7 +3659,7 @@ static const struct net_device_ops bcmgenet_netdev_ops = {
        .ndo_tx_timeout         = bcmgenet_timeout,
        .ndo_set_rx_mode        = bcmgenet_set_rx_mode,
        .ndo_set_mac_address    = bcmgenet_set_mac_addr,
-       .ndo_do_ioctl           = phy_do_ioctl_running,
+       .ndo_eth_ioctl          = phy_do_ioctl_running,
        .ndo_set_features       = bcmgenet_set_features,
 #ifdef CONFIG_NET_POLL_CONTROLLER
        .ndo_poll_controller    = bcmgenet_poll_controller,
index 5b4568c2ad1c4bd641460fbb7c836b14d77d91be..f38f40eb966e3cd70dbdafc0caa458e75651fe90 100644 (file)
@@ -2136,7 +2136,7 @@ static const struct net_device_ops sbmac_netdev_ops = {
        .ndo_start_xmit         = sbmac_start_tx,
        .ndo_set_rx_mode        = sbmac_set_rx_mode,
        .ndo_tx_timeout         = sbmac_tx_timeout,
-       .ndo_do_ioctl           = sbmac_mii_ioctl,
+       .ndo_eth_ioctl          = sbmac_mii_ioctl,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = eth_mac_addr,
 #ifdef CONFIG_NET_POLL_CONTROLLER
index b0e49643f483210b961b00a5022b72357fda74e5..6f82eeaa4b9f3544195387a0b81db7f2bdcc0c9f 100644 (file)
@@ -14290,7 +14290,7 @@ static const struct net_device_ops tg3_netdev_ops = {
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_rx_mode        = tg3_set_rx_mode,
        .ndo_set_mac_address    = tg3_set_mac_addr,
-       .ndo_do_ioctl           = tg3_ioctl,
+       .ndo_eth_ioctl          = tg3_ioctl,
        .ndo_tx_timeout         = tg3_tx_timeout,
        .ndo_change_mtu         = tg3_change_mtu,
        .ndo_fix_features       = tg3_fix_features,
index 7d2fe13a52f88bba83e70bb58930e8db4edf655a..181ebc2359255f3e77635163f3e136876528a359 100644 (file)
@@ -3664,7 +3664,7 @@ static const struct net_device_ops macb_netdev_ops = {
        .ndo_start_xmit         = macb_start_xmit,
        .ndo_set_rx_mode        = macb_set_rx_mode,
        .ndo_get_stats          = macb_get_stats,
-       .ndo_do_ioctl           = macb_ioctl,
+       .ndo_eth_ioctl          = macb_ioctl,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_change_mtu         = macb_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
@@ -4323,7 +4323,7 @@ static const struct net_device_ops at91ether_netdev_ops = {
        .ndo_get_stats          = macb_get_stats,
        .ndo_set_rx_mode        = macb_set_rx_mode,
        .ndo_set_mac_address    = eth_mac_addr,
-       .ndo_do_ioctl           = macb_ioctl,
+       .ndo_eth_ioctl          = macb_ioctl,
        .ndo_validate_addr      = eth_validate_addr,
 #ifdef CONFIG_NET_POLL_CONTROLLER
        .ndo_poll_controller    = at91ether_poll_controller,
index 591229b96257e4e5cc379a7dd19670e280902d66..a4a5209a93867bc8f7a194e4c5bdc9571e674dfb 100644 (file)
@@ -3223,7 +3223,7 @@ static const struct net_device_ops lionetdevops = {
        .ndo_vlan_rx_add_vid    = liquidio_vlan_rx_add_vid,
        .ndo_vlan_rx_kill_vid   = liquidio_vlan_rx_kill_vid,
        .ndo_change_mtu         = liquidio_change_mtu,
-       .ndo_do_ioctl           = liquidio_ioctl,
+       .ndo_eth_ioctl          = liquidio_ioctl,
        .ndo_fix_features       = liquidio_fix_features,
        .ndo_set_features       = liquidio_set_features,
        .ndo_set_vf_mac         = liquidio_set_vf_mac,
index ffddb3126a3236d5bd99d6755400335adc167dbf..3085dd455a1733911287960059ae94b17b578919 100644 (file)
@@ -1889,7 +1889,7 @@ static const struct net_device_ops lionetdevops = {
        .ndo_vlan_rx_add_vid    = liquidio_vlan_rx_add_vid,
        .ndo_vlan_rx_kill_vid   = liquidio_vlan_rx_kill_vid,
        .ndo_change_mtu         = liquidio_change_mtu,
-       .ndo_do_ioctl           = liquidio_ioctl,
+       .ndo_eth_ioctl          = liquidio_ioctl,
        .ndo_fix_features       = liquidio_fix_features,
        .ndo_set_features       = liquidio_set_features,
 };
index 48ff6fb0eed9df1eea989d27dfe8f6bb8d584907..30463a6d1f8c998ec654fd7bcd938529444580ff 100644 (file)
@@ -1373,7 +1373,7 @@ static const struct net_device_ops octeon_mgmt_ops = {
        .ndo_start_xmit =               octeon_mgmt_xmit,
        .ndo_set_rx_mode =              octeon_mgmt_set_rx_filtering,
        .ndo_set_mac_address =          octeon_mgmt_set_mac_address,
-       .ndo_do_ioctl =                 octeon_mgmt_ioctl,
+       .ndo_eth_ioctl =                        octeon_mgmt_ioctl,
        .ndo_change_mtu =               octeon_mgmt_change_mtu,
 #ifdef CONFIG_NET_POLL_CONTROLLER
        .ndo_poll_controller =          octeon_mgmt_poll_controller,
index e2b290135fd97f1c8d3db60b3cef58b911263829..efaaa57d4ed5f20aba98c223d4826d095a347e99 100644 (file)
@@ -2096,7 +2096,7 @@ static const struct net_device_ops nicvf_netdev_ops = {
        .ndo_fix_features       = nicvf_fix_features,
        .ndo_set_features       = nicvf_set_features,
        .ndo_bpf                = nicvf_xdp,
-       .ndo_do_ioctl           = nicvf_ioctl,
+       .ndo_eth_ioctl           = nicvf_ioctl,
        .ndo_set_rx_mode        = nicvf_set_rx_mode,
 };
 
index 512da98019c66ed53bb9d876acf252f28a04d2e8..e7575d41f4f5bb13099b847eace551a4371ef47e 100644 (file)
@@ -924,7 +924,7 @@ static const struct net_device_ops cxgb_netdev_ops = {
        .ndo_get_stats          = t1_get_stats,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_rx_mode        = t1_set_rxmode,
-       .ndo_do_ioctl           = t1_ioctl,
+       .ndo_eth_ioctl          = t1_ioctl,
        .ndo_change_mtu         = t1_change_mtu,
        .ndo_set_mac_address    = t1_set_mac_addr,
        .ndo_fix_features       = t1_fix_features,
index eae893d7d8400499c139bb579a413cb04b9c7c2d..72af9d2a00ae21895766a7b30dca90717dfc3c02 100644 (file)
@@ -3184,7 +3184,7 @@ static const struct net_device_ops cxgb_netdev_ops = {
        .ndo_get_stats          = cxgb_get_stats,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_rx_mode        = cxgb_set_rxmode,
-       .ndo_do_ioctl           = cxgb_ioctl,
+       .ndo_eth_ioctl          = cxgb_ioctl,
        .ndo_siocdevprivate     = cxgb_siocdevprivate,
        .ndo_change_mtu         = cxgb_change_mtu,
        .ndo_set_mac_address    = cxgb_set_mac_addr,
index dbf9a0e6601d1d41d046c7b07a932c729a2d7459..aa8573202c37f608bcfca5c6ff936a2af0203f34 100644 (file)
@@ -3872,7 +3872,7 @@ static const struct net_device_ops cxgb4_netdev_ops = {
        .ndo_set_mac_address  = cxgb_set_mac_addr,
        .ndo_set_features     = cxgb_set_features,
        .ndo_validate_addr    = eth_validate_addr,
-       .ndo_do_ioctl         = cxgb_ioctl,
+       .ndo_eth_ioctl         = cxgb_ioctl,
        .ndo_change_mtu       = cxgb_change_mtu,
 #ifdef CONFIG_NET_POLL_CONTROLLER
        .ndo_poll_controller  = cxgb_netpoll,
index 2820a0bb971bffbff848fd2b9de5ce467bc7c289..2842628ad2c5a7a784ceab05def75add2d034eaf 100644 (file)
@@ -2837,7 +2837,7 @@ static const struct net_device_ops cxgb4vf_netdev_ops     = {
        .ndo_set_rx_mode        = cxgb4vf_set_rxmode,
        .ndo_set_mac_address    = cxgb4vf_set_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_do_ioctl           = cxgb4vf_do_ioctl,
+       .ndo_eth_ioctl          = cxgb4vf_do_ioctl,
        .ndo_change_mtu         = cxgb4vf_change_mtu,
        .ndo_fix_features       = cxgb4vf_fix_features,
        .ndo_set_features       = cxgb4vf_set_features,
index 9f5e5ec699911db68648781cff519d369ddeae48..072fac5f5d2434e14a86c2e0e34d377b6887947e 100644 (file)
@@ -733,7 +733,7 @@ static const struct net_device_ops ep93xx_netdev_ops = {
        .ndo_open               = ep93xx_open,
        .ndo_stop               = ep93xx_close,
        .ndo_start_xmit         = ep93xx_xmit,
-       .ndo_do_ioctl           = ep93xx_ioctl,
+       .ndo_eth_ioctl          = ep93xx_ioctl,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = eth_mac_addr,
 };
index 2a8bf53c2f7528847113c05f10c3e1c93923e360..e842de6f66356b2736cadbef776264afbc5eaff9 100644 (file)
@@ -1372,7 +1372,7 @@ static const struct net_device_ops dm9000_netdev_ops = {
        .ndo_start_xmit         = dm9000_start_xmit,
        .ndo_tx_timeout         = dm9000_timeout,
        .ndo_set_rx_mode        = dm9000_hash_table,
-       .ndo_do_ioctl           = dm9000_ioctl,
+       .ndo_eth_ioctl          = dm9000_ioctl,
        .ndo_set_features       = dm9000_set_features,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = eth_mac_addr,
index c1dcd6ca1457c615e7a6bf443a22e1c27c71057a..fcedd733bacbf1f1273a67f7f4f6004f1339ddb5 100644 (file)
@@ -1271,7 +1271,7 @@ static const struct net_device_ops tulip_netdev_ops = {
        .ndo_tx_timeout         = tulip_tx_timeout,
        .ndo_stop               = tulip_close,
        .ndo_get_stats          = tulip_get_stats,
-       .ndo_do_ioctl           = private_ioctl,
+       .ndo_eth_ioctl          = private_ioctl,
        .ndo_set_rx_mode        = set_rx_mode,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
index f6ff1f76eacb9c2e46d866b8542fa77eac5ff7fb..07a48f6bf0fa383b6b325735d7c1739a1f58b496 100644 (file)
@@ -341,7 +341,7 @@ static const struct net_device_ops netdev_ops = {
        .ndo_start_xmit         = start_tx,
        .ndo_get_stats          = get_stats,
        .ndo_set_rx_mode        = set_rx_mode,
-       .ndo_do_ioctl           = netdev_ioctl,
+       .ndo_eth_ioctl          = netdev_ioctl,
        .ndo_tx_timeout         = tx_timeout,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
index 734acb834c986b28b190fe140d59a2fda1e5e3fb..202ecb1320534c01c30b776410935dfa3e2dc9fa 100644 (file)
@@ -95,7 +95,7 @@ static const struct net_device_ops netdev_ops = {
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_set_rx_mode        = set_multicast,
-       .ndo_do_ioctl           = rio_ioctl,
+       .ndo_eth_ioctl          = rio_ioctl,
        .ndo_tx_timeout         = rio_tx_timeout,
 };
 
index ee0ca712dd1cf90d84c19c24f799b8523da84408..c36d186dffed13622a5c1b61d4a3bcf6fdf56208 100644 (file)
@@ -479,7 +479,7 @@ static const struct net_device_ops netdev_ops = {
        .ndo_start_xmit         = start_tx,
        .ndo_get_stats          = get_stats,
        .ndo_set_rx_mode        = set_rx_mode,
-       .ndo_do_ioctl           = netdev_ioctl,
+       .ndo_eth_ioctl          = netdev_ioctl,
        .ndo_tx_timeout         = tx_timeout,
        .ndo_change_mtu         = change_mtu,
        .ndo_set_mac_address    = sundance_set_mac_addr,
index 48c6eb142dcc036b257f6f172d688277fa2859c1..6c51cf991dad5fffd22460f3ad393349a53eb8a8 100644 (file)
@@ -742,7 +742,7 @@ static const struct net_device_ops dnet_netdev_ops = {
        .ndo_stop               = dnet_close,
        .ndo_get_stats          = dnet_get_stats,
        .ndo_start_xmit         = dnet_start_xmit,
-       .ndo_do_ioctl           = phy_do_ioctl_running,
+       .ndo_eth_ioctl          = phy_do_ioctl_running,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
 };
index e1b43b07755bdcb65d70df5f1a7f57999b499766..ed1ed48e7483889397ed3892be16606aedfcfa34 100644 (file)
@@ -1009,7 +1009,7 @@ static const struct ethtool_ops ethoc_ethtool_ops = {
 static const struct net_device_ops ethoc_netdev_ops = {
        .ndo_open = ethoc_open,
        .ndo_stop = ethoc_stop,
-       .ndo_do_ioctl = ethoc_ioctl,
+       .ndo_eth_ioctl = ethoc_ioctl,
        .ndo_set_mac_address = ethoc_set_mac_address,
        .ndo_set_rx_mode = ethoc_set_multicast_list,
        .ndo_change_mtu = ethoc_change_mtu,
index 11dbbfd38770c6b030c2fb04369188712ea9f6ad..ff76e401a014bbdd32a497fc5b7ecff1168802a9 100644 (file)
@@ -1616,7 +1616,7 @@ static const struct net_device_ops ftgmac100_netdev_ops = {
        .ndo_start_xmit         = ftgmac100_hard_start_xmit,
        .ndo_set_mac_address    = ftgmac100_set_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_do_ioctl           = phy_do_ioctl,
+       .ndo_eth_ioctl          = phy_do_ioctl,
        .ndo_tx_timeout         = ftgmac100_tx_timeout,
        .ndo_set_rx_mode        = ftgmac100_set_rx_mode,
        .ndo_set_features       = ftgmac100_set_features,
index 5a1a8f2ea63c3f2557c1b798c6ce271521099358..8a341e2d5833435a782f8cdd118fff3ff29b4eca 100644 (file)
@@ -1043,7 +1043,7 @@ static const struct net_device_ops ftmac100_netdev_ops = {
        .ndo_start_xmit         = ftmac100_hard_start_xmit,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_do_ioctl           = ftmac100_do_ioctl,
+       .ndo_eth_ioctl          = ftmac100_do_ioctl,
 };
 
 /******************************************************************************
index 0f141c14d72df20350ec01c45225f19ab9cac0cf..25c91b3c5fd30ceb986e6feaeb73881c8974e637 100644 (file)
@@ -463,7 +463,7 @@ static const struct net_device_ops netdev_ops = {
        .ndo_start_xmit         = start_tx,
        .ndo_get_stats          = get_stats,
        .ndo_set_rx_mode        = set_rx_mode,
-       .ndo_do_ioctl           = mii_ioctl,
+       .ndo_eth_ioctl          = mii_ioctl,
        .ndo_tx_timeout         = fealnx_tx_timeout,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
index e6826561cf11943143333208a2441e90c2581354..685d2d8a3b366268ec4a06e0e51bdf8a65549edf 100644 (file)
@@ -3157,7 +3157,7 @@ static const struct net_device_ops dpaa_ops = {
        .ndo_set_mac_address = dpaa_set_mac_address,
        .ndo_validate_addr = eth_validate_addr,
        .ndo_set_rx_mode = dpaa_set_rx_mode,
-       .ndo_do_ioctl = dpaa_ioctl,
+       .ndo_eth_ioctl = dpaa_ioctl,
        .ndo_setup_tc = dpaa_setup_tc,
        .ndo_change_mtu = dpaa_change_mtu,
        .ndo_bpf = dpaa_xdp,
index 973352393bd4fee813c8a1b5b27a6afe6bb465d8..f664021c3ad183fd1cde5cc3d41d465d85bb5138 100644 (file)
@@ -2594,7 +2594,7 @@ static const struct net_device_ops dpaa2_eth_ops = {
        .ndo_get_stats64 = dpaa2_eth_get_stats,
        .ndo_set_rx_mode = dpaa2_eth_set_rx_mode,
        .ndo_set_features = dpaa2_eth_set_features,
-       .ndo_do_ioctl = dpaa2_eth_ioctl,
+       .ndo_eth_ioctl = dpaa2_eth_ioctl,
        .ndo_change_mtu = dpaa2_eth_change_mtu,
        .ndo_bpf = dpaa2_eth_xdp,
        .ndo_xdp_xmit = dpaa2_eth_xdp_xmit,
index c84f6c226743d1e8898bfba0bdf63c24464d8357..60d94e0a07d6e55a57b169bed3e920947fe1e853 100644 (file)
@@ -735,7 +735,7 @@ static const struct net_device_ops enetc_ndev_ops = {
        .ndo_set_vf_vlan        = enetc_pf_set_vf_vlan,
        .ndo_set_vf_spoofchk    = enetc_pf_set_vf_spoofchk,
        .ndo_set_features       = enetc_pf_set_features,
-       .ndo_do_ioctl           = enetc_ioctl,
+       .ndo_eth_ioctl          = enetc_ioctl,
        .ndo_setup_tc           = enetc_setup_tc,
        .ndo_bpf                = enetc_setup_bpf,
        .ndo_xdp_xmit           = enetc_xdp_xmit,
index 03090ba7e22615fbc0e5232fba9c442f1273e1fd..1a9d1e8b772ce7fa120bc0beadf98f611f7213b6 100644 (file)
@@ -99,7 +99,7 @@ static const struct net_device_ops enetc_ndev_ops = {
        .ndo_get_stats          = enetc_get_stats,
        .ndo_set_mac_address    = enetc_vf_set_mac_addr,
        .ndo_set_features       = enetc_vf_set_features,
-       .ndo_do_ioctl           = enetc_ioctl,
+       .ndo_eth_ioctl          = enetc_ioctl,
        .ndo_setup_tc           = enetc_setup_tc,
 };
 
index 8aea707a65a77bcc7bafdae68405d212342303e2..e361be85f26f752edf62a0cb0f9c4ca15e7a89b3 100644 (file)
@@ -3280,7 +3280,7 @@ static const struct net_device_ops fec_netdev_ops = {
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_tx_timeout         = fec_timeout,
        .ndo_set_mac_address    = fec_set_mac_address,
-       .ndo_do_ioctl           = fec_enet_ioctl,
+       .ndo_eth_ioctl          = fec_enet_ioctl,
 #ifdef CONFIG_NET_POLL_CONTROLLER
        .ndo_poll_controller    = fec_poll_controller,
 #endif
index 02c47658a21584b3b6c51f69ee04d65ef3fcee5f..73ff359a15f1aa6751f4f502ec9c9ebb72ce2f89 100644 (file)
@@ -792,7 +792,7 @@ static const struct net_device_ops mpc52xx_fec_netdev_ops = {
        .ndo_set_rx_mode = mpc52xx_fec_set_multicast_list,
        .ndo_set_mac_address = mpc52xx_fec_set_mac_address,
        .ndo_validate_addr = eth_validate_addr,
-       .ndo_do_ioctl = phy_do_ioctl,
+       .ndo_eth_ioctl = phy_do_ioctl,
        .ndo_tx_timeout = mpc52xx_fec_tx_timeout,
        .ndo_get_stats = mpc52xx_fec_get_stats,
 #ifdef CONFIG_NET_POLL_CONTROLLER
index 6ee325ad35c5011257edb46ab08fed75e0cfcf8d..2db6e38a772e7df1c1380afae2a3a8e2ef128ff3 100644 (file)
@@ -900,7 +900,7 @@ static const struct net_device_ops fs_enet_netdev_ops = {
        .ndo_start_xmit         = fs_enet_start_xmit,
        .ndo_tx_timeout         = fs_timeout,
        .ndo_set_rx_mode        = fs_set_multicast_list,
-       .ndo_do_ioctl           = phy_do_ioctl_running,
+       .ndo_eth_ioctl          = phy_do_ioctl_running,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = eth_mac_addr,
 #ifdef CONFIG_NET_POLL_CONTROLLER
index 9646483137c460aff9f3409510b1b8000f96dbcb..af6ad94bf24a47ff421ca423e833484086069ea9 100644 (file)
@@ -3184,7 +3184,7 @@ static const struct net_device_ops gfar_netdev_ops = {
        .ndo_set_features = gfar_set_features,
        .ndo_set_rx_mode = gfar_set_multi,
        .ndo_tx_timeout = gfar_timeout,
-       .ndo_do_ioctl = gfar_ioctl,
+       .ndo_eth_ioctl = gfar_ioctl,
        .ndo_get_stats64 = gfar_get_stats64,
        .ndo_change_carrier = fixed_phy_change_carrier,
        .ndo_set_mac_address = gfar_set_mac_addr,
index 0acfafb73db1f8ee5d6664b1e17d53a8ff262380..3eb288d10b0c32d784158cb1c30a38b26db5b510 100644 (file)
@@ -3516,7 +3516,7 @@ static const struct net_device_ops ucc_geth_netdev_ops = {
        .ndo_set_mac_address    = ucc_geth_set_mac_addr,
        .ndo_set_rx_mode        = ucc_geth_set_multi,
        .ndo_tx_timeout         = ucc_geth_timeout,
-       .ndo_do_ioctl           = ucc_geth_ioctl,
+       .ndo_eth_ioctl          = ucc_geth_ioctl,
 #ifdef CONFIG_NET_POLL_CONTROLLER
        .ndo_poll_controller    = ucc_netpoll,
 #endif
index 3c4db4a6b4316e8416fddf18816eb853124e8212..22bf914f2dbd0dd8a6b3f899eedef943faef2ad3 100644 (file)
@@ -685,7 +685,7 @@ static const struct net_device_ops hisi_femac_netdev_ops = {
        .ndo_open               = hisi_femac_net_open,
        .ndo_stop               = hisi_femac_net_close,
        .ndo_start_xmit         = hisi_femac_net_xmit,
-       .ndo_do_ioctl           = phy_do_ioctl_running,
+       .ndo_eth_ioctl          = phy_do_ioctl_running,
        .ndo_set_mac_address    = hisi_femac_set_mac_address,
        .ndo_set_rx_mode        = hisi_femac_net_set_rx_mode,
 };
index ad534f9e41abc35d21227d0520fb7a339bc7591b..343c605c4be86223c042e68f8369d890401a5bd4 100644 (file)
@@ -1945,7 +1945,7 @@ static const struct net_device_ops hns_nic_netdev_ops = {
        .ndo_tx_timeout = hns_nic_net_timeout,
        .ndo_set_mac_address = hns_nic_net_set_mac_address,
        .ndo_change_mtu = hns_nic_change_mtu,
-       .ndo_do_ioctl = phy_do_ioctl_running,
+       .ndo_eth_ioctl = phy_do_ioctl_running,
        .ndo_set_features = hns_nic_set_features,
        .ndo_fix_features = hns_nic_fix_features,
        .ndo_get_stats64 = hns_nic_get_stats64,
index cdb5f14fb6bc54aa1a023f76250cc1fe1b22f473..cb8d5da3654f18a4856e37fb5f5a17e35712ee92 100644 (file)
@@ -2852,7 +2852,7 @@ static const struct net_device_ops hns3_nic_netdev_ops = {
        .ndo_start_xmit         = hns3_nic_net_xmit,
        .ndo_tx_timeout         = hns3_nic_net_timeout,
        .ndo_set_mac_address    = hns3_nic_net_set_mac_address,
-       .ndo_do_ioctl           = hns3_nic_do_ioctl,
+       .ndo_eth_ioctl          = hns3_nic_do_ioctl,
        .ndo_change_mtu         = hns3_nic_change_mtu,
        .ndo_set_features       = hns3_nic_set_features,
        .ndo_features_check     = hns3_features_check,
index 471be6ec7e8a45b1daa2eb6f3523e4c79ac178f5..664a91af662df85057456d076e032d739315a3ed 100644 (file)
@@ -3011,7 +3011,7 @@ static const struct net_device_ops emac_netdev_ops = {
        .ndo_stop               = emac_close,
        .ndo_get_stats          = emac_stats,
        .ndo_set_rx_mode        = emac_set_multicast_list,
-       .ndo_do_ioctl           = emac_ioctl,
+       .ndo_eth_ioctl          = emac_ioctl,
        .ndo_tx_timeout         = emac_tx_timeout,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = emac_set_mac_address,
@@ -3023,7 +3023,7 @@ static const struct net_device_ops emac_gige_netdev_ops = {
        .ndo_stop               = emac_close,
        .ndo_get_stats          = emac_stats,
        .ndo_set_rx_mode        = emac_set_multicast_list,
-       .ndo_do_ioctl           = emac_ioctl,
+       .ndo_eth_ioctl          = emac_ioctl,
        .ndo_tx_timeout         = emac_tx_timeout,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = emac_set_mac_address,
index 737ba85e409fe1f379a104af2cea4f0439c7c9b7..3d9b4f99d357f70a16c9c5a6c35107706ebde5ee 100644 (file)
@@ -1630,7 +1630,7 @@ static const struct net_device_ops ibmveth_netdev_ops = {
        .ndo_stop               = ibmveth_close,
        .ndo_start_xmit         = ibmveth_start_xmit,
        .ndo_set_rx_mode        = ibmveth_set_multicast_list,
-       .ndo_do_ioctl           = ibmveth_ioctl,
+       .ndo_eth_ioctl          = ibmveth_ioctl,
        .ndo_change_mtu         = ibmveth_change_mtu,
        .ndo_fix_features       = ibmveth_fix_features,
        .ndo_set_features       = ibmveth_set_features,
index 1ec924c556c55ab0a3479b15f53415c30c9d4ba8..373eb027b925207fdc70b47e413c4055559a2e2d 100644 (file)
@@ -2809,7 +2809,7 @@ static const struct net_device_ops e100_netdev_ops = {
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_rx_mode        = e100_set_multicast_list,
        .ndo_set_mac_address    = e100_set_mac_address,
-       .ndo_do_ioctl           = e100_do_ioctl,
+       .ndo_eth_ioctl          = e100_do_ioctl,
        .ndo_tx_timeout         = e100_tx_timeout,
 #ifdef CONFIG_NET_POLL_CONTROLLER
        .ndo_poll_controller    = e100_netpoll,
index c2a109126c277601e3745f1f3ce3b973374aec3e..bed4f040face41b6c9e5a501e3561d096c1f509a 100644 (file)
@@ -832,7 +832,7 @@ static const struct net_device_ops e1000_netdev_ops = {
        .ndo_set_mac_address    = e1000_set_mac,
        .ndo_tx_timeout         = e1000_tx_timeout,
        .ndo_change_mtu         = e1000_change_mtu,
-       .ndo_do_ioctl           = e1000_ioctl,
+       .ndo_eth_ioctl          = e1000_ioctl,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_vlan_rx_add_vid    = e1000_vlan_rx_add_vid,
        .ndo_vlan_rx_kill_vid   = e1000_vlan_rx_kill_vid,
index 3c22b509fa79b03af366565d5cd690aa12a90992..900b3ab998bd8c433a6055d63f4503617d33aa96 100644 (file)
@@ -7354,7 +7354,7 @@ static const struct net_device_ops e1000e_netdev_ops = {
        .ndo_set_rx_mode        = e1000e_set_rx_mode,
        .ndo_set_mac_address    = e1000_set_mac,
        .ndo_change_mtu         = e1000_change_mtu,
-       .ndo_do_ioctl           = e1000_ioctl,
+       .ndo_eth_ioctl          = e1000_ioctl,
        .ndo_tx_timeout         = e1000_tx_timeout,
        .ndo_validate_addr      = eth_validate_addr,
 
index 53c1fbeee62a5c35e1860aa958538dd1df3d4ea0..5b4012a09acb0dd81e1f36a3def65bd69c4932d9 100644 (file)
@@ -13256,7 +13256,7 @@ static const struct net_device_ops i40e_netdev_ops = {
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = i40e_set_mac,
        .ndo_change_mtu         = i40e_change_mtu,
-       .ndo_do_ioctl           = i40e_ioctl,
+       .ndo_eth_ioctl          = i40e_ioctl,
        .ndo_tx_timeout         = i40e_tx_timeout,
        .ndo_vlan_rx_add_vid    = i40e_vlan_rx_add_vid,
        .ndo_vlan_rx_kill_vid   = i40e_vlan_rx_kill_vid,
index ef8d1815af5618911a14cd9da714c791c47bc39e..33916ed9e8740909b77b501774e6741345aabbae 100644 (file)
@@ -6558,12 +6558,12 @@ event_after:
 }
 
 /**
- * ice_do_ioctl - Access the hwtstamp interface
+ * ice_eth_ioctl - Access the hwtstamp interface
  * @netdev: network interface device structure
  * @ifr: interface request data
  * @cmd: ioctl command
  */
-static int ice_do_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd)
+static int ice_eth_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd)
 {
        struct ice_netdev_priv *np = netdev_priv(netdev);
        struct ice_pf *pf = np->vsi->back;
@@ -7229,7 +7229,7 @@ static const struct net_device_ops ice_netdev_ops = {
        .ndo_change_mtu = ice_change_mtu,
        .ndo_get_stats64 = ice_get_stats64,
        .ndo_set_tx_maxrate = ice_set_tx_maxrate,
-       .ndo_do_ioctl = ice_do_ioctl,
+       .ndo_eth_ioctl = ice_eth_ioctl,
        .ndo_set_vf_spoofchk = ice_set_vf_spoofchk,
        .ndo_set_vf_mac = ice_set_vf_mac,
        .ndo_get_vf_config = ice_get_vf_cfg,
index 171a7a629b203b601d1030ed2ff6248faab73d9c..751de06019a0e87e7f070bbc96224fdd92eedc47 100644 (file)
@@ -2991,7 +2991,7 @@ static const struct net_device_ops igb_netdev_ops = {
        .ndo_set_rx_mode        = igb_set_rx_mode,
        .ndo_set_mac_address    = igb_set_mac,
        .ndo_change_mtu         = igb_change_mtu,
-       .ndo_do_ioctl           = igb_ioctl,
+       .ndo_eth_ioctl          = igb_ioctl,
        .ndo_tx_timeout         = igb_tx_timeout,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_vlan_rx_add_vid    = igb_vlan_rx_add_vid,
index 1bbe9862a758a0fcb6e0963d9b0d783e4ccc0253..d32e72d953c8dfb661eb5249a23c3c042e0d9acf 100644 (file)
@@ -2657,7 +2657,7 @@ static const struct net_device_ops igbvf_netdev_ops = {
        .ndo_set_rx_mode        = igbvf_set_rx_mode,
        .ndo_set_mac_address    = igbvf_set_mac,
        .ndo_change_mtu         = igbvf_change_mtu,
-       .ndo_do_ioctl           = igbvf_ioctl,
+       .ndo_eth_ioctl          = igbvf_ioctl,
        .ndo_tx_timeout         = igbvf_tx_timeout,
        .ndo_vlan_rx_add_vid    = igbvf_vlan_rx_add_vid,
        .ndo_vlan_rx_kill_vid   = igbvf_vlan_rx_kill_vid,
index 5c95bf82eaf75f6aca8ad0b958f1d9e8e51053e1..b7aab35c11325a9f08f72e09abe511d685e3cfb0 100644 (file)
@@ -6013,7 +6013,7 @@ static const struct net_device_ops igc_netdev_ops = {
        .ndo_fix_features       = igc_fix_features,
        .ndo_set_features       = igc_set_features,
        .ndo_features_check     = igc_features_check,
-       .ndo_do_ioctl           = igc_ioctl,
+       .ndo_eth_ioctl          = igc_ioctl,
        .ndo_setup_tc           = igc_setup_tc,
        .ndo_bpf                = igc_bpf,
        .ndo_xdp_xmit           = igc_xdp_xmit,
index 14aea40da50fb8b4b80b7d36f0b748af835ff47c..24e06ba6f5e93de93fe167be3702421f68aadf66 100644 (file)
@@ -10247,7 +10247,7 @@ static const struct net_device_ops ixgbe_netdev_ops = {
        .ndo_set_tx_maxrate     = ixgbe_tx_maxrate,
        .ndo_vlan_rx_add_vid    = ixgbe_vlan_rx_add_vid,
        .ndo_vlan_rx_kill_vid   = ixgbe_vlan_rx_kill_vid,
-       .ndo_do_ioctl           = ixgbe_ioctl,
+       .ndo_eth_ioctl          = ixgbe_ioctl,
        .ndo_set_vf_mac         = ixgbe_ndo_set_vf_mac,
        .ndo_set_vf_vlan        = ixgbe_ndo_set_vf_vlan,
        .ndo_set_vf_rate        = ixgbe_ndo_set_vf_bw,
index f1b9284e0bea8c5ef3b3923ccde33d3d4cacdb11..1251b74fe0e24bd5416b4fbc359ed02e4df2ee08 100644 (file)
@@ -2901,7 +2901,7 @@ static const struct net_device_ops jme_netdev_ops = {
        .ndo_open               = jme_open,
        .ndo_stop               = jme_close,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_do_ioctl           = jme_ioctl,
+       .ndo_eth_ioctl          = jme_ioctl,
        .ndo_start_xmit         = jme_start_xmit,
        .ndo_set_mac_address    = jme_set_macaddr,
        .ndo_set_rx_mode        = jme_set_multi,
index b30a45725374b48174fba0b0001644a22e963b54..3e9f324f1061fc87c7ad4a5265ae92ea86692437 100644 (file)
@@ -1272,7 +1272,7 @@ static const struct net_device_ops korina_netdev_ops = {
        .ndo_start_xmit         = korina_send_packet,
        .ndo_set_rx_mode        = korina_multicast_list,
        .ndo_tx_timeout         = korina_tx_timeout,
-       .ndo_do_ioctl           = korina_ioctl,
+       .ndo_eth_ioctl          = korina_ioctl,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = eth_mac_addr,
 #ifdef CONFIG_NET_POLL_CONTROLLER
index 2d0c52f7106bc028d9c7e594a54a6f133680b11c..62f8c52121822dd26f99954e27d05a48e6ee24fc 100644 (file)
@@ -609,7 +609,7 @@ static const struct net_device_ops ltq_eth_netdev_ops = {
        .ndo_stop = ltq_etop_stop,
        .ndo_start_xmit = ltq_etop_tx,
        .ndo_change_mtu = ltq_etop_change_mtu,
-       .ndo_do_ioctl = phy_do_ioctl,
+       .ndo_eth_ioctl = phy_do_ioctl,
        .ndo_set_mac_address = ltq_etop_set_mac_address,
        .ndo_validate_addr = eth_validate_addr,
        .ndo_set_rx_mode = ltq_etop_set_multicast_list,
index d207bfcaf31d88c2f6bcbaf20d062bbf3c09fbf0..6502c5c2ebcaac54fa2aa305a4e6d367f05fed7d 100644 (file)
@@ -3060,7 +3060,7 @@ static const struct net_device_ops mv643xx_eth_netdev_ops = {
        .ndo_set_rx_mode        = mv643xx_eth_set_rx_mode,
        .ndo_set_mac_address    = mv643xx_eth_set_mac_address,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_do_ioctl           = mv643xx_eth_ioctl,
+       .ndo_eth_ioctl          = mv643xx_eth_ioctl,
        .ndo_change_mtu         = mv643xx_eth_change_mtu,
        .ndo_set_features       = mv643xx_eth_set_features,
        .ndo_tx_timeout         = mv643xx_eth_tx_timeout,
index 975a1a77d445fb5d9fb09bfcb9a50b68b04f4bb6..ff8db311963c3ad006e9792c5e317ac4b8c3a6bc 100644 (file)
@@ -4994,7 +4994,7 @@ static const struct net_device_ops mvneta_netdev_ops = {
        .ndo_change_mtu      = mvneta_change_mtu,
        .ndo_fix_features    = mvneta_fix_features,
        .ndo_get_stats64     = mvneta_get_stats64,
-       .ndo_do_ioctl        = mvneta_ioctl,
+       .ndo_eth_ioctl        = mvneta_ioctl,
        .ndo_bpf             = mvneta_xdp,
        .ndo_xdp_xmit        = mvneta_xdp_xmit,
        .ndo_setup_tc        = mvneta_setup_tc,
index 878fb17dea41d1de3236e3f19e2a55bb2f394bed..99bd8b8aa0e29c42ac5c2070dd92aeca0f8cce09 100644 (file)
@@ -5702,7 +5702,7 @@ static const struct net_device_ops mvpp2_netdev_ops = {
        .ndo_set_mac_address    = mvpp2_set_mac_address,
        .ndo_change_mtu         = mvpp2_change_mtu,
        .ndo_get_stats64        = mvpp2_get_stats64,
-       .ndo_do_ioctl           = mvpp2_ioctl,
+       .ndo_eth_ioctl          = mvpp2_ioctl,
        .ndo_vlan_rx_add_vid    = mvpp2_vlan_rx_add_vid,
        .ndo_vlan_rx_kill_vid   = mvpp2_vlan_rx_kill_vid,
        .ndo_set_features       = mvpp2_set_features,
index f300b807a85bf739743703358a0b468471f8f16d..3f03bbdd8d04ea92a618d3700fc7f32fdd5feb0e 100644 (file)
@@ -2326,7 +2326,7 @@ static const struct net_device_ops otx2_netdev_ops = {
        .ndo_set_features       = otx2_set_features,
        .ndo_tx_timeout         = otx2_tx_timeout,
        .ndo_get_stats64        = otx2_get_stats64,
-       .ndo_do_ioctl           = otx2_ioctl,
+       .ndo_eth_ioctl          = otx2_ioctl,
        .ndo_set_vf_mac         = otx2_set_vf_mac,
        .ndo_set_vf_vlan        = otx2_set_vf_vlan,
        .ndo_get_vf_config      = otx2_get_vf_config,
index 9b48ae4bac39fbab2d1d00a948b1b813f49c36c1..fab53c9b8380ccc1f409ac3fa2aad0684dbef451 100644 (file)
@@ -1377,7 +1377,7 @@ static const struct net_device_ops pxa168_eth_netdev_ops = {
        .ndo_set_rx_mode        = pxa168_eth_set_rx_mode,
        .ndo_set_mac_address    = pxa168_eth_set_mac_address,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_do_ioctl           = phy_do_ioctl,
+       .ndo_eth_ioctl          = phy_do_ioctl,
        .ndo_change_mtu         = pxa168_eth_change_mtu,
        .ndo_tx_timeout         = pxa168_eth_tx_timeout,
 #ifdef CONFIG_NET_POLL_CONTROLLER
index d4bb27ba141940b344a4f03e6596b3cc6e7d6780..150c06ee3627717ae0eea8e5dbd6a1cab0281d85 100644 (file)
@@ -3787,7 +3787,7 @@ static const struct net_device_ops skge_netdev_ops = {
        .ndo_open               = skge_up,
        .ndo_stop               = skge_down,
        .ndo_start_xmit         = skge_xmit_frame,
-       .ndo_do_ioctl           = skge_ioctl,
+       .ndo_eth_ioctl          = skge_ioctl,
        .ndo_get_stats          = skge_get_stats,
        .ndo_tx_timeout         = skge_tx_timeout,
        .ndo_change_mtu         = skge_change_mtu,
index 8b8bff59c8fe9605c03af8622ef98a5e4f18e01e..743ca96527fa3cdfe3b491a7e871bd9df099dcb4 100644 (file)
@@ -4693,7 +4693,7 @@ static const struct net_device_ops sky2_netdev_ops[2] = {
        .ndo_open               = sky2_open,
        .ndo_stop               = sky2_close,
        .ndo_start_xmit         = sky2_xmit_frame,
-       .ndo_do_ioctl           = sky2_ioctl,
+       .ndo_eth_ioctl          = sky2_ioctl,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = sky2_set_mac_address,
        .ndo_set_rx_mode        = sky2_set_multicast,
@@ -4710,7 +4710,7 @@ static const struct net_device_ops sky2_netdev_ops[2] = {
        .ndo_open               = sky2_open,
        .ndo_stop               = sky2_close,
        .ndo_start_xmit         = sky2_xmit_frame,
-       .ndo_do_ioctl           = sky2_ioctl,
+       .ndo_eth_ioctl          = sky2_ioctl,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = sky2_set_mac_address,
        .ndo_set_rx_mode        = sky2_set_multicast,
index 64adfd24e134d80ec341cf2ed5055e054ecc9b57..398c23cec8151f1ef1e0978cc6b0eee04ddbf789 100644 (file)
@@ -2933,7 +2933,7 @@ static const struct net_device_ops mtk_netdev_ops = {
        .ndo_start_xmit         = mtk_start_xmit,
        .ndo_set_mac_address    = mtk_set_mac_address,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_do_ioctl           = mtk_do_ioctl,
+       .ndo_eth_ioctl          = mtk_do_ioctl,
        .ndo_change_mtu         = mtk_change_mtu,
        .ndo_tx_timeout         = mtk_tx_timeout,
        .ndo_get_stats64        = mtk_get_stats64,
index 96d2891f1675ab80c4b0a1d04fc78b7e5ce115f9..1d5dd2015453fbe2bc0ef3ad03aedb78ea523740 100644 (file)
@@ -1162,7 +1162,7 @@ static const struct net_device_ops mtk_star_netdev_ops = {
        .ndo_start_xmit         = mtk_star_netdev_start_xmit,
        .ndo_get_stats64        = mtk_star_netdev_get_stats64,
        .ndo_set_rx_mode        = mtk_star_set_rx_mode,
-       .ndo_do_ioctl           = mtk_star_netdev_ioctl,
+       .ndo_eth_ioctl          = mtk_star_netdev_ioctl,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
 };
index 5d0c9c62382dc5b5832743ebe94a862ccf5a798a..a2f61a87cef805b38590fb2ec07b15f77c464f5f 100644 (file)
@@ -2828,7 +2828,7 @@ static const struct net_device_ops mlx4_netdev_ops = {
        .ndo_set_mac_address    = mlx4_en_set_mac,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_change_mtu         = mlx4_en_change_mtu,
-       .ndo_do_ioctl           = mlx4_en_ioctl,
+       .ndo_eth_ioctl          = mlx4_en_ioctl,
        .ndo_tx_timeout         = mlx4_en_tx_timeout,
        .ndo_vlan_rx_add_vid    = mlx4_en_vlan_rx_add_vid,
        .ndo_vlan_rx_kill_vid   = mlx4_en_vlan_rx_kill_vid,
index b9a0459b58f1f9296a0e9517b9589236f9b82eca..b6c1e3124f9663868f08583d61a2f716d9bd2b6c 100644 (file)
@@ -4417,7 +4417,7 @@ const struct net_device_ops mlx5e_netdev_ops = {
        .ndo_set_features        = mlx5e_set_features,
        .ndo_fix_features        = mlx5e_fix_features,
        .ndo_change_mtu          = mlx5e_change_nic_mtu,
-       .ndo_do_ioctl            = mlx5e_ioctl,
+       .ndo_eth_ioctl            = mlx5e_ioctl,
        .ndo_set_tx_maxrate      = mlx5e_set_tx_maxrate,
        .ndo_features_check      = mlx5e_features_check,
        .ndo_tx_timeout          = mlx5e_tx_timeout,
index 6535c636ae22952b7b41774e776a5a577d421449..a126cbc6f0d6a200859de059852a3410583d8a1a 100644 (file)
@@ -50,7 +50,7 @@ static const struct net_device_ops mlx5i_netdev_ops = {
        .ndo_init                = mlx5i_dev_init,
        .ndo_uninit              = mlx5i_dev_cleanup,
        .ndo_change_mtu          = mlx5i_change_mtu,
-       .ndo_do_ioctl            = mlx5i_ioctl,
+       .ndo_eth_ioctl            = mlx5i_ioctl,
 };
 
 /* IPoIB mlx5 netdev profile */
index 18ee21b06a0015c40cd35cb1dfc07db78a373bed..5308f23702bca6e47ac5679222db02a9959c8b7c 100644 (file)
@@ -149,7 +149,7 @@ static const struct net_device_ops mlx5i_pkey_netdev_ops = {
        .ndo_get_stats64         = mlx5i_get_stats,
        .ndo_uninit              = mlx5i_pkey_dev_cleanup,
        .ndo_change_mtu          = mlx5i_pkey_change_mtu,
-       .ndo_do_ioctl            = mlx5i_pkey_ioctl,
+       .ndo_eth_ioctl            = mlx5i_pkey_ioctl,
 };
 
 /* Child NDOs */
index a0a059e0154fffa76863a09cc79ca15cc9455a9f..d222196137196fae4036a534ac38d0aad248a5af 100644 (file)
@@ -199,7 +199,7 @@ static int mlxbf_gige_stop(struct net_device *netdev)
        return 0;
 }
 
-static int mlxbf_gige_do_ioctl(struct net_device *netdev,
+static int mlxbf_gige_eth_ioctl(struct net_device *netdev,
                               struct ifreq *ifr, int cmd)
 {
        if (!(netif_running(netdev)))
@@ -253,7 +253,7 @@ static const struct net_device_ops mlxbf_gige_netdev_ops = {
        .ndo_start_xmit         = mlxbf_gige_start_xmit,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_do_ioctl           = mlxbf_gige_do_ioctl,
+       .ndo_eth_ioctl          = mlxbf_gige_eth_ioctl,
        .ndo_set_rx_mode        = mlxbf_gige_set_rx_mode,
        .ndo_get_stats64        = mlxbf_gige_get_stats64,
 };
index 88699e6785444b9946218a8c25d8c6d71423e68d..081408e892d5ce4e4dd3b26d1c61afcc8a2e3024 100644 (file)
@@ -1207,7 +1207,7 @@ static const struct net_device_ops mlxsw_sp_port_netdev_ops = {
        .ndo_vlan_rx_kill_vid   = mlxsw_sp_port_kill_vid,
        .ndo_set_features       = mlxsw_sp_set_features,
        .ndo_get_devlink_port   = mlxsw_sp_port_get_devlink_port,
-       .ndo_do_ioctl           = mlxsw_sp_port_ioctl,
+       .ndo_eth_ioctl          = mlxsw_sp_port_ioctl,
 };
 
 static int
index 831518466de22f5ad6ae153c4457d664d684645c..3f69bb59ba49a8fb1b5e091261e26bffdbbeffdc 100644 (file)
@@ -689,7 +689,7 @@ static int ks8851_net_ioctl(struct net_device *dev, struct ifreq *req, int cmd)
 static const struct net_device_ops ks8851_netdev_ops = {
        .ndo_open               = ks8851_net_open,
        .ndo_stop               = ks8851_net_stop,
-       .ndo_do_ioctl           = ks8851_net_ioctl,
+       .ndo_eth_ioctl          = ks8851_net_ioctl,
        .ndo_start_xmit         = ks8851_start_xmit,
        .ndo_set_mac_address    = ks8851_set_mac_address,
        .ndo_set_rx_mode        = ks8851_set_rx_mode,
index 7945eb5e2fe8c67fa14addc8e465ce17e5457751..a0ee155f9f516712f8c50857532498c3f9ab81dd 100644 (file)
@@ -6738,7 +6738,7 @@ static const struct net_device_ops netdev_ops = {
        .ndo_set_features       = netdev_set_features,
        .ndo_set_mac_address    = netdev_set_mac_address,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_do_ioctl           = netdev_ioctl,
+       .ndo_eth_ioctl          = netdev_ioctl,
        .ndo_set_rx_mode        = netdev_set_rx_mode,
 #ifdef CONFIG_NET_POLL_CONTROLLER
        .ndo_poll_controller    = netdev_netpoll,
index dae10328c6cf76aae22d205291e5b428f19b238c..9e8561cdc32a409ae959f5ee93b0e2b7ec7e739a 100644 (file)
@@ -2655,7 +2655,7 @@ static const struct net_device_ops lan743x_netdev_ops = {
        .ndo_open               = lan743x_netdev_open,
        .ndo_stop               = lan743x_netdev_close,
        .ndo_start_xmit         = lan743x_netdev_xmit_frame,
-       .ndo_do_ioctl           = lan743x_netdev_ioctl,
+       .ndo_eth_ioctl          = lan743x_netdev_ioctl,
        .ndo_set_rx_mode        = lan743x_netdev_set_multicast,
        .ndo_change_mtu         = lan743x_netdev_change_mtu,
        .ndo_get_stats64        = lan743x_netdev_get_stats64,
index c52f175df389c396de7b88458707ee6a331a3d33..de900ea70fd4ad9e0950af22139612f35695c346 100644 (file)
@@ -823,7 +823,7 @@ static const struct net_device_ops ocelot_port_netdev_ops = {
        .ndo_vlan_rx_kill_vid           = ocelot_vlan_rx_kill_vid,
        .ndo_set_features               = ocelot_set_features,
        .ndo_setup_tc                   = ocelot_setup_tc,
-       .ndo_do_ioctl                   = ocelot_ioctl,
+       .ndo_eth_ioctl                  = ocelot_ioctl,
        .ndo_get_devlink_port           = ocelot_get_devlink_port,
 };
 
index 51b4b25d15ad0543a80ec5ce33b231aeedd20119..bd9d026e609dda39575f1768fd13b09cd1c802b6 100644 (file)
@@ -790,7 +790,7 @@ static const struct net_device_ops natsemi_netdev_ops = {
        .ndo_get_stats          = get_stats,
        .ndo_set_rx_mode        = set_rx_mode,
        .ndo_change_mtu         = natsemi_change_mtu,
-       .ndo_do_ioctl           = netdev_ioctl,
+       .ndo_eth_ioctl          = netdev_ioctl,
        .ndo_tx_timeout         = ns_tx_timeout,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
index 0b017d4f5c0853672db2ab887a439042336f4bed..09c0e839cca5822a4a9ea88774da5abb69672f6d 100644 (file)
@@ -7625,7 +7625,7 @@ static const struct net_device_ops s2io_netdev_ops = {
        .ndo_start_xmit         = s2io_xmit,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_rx_mode        = s2io_ndo_set_multicast,
-       .ndo_do_ioctl           = s2io_ioctl,
+       .ndo_eth_ioctl          = s2io_ioctl,
        .ndo_set_mac_address    = s2io_set_mac_addr,
        .ndo_change_mtu         = s2io_change_mtu,
        .ndo_set_features       = s2io_set_features,
index 82eef4c72f0197f3305a83c9728e48634dcd6184..20fb4ad298656de5726eda9c51cac419d8cf88f7 100644 (file)
@@ -3339,7 +3339,7 @@ static const struct net_device_ops vxge_netdev_ops = {
        .ndo_start_xmit         = vxge_xmit,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_rx_mode        = vxge_set_multicast,
-       .ndo_do_ioctl           = vxge_ioctl,
+       .ndo_eth_ioctl           = vxge_ioctl,
        .ndo_set_mac_address    = vxge_set_mac_addr,
        .ndo_change_mtu         = vxge_change_mtu,
        .ndo_fix_features       = vxge_fix_features,
index 64c6842bd452cba981d286d775969bcba6e2cdef..d29fe562b3decbac43b8454b6a52982c2a864ee0 100644 (file)
@@ -1219,7 +1219,7 @@ static const struct net_device_ops lpc_netdev_ops = {
        .ndo_stop               = lpc_eth_close,
        .ndo_start_xmit         = lpc_eth_hard_start_xmit,
        .ndo_set_rx_mode        = lpc_eth_set_multicast_list,
-       .ndo_do_ioctl           = phy_do_ioctl_running,
+       .ndo_eth_ioctl          = phy_do_ioctl_running,
        .ndo_set_mac_address    = lpc_set_mac_address,
        .ndo_validate_addr      = eth_validate_addr,
 };
index e351f3d1608fb2c72729e1647602a9f3431f6d08..bc35d5703bd23aace8c702e184c28276540c8038 100644 (file)
@@ -2333,7 +2333,7 @@ static const struct net_device_ops pch_gbe_netdev_ops = {
        .ndo_tx_timeout = pch_gbe_tx_timeout,
        .ndo_change_mtu = pch_gbe_change_mtu,
        .ndo_set_features = pch_gbe_set_features,
-       .ndo_do_ioctl = pch_gbe_ioctl,
+       .ndo_eth_ioctl = pch_gbe_ioctl,
        .ndo_set_rx_mode = pch_gbe_set_multi,
 #ifdef CONFIG_NET_POLL_CONTROLLER
        .ndo_poll_controller = pch_gbe_netpoll,
index 94823c5f7dffcd71d73bdc444aa84de762918b39..1a6336a56d3da9e47157e12e046f8d54b4a0a4b9 100644 (file)
@@ -573,7 +573,7 @@ static const struct net_device_ops hamachi_netdev_ops = {
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_tx_timeout         = hamachi_tx_timeout,
-       .ndo_do_ioctl           = hamachi_ioctl,
+       .ndo_eth_ioctl          = hamachi_ioctl,
        .ndo_siocdevprivate     = hamachi_siocdevprivate,
 };
 
index d1dd9bc1bc7f0fd0be2299947fcb3931c17ba6ea..f5cd8f51be7c460083f691cebaa569094a25cf57 100644 (file)
@@ -362,7 +362,7 @@ static const struct net_device_ops netdev_ops = {
        .ndo_set_rx_mode        = set_rx_mode,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = eth_mac_addr,
-       .ndo_do_ioctl           = netdev_ioctl,
+       .ndo_eth_ioctl          = netdev_ioctl,
        .ndo_tx_timeout         = yellowfin_tx_timeout,
 };
 
index af3a5368529ccb6be9a07ecdc7d67a1df1f49cb1..537c2907b91e600f719c3d02af0bb9618a94a20a 100644 (file)
@@ -2264,7 +2264,7 @@ static int ionic_stop(struct net_device *netdev)
        return 0;
 }
 
-static int ionic_do_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd)
+static int ionic_eth_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd)
 {
        struct ionic_lif *lif = netdev_priv(netdev);
 
@@ -2526,7 +2526,7 @@ static int ionic_set_vf_link_state(struct net_device *netdev, int vf, int set)
 static const struct net_device_ops ionic_netdev_ops = {
        .ndo_open               = ionic_open,
        .ndo_stop               = ionic_stop,
-       .ndo_do_ioctl           = ionic_do_ioctl,
+       .ndo_eth_ioctl          = ionic_eth_ioctl,
        .ndo_start_xmit         = ionic_start_xmit,
        .ndo_get_stats64        = ionic_get_stats64,
        .ndo_set_rx_mode        = ionic_ndo_set_rx_mode,
index 01ac1e93d27a6082cb5a900642963c504870daf1..17387869614376a9ec5df515bebea4b0adf8cabd 100644 (file)
@@ -644,7 +644,7 @@ static const struct net_device_ops qede_netdev_ops = {
        .ndo_set_mac_address    = qede_set_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_change_mtu         = qede_change_mtu,
-       .ndo_do_ioctl           = qede_ioctl,
+       .ndo_eth_ioctl          = qede_ioctl,
        .ndo_tx_timeout         = qede_tx_timeout,
 #ifdef CONFIG_QED_SRIOV
        .ndo_set_vf_mac         = qede_set_vf_mac,
index ad655f0a4965ce87c60e9784262d88a774420879..9015a38eaced810c6045ba0b9e042b10c25f972e 100644 (file)
@@ -377,7 +377,7 @@ static const struct net_device_ops emac_netdev_ops = {
        .ndo_start_xmit         = emac_start_xmit,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_change_mtu         = emac_change_mtu,
-       .ndo_do_ioctl           = phy_do_ioctl_running,
+       .ndo_eth_ioctl          = phy_do_ioctl_running,
        .ndo_tx_timeout         = emac_tx_timeout,
        .ndo_get_stats64        = emac_get_stats64,
        .ndo_set_features       = emac_set_features,
index 47e9998b62f090e70261feb5275332d484a253d8..4b2eca5e08e29a43b5502c91bd9b6df0eef4ed28 100644 (file)
@@ -954,7 +954,7 @@ static const struct net_device_ops r6040_netdev_ops = {
        .ndo_set_rx_mode        = r6040_multicast_list,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = eth_mac_addr,
-       .ndo_do_ioctl           = phy_do_ioctl,
+       .ndo_eth_ioctl          = phy_do_ioctl,
        .ndo_tx_timeout         = r6040_tx_timeout,
 #ifdef CONFIG_NET_POLL_CONTROLLER
        .ndo_poll_controller    = r6040_poll_controller,
index 9677e257e9a13d50bea03faaae757855763f0733..edc61906694f6e6dfdf164b19df01f8b1e947c9c 100644 (file)
@@ -1869,7 +1869,7 @@ static const struct net_device_ops cp_netdev_ops = {
        .ndo_set_mac_address    = cp_set_mac_address,
        .ndo_set_rx_mode        = cp_set_rx_mode,
        .ndo_get_stats          = cp_get_stats,
-       .ndo_do_ioctl           = cp_ioctl,
+       .ndo_eth_ioctl          = cp_ioctl,
        .ndo_start_xmit         = cp_start_xmit,
        .ndo_tx_timeout         = cp_tx_timeout,
        .ndo_set_features       = cp_set_features,
index f0608f05005098d255f288134cd22fa8162989e8..2e6923cc653e210b2db31379edb604810cea61ab 100644 (file)
@@ -932,7 +932,7 @@ static const struct net_device_ops rtl8139_netdev_ops = {
        .ndo_set_mac_address    = rtl8139_set_mac_address,
        .ndo_start_xmit         = rtl8139_start_xmit,
        .ndo_set_rx_mode        = rtl8139_set_rx_mode,
-       .ndo_do_ioctl           = netdev_ioctl,
+       .ndo_eth_ioctl          = netdev_ioctl,
        .ndo_tx_timeout         = rtl8139_tx_timeout,
 #ifdef CONFIG_NET_POLL_CONTROLLER
        .ndo_poll_controller    = rtl8139_poll_controller,
index c7af5bc3b8afff79a45b029144d0d94f6fca9cf1..fa2dab6980bb1990adbbf3cf335367200357fb6d 100644 (file)
@@ -4979,7 +4979,7 @@ static const struct net_device_ops rtl_netdev_ops = {
        .ndo_fix_features       = rtl8169_fix_features,
        .ndo_set_features       = rtl8169_set_features,
        .ndo_set_mac_address    = rtl_set_mac_address,
-       .ndo_do_ioctl           = phy_do_ioctl_running,
+       .ndo_eth_ioctl          = phy_do_ioctl_running,
        .ndo_set_rx_mode        = rtl_set_rx_mode,
 #ifdef CONFIG_NET_POLL_CONTROLLER
        .ndo_poll_controller    = rtl8169_netpoll,
index 805397088850dc527a793b272a08a6e4f95b6bfd..f4dfe9f71d0675337adfb45aada6e104f62bc903 100644 (file)
@@ -1872,7 +1872,7 @@ static const struct net_device_ops ravb_netdev_ops = {
        .ndo_get_stats          = ravb_get_stats,
        .ndo_set_rx_mode        = ravb_set_rx_mode,
        .ndo_tx_timeout         = ravb_tx_timeout,
-       .ndo_do_ioctl           = ravb_do_ioctl,
+       .ndo_eth_ioctl          = ravb_do_ioctl,
        .ndo_change_mtu         = ravb_change_mtu,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = eth_mac_addr,
index 840478692a37010268a6a8354ef095889e9c0c61..6c8ba916d1a6cb9aea6d6971bd6c83579abc2cb1 100644 (file)
@@ -3141,7 +3141,7 @@ static const struct net_device_ops sh_eth_netdev_ops = {
        .ndo_get_stats          = sh_eth_get_stats,
        .ndo_set_rx_mode        = sh_eth_set_rx_mode,
        .ndo_tx_timeout         = sh_eth_tx_timeout,
-       .ndo_do_ioctl           = phy_do_ioctl_running,
+       .ndo_eth_ioctl          = phy_do_ioctl_running,
        .ndo_change_mtu         = sh_eth_change_mtu,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = eth_mac_addr,
@@ -3157,7 +3157,7 @@ static const struct net_device_ops sh_eth_netdev_ops_tsu = {
        .ndo_vlan_rx_add_vid    = sh_eth_vlan_rx_add_vid,
        .ndo_vlan_rx_kill_vid   = sh_eth_vlan_rx_kill_vid,
        .ndo_tx_timeout         = sh_eth_tx_timeout,
-       .ndo_do_ioctl           = phy_do_ioctl_running,
+       .ndo_eth_ioctl          = phy_do_ioctl_running,
        .ndo_change_mtu         = sh_eth_change_mtu,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = eth_mac_addr,
index 090bcd2fb758dd8a6ed353c6c5a043666cac48ba..6781aa636d588ae9610f1ea50d5f6162d69ecdb7 100644 (file)
@@ -1964,7 +1964,7 @@ static const struct net_device_ops sxgbe_netdev_ops = {
        .ndo_set_features       = sxgbe_set_features,
        .ndo_set_rx_mode        = sxgbe_set_rx_mode,
        .ndo_tx_timeout         = sxgbe_tx_timeout,
-       .ndo_do_ioctl           = sxgbe_ioctl,
+       .ndo_eth_ioctl          = sxgbe_ioctl,
 #ifdef CONFIG_NET_POLL_CONTROLLER
        .ndo_poll_controller    = sxgbe_poll_controller,
 #endif
index 37fcf2eb07415c847b4c20cf304e6c3fc2848f46..a295e2621cf37010030d6088e6cad2571f7fff9b 100644 (file)
@@ -591,7 +591,7 @@ static const struct net_device_ops efx_netdev_ops = {
        .ndo_tx_timeout         = efx_watchdog,
        .ndo_start_xmit         = efx_hard_start_xmit,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_do_ioctl           = efx_ioctl,
+       .ndo_eth_ioctl          = efx_ioctl,
        .ndo_change_mtu         = efx_change_mtu,
        .ndo_set_mac_address    = efx_set_mac_address,
        .ndo_set_rx_mode        = efx_set_rx_mode,
index 9ec752a43c75709578ceb76f8a11e52eccec9141..c177ea0f301e1b4c549a4d11ef76336acf11e708 100644 (file)
@@ -2219,7 +2219,7 @@ static const struct net_device_ops ef4_netdev_ops = {
        .ndo_tx_timeout         = ef4_watchdog,
        .ndo_start_xmit         = ef4_hard_start_xmit,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_do_ioctl           = ef4_ioctl,
+       .ndo_eth_ioctl          = ef4_ioctl,
        .ndo_change_mtu         = ef4_change_mtu,
        .ndo_set_mac_address    = ef4_set_mac_address,
        .ndo_set_rx_mode        = ef4_set_rx_mode,
index 2b29fd4cbdf44e4840ed9c020faee1ea502018f8..062f7844c496bfd86d4ddf77a674cb7630c32c2f 100644 (file)
@@ -820,7 +820,7 @@ static const struct net_device_ops ioc3_netdev_ops = {
        .ndo_tx_timeout         = ioc3_timeout,
        .ndo_get_stats          = ioc3_get_stats,
        .ndo_set_rx_mode        = ioc3_set_multicast_list,
-       .ndo_do_ioctl           = ioc3_ioctl,
+       .ndo_eth_ioctl          = ioc3_ioctl,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = ioc3_set_mac_address,
 };
index 0c396ecd338965e8ce3517c08997aac65e86c7bf..efce834d8ee673704b555c568a993659d98ab3fd 100644 (file)
@@ -812,7 +812,7 @@ static const struct net_device_ops meth_netdev_ops = {
        .ndo_open               = meth_open,
        .ndo_stop               = meth_release,
        .ndo_start_xmit         = meth_tx,
-       .ndo_do_ioctl           = meth_ioctl,
+       .ndo_eth_ioctl          = meth_ioctl,
        .ndo_tx_timeout         = meth_tx_timeout,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = eth_mac_addr,
index 676b193833c09574d65bb9fdbd797472d99bae89..3d1a18a01ce505607c6afc563035968b28717c89 100644 (file)
@@ -1841,7 +1841,7 @@ static int sis190_mac_addr(struct net_device  *dev, void *p)
 static const struct net_device_ops sis190_netdev_ops = {
        .ndo_open               = sis190_open,
        .ndo_stop               = sis190_close,
-       .ndo_do_ioctl           = sis190_ioctl,
+       .ndo_eth_ioctl          = sis190_ioctl,
        .ndo_start_xmit         = sis190_start_xmit,
        .ndo_tx_timeout         = sis190_tx_timeout,
        .ndo_set_rx_mode        = sis190_set_rx_mode,
index ca9c00b7f588ec5600b0fae4ae4b95c1f5ce138d..ec6f7f993eb735d9e64fd722f39760dd25623ab7 100644 (file)
@@ -404,7 +404,7 @@ static const struct net_device_ops sis900_netdev_ops = {
        .ndo_set_rx_mode        = set_rx_mode,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = eth_mac_addr,
-       .ndo_do_ioctl           = mii_ioctl,
+       .ndo_eth_ioctl          = mii_ioctl,
        .ndo_tx_timeout         = sis900_tx_timeout,
 #ifdef CONFIG_NET_POLL_CONTROLLER
         .ndo_poll_controller   = sis900_poll,
index 51cd7dca91cdac3c62884e1f87699d5eeb2b3df6..44daf79a8f9725aeaa1bf6523356bef85bc32655 100644 (file)
@@ -312,7 +312,7 @@ static const struct net_device_ops epic_netdev_ops = {
        .ndo_tx_timeout         = epic_tx_timeout,
        .ndo_get_stats          = epic_get_stats,
        .ndo_set_rx_mode        = set_rx_mode,
-       .ndo_do_ioctl           = netdev_ioctl,
+       .ndo_eth_ioctl          = netdev_ioctl,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
 };
index f2a50eb3c1e07cbfac774ddcef78fd413566568d..42fc37c7887a9bc583d5aea36e613847a0eefa3f 100644 (file)
@@ -294,7 +294,7 @@ static const struct net_device_ops smc_netdev_ops = {
        .ndo_tx_timeout         = smc_tx_timeout,
        .ndo_set_config         = s9k_config,
        .ndo_set_rx_mode        = set_rx_mode,
-       .ndo_do_ioctl           = smc_ioctl,
+       .ndo_eth_ioctl          = smc_ioctl,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
 };
index 556a9790cdcfd8ff0a582e7fc2145f14fd4a344b..199a9733928064e334835767ebb6a7953a7d7a73 100644 (file)
@@ -2148,7 +2148,7 @@ static const struct net_device_ops smsc911x_netdev_ops = {
        .ndo_start_xmit         = smsc911x_hard_start_xmit,
        .ndo_get_stats          = smsc911x_get_stats,
        .ndo_set_rx_mode        = smsc911x_set_multicast_list,
-       .ndo_do_ioctl           = phy_do_ioctl_running,
+       .ndo_eth_ioctl          = phy_do_ioctl_running,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = smsc911x_set_mac_address,
 #ifdef CONFIG_NET_POLL_CONTROLLER
index c1dab009415ddf4de1d23932e462f9a2fe7a2e15..fdbd2a43e26754c9e5960aa36b44f0702fa6ec03 100644 (file)
@@ -1482,7 +1482,7 @@ static const struct net_device_ops smsc9420_netdev_ops = {
        .ndo_start_xmit         = smsc9420_hard_start_xmit,
        .ndo_get_stats          = smsc9420_get_stats,
        .ndo_set_rx_mode        = smsc9420_set_multicast_list,
-       .ndo_do_ioctl           = phy_do_ioctl_running,
+       .ndo_eth_ioctl          = phy_do_ioctl_running,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = eth_mac_addr,
 #ifdef CONFIG_NET_POLL_CONTROLLER
index 20d148c019d8de77ae16596908f3cae277e4789c..d15f7b3a3f101e8da716076d8313136b56c7ce41 100644 (file)
@@ -1831,7 +1831,7 @@ static const struct net_device_ops netsec_netdev_ops = {
        .ndo_set_features       = netsec_netdev_set_features,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_do_ioctl           = phy_do_ioctl,
+       .ndo_eth_ioctl          = phy_do_ioctl,
        .ndo_xdp_xmit           = netsec_xdp_xmit,
        .ndo_bpf                = netsec_xdp,
 };
index 5eb6bb4f7b6ce5afd0819c88743d36f0e5e48f45..ae31ed93aaf02d01a7faab6894e7b22f62bf49ab 100644 (file)
@@ -1543,7 +1543,7 @@ static const struct net_device_ops ave_netdev_ops = {
        .ndo_open               = ave_open,
        .ndo_stop               = ave_stop,
        .ndo_start_xmit         = ave_start_xmit,
-       .ndo_do_ioctl           = ave_ioctl,
+       .ndo_eth_ioctl          = ave_ioctl,
        .ndo_set_rx_mode        = ave_set_rx_mode,
        .ndo_get_stats64        = ave_get_stats64,
        .ndo_set_mac_address    = ave_set_mac_address,
index 7b8404a21544cf29668e8a14240c3971e6bce0c3..a2aa75cb184efda4be603899910289bf3004f776 100644 (file)
@@ -6451,7 +6451,7 @@ static const struct net_device_ops stmmac_netdev_ops = {
        .ndo_set_features = stmmac_set_features,
        .ndo_set_rx_mode = stmmac_set_rx_mode,
        .ndo_tx_timeout = stmmac_tx_timeout,
-       .ndo_do_ioctl = stmmac_ioctl,
+       .ndo_eth_ioctl = stmmac_ioctl,
        .ndo_setup_tc = stmmac_setup_tc,
        .ndo_select_queue = stmmac_select_queue,
 #ifdef CONFIG_NET_POLL_CONTROLLER
index 981685c88308091d189108a999b59a0346c2eb88..287ae4c538aaeab0d7f516770c9328a559ccaf86 100644 (file)
@@ -4876,7 +4876,7 @@ static const struct net_device_ops cas_netdev_ops = {
        .ndo_start_xmit         = cas_start_xmit,
        .ndo_get_stats          = cas_get_stats,
        .ndo_set_rx_mode        = cas_set_multicast,
-       .ndo_do_ioctl           = cas_ioctl,
+       .ndo_eth_ioctl          = cas_ioctl,
        .ndo_tx_timeout         = cas_tx_timeout,
        .ndo_change_mtu         = cas_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
index 74e748662ec017027b1eac053fa7618948c90a36..006fd4237725d0b342144119ec940c9aa18db63c 100644 (file)
@@ -9667,7 +9667,7 @@ static const struct net_device_ops niu_netdev_ops = {
        .ndo_set_rx_mode        = niu_set_rx_mode,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = niu_set_mac_addr,
-       .ndo_do_ioctl           = niu_ioctl,
+       .ndo_eth_ioctl          = niu_ioctl,
        .ndo_tx_timeout         = niu_tx_timeout,
        .ndo_change_mtu         = niu_change_mtu,
 };
index cfb9e21b18b7ef1884230011459929848c9d8f5f..d72018a60c0f7d00a379f9e79c73ff1eb5f27c65 100644 (file)
@@ -2831,7 +2831,7 @@ static const struct net_device_ops gem_netdev_ops = {
        .ndo_start_xmit         = gem_start_xmit,
        .ndo_get_stats          = gem_get_stats,
        .ndo_set_rx_mode        = gem_set_multicast,
-       .ndo_do_ioctl           = gem_ioctl,
+       .ndo_eth_ioctl          = gem_ioctl,
        .ndo_tx_timeout         = gem_tx_timeout,
        .ndo_change_mtu         = gem_change_mtu,
        .ndo_validate_addr      = eth_validate_addr,
index 26d178f8616b6f0fd6a049bf965d85e0bf510a9f..1db7104fef3aaf41a45cc932d2caeb6af424ad6a 100644 (file)
@@ -933,7 +933,7 @@ static const struct net_device_ops xlgmac_netdev_ops = {
        .ndo_change_mtu         = xlgmac_change_mtu,
        .ndo_set_mac_address    = xlgmac_set_mac_address,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_do_ioctl           = xlgmac_ioctl,
+       .ndo_eth_ioctl          = xlgmac_ioctl,
        .ndo_vlan_rx_add_vid    = xlgmac_vlan_rx_add_vid,
        .ndo_vlan_rx_kill_vid   = xlgmac_vlan_rx_kill_vid,
 #ifdef CONFIG_NET_POLL_CONTROLLER
index 229e2f09d6059442d13621762b06888f01cf9f3d..dffb6839f0fa8f636895b9f56b9e09f13cf750fb 100644 (file)
@@ -1480,7 +1480,7 @@ static const struct net_device_ops am65_cpsw_nuss_netdev_ops = {
        .ndo_tx_timeout         = am65_cpsw_nuss_ndo_host_tx_timeout,
        .ndo_vlan_rx_add_vid    = am65_cpsw_nuss_ndo_slave_add_vid,
        .ndo_vlan_rx_kill_vid   = am65_cpsw_nuss_ndo_slave_kill_vid,
-       .ndo_do_ioctl           = am65_cpsw_nuss_ndo_slave_ioctl,
+       .ndo_eth_ioctl          = am65_cpsw_nuss_ndo_slave_ioctl,
        .ndo_setup_tc           = am65_cpsw_qos_ndo_setup_tc,
        .ndo_get_devlink_port   = am65_cpsw_ndo_get_devlink_port,
 };
index c20715107075757e92bcc63ca037d5d2f0da0418..02d4e51f73064e70a2d59d39f2edc1f5b593e4ea 100644 (file)
@@ -1044,7 +1044,7 @@ static const struct net_device_ops cpmac_netdev_ops = {
        .ndo_start_xmit         = cpmac_start_xmit,
        .ndo_tx_timeout         = cpmac_tx_timeout,
        .ndo_set_rx_mode        = cpmac_set_multicast_list,
-       .ndo_do_ioctl           = phy_do_ioctl_running,
+       .ndo_eth_ioctl          = phy_do_ioctl_running,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = eth_mac_addr,
 };
index cbbd0f665796a6ec153ef1df9633281e0d0fc446..abf9a2a6f7eb4838cc9b16aed53fbcf2b8d1cbd6 100644 (file)
@@ -1159,7 +1159,7 @@ static const struct net_device_ops cpsw_netdev_ops = {
        .ndo_stop               = cpsw_ndo_stop,
        .ndo_start_xmit         = cpsw_ndo_start_xmit,
        .ndo_set_mac_address    = cpsw_ndo_set_mac_address,
-       .ndo_do_ioctl           = cpsw_ndo_ioctl,
+       .ndo_eth_ioctl          = cpsw_ndo_ioctl,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_tx_timeout         = cpsw_ndo_tx_timeout,
        .ndo_set_rx_mode        = cpsw_ndo_set_rx_mode,
index 4448a91cce54f3a08d1861c30b681f3207c7a5e5..b4f55ff4e84f7563054a139d464399583a2b5784 100644 (file)
@@ -1128,7 +1128,7 @@ static const struct net_device_ops cpsw_netdev_ops = {
        .ndo_stop               = cpsw_ndo_stop,
        .ndo_start_xmit         = cpsw_ndo_start_xmit,
        .ndo_set_mac_address    = cpsw_ndo_set_mac_address,
-       .ndo_do_ioctl           = cpsw_ndo_ioctl,
+       .ndo_eth_ioctl          = cpsw_ndo_ioctl,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_tx_timeout         = cpsw_ndo_tx_timeout,
        .ndo_set_rx_mode        = cpsw_ndo_set_rx_mode,
index c674e34b6839433f2472a182ade9af5148c8ca38..6377966707463fb98b60d1f60ba6b505ee768d3a 100644 (file)
@@ -1670,7 +1670,7 @@ static const struct net_device_ops emac_netdev_ops = {
        .ndo_start_xmit         = emac_dev_xmit,
        .ndo_set_rx_mode        = emac_dev_mcast_set,
        .ndo_set_mac_address    = emac_dev_setmac_addr,
-       .ndo_do_ioctl           = emac_devioctl,
+       .ndo_eth_ioctl          = emac_devioctl,
        .ndo_tx_timeout         = emac_dev_tx_timeout,
        .ndo_get_stats          = emac_dev_getnetstats,
 #ifdef CONFIG_NET_POLL_CONTROLLER
index 97942b0e3897539b0a63eb491719398cc9ac33a8..eda2961c0fe2a8054fdab620044702f9d82ed135 100644 (file)
@@ -1944,7 +1944,7 @@ static const struct net_device_ops netcp_netdev_ops = {
        .ndo_stop               = netcp_ndo_stop,
        .ndo_start_xmit         = netcp_ndo_start_xmit,
        .ndo_set_rx_mode        = netcp_set_rx_mode,
-       .ndo_do_ioctl           = netcp_ndo_ioctl,
+       .ndo_eth_ioctl           = netcp_ndo_ioctl,
        .ndo_get_stats64        = netcp_get_stats,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
index e0cb713193ea4bff9c496c163c8d5e4642933ab2..77c448ad67ce1f4c08013b26114235788286b480 100644 (file)
@@ -749,7 +749,7 @@ static const struct net_device_ops tlan_netdev_ops = {
        .ndo_tx_timeout         = tlan_tx_timeout,
        .ndo_get_stats          = tlan_get_stats,
        .ndo_set_rx_mode        = tlan_set_multicast_list,
-       .ndo_do_ioctl           = tlan_ioctl,
+       .ndo_eth_ioctl          = tlan_ioctl,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
 #ifdef CONFIG_NET_POLL_CONTROLLER
index 226a76633e65c6cf5edf25e52e7f8d77f1ee6c55..087f0af56c5044c3ae4354654269eef4c47d283a 100644 (file)
@@ -2214,7 +2214,7 @@ static const struct net_device_ops spider_net_ops = {
        .ndo_start_xmit         = spider_net_xmit,
        .ndo_set_rx_mode        = spider_net_set_multi,
        .ndo_set_mac_address    = spider_net_set_mac,
-       .ndo_do_ioctl           = spider_net_do_ioctl,
+       .ndo_eth_ioctl          = spider_net_do_ioctl,
        .ndo_tx_timeout         = spider_net_tx_timeout,
        .ndo_validate_addr      = eth_validate_addr,
        /* HW VLAN */
index fedb2bf69261218b3647172443df8320e11823f8..52245ac60fc74ff251423eaebfe0450102d72711 100644 (file)
@@ -750,7 +750,7 @@ static const struct net_device_ops tc35815_netdev_ops = {
        .ndo_get_stats          = tc35815_get_stats,
        .ndo_set_rx_mode        = tc35815_set_multicast_list,
        .ndo_tx_timeout         = tc35815_tx_timeout,
-       .ndo_do_ioctl           = phy_do_ioctl_running,
+       .ndo_eth_ioctl          = phy_do_ioctl_running,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = eth_mac_addr,
 #ifdef CONFIG_NET_POLL_CONTROLLER
index c62f474b6d08eb74c159811c9ea32549845072e9..cf0917b29e3003368567b9b32c4c4c372159d349 100644 (file)
@@ -1538,7 +1538,7 @@ static const struct net_device_ops tsi108_netdev_ops = {
        .ndo_start_xmit         = tsi108_send_packet,
        .ndo_set_rx_mode        = tsi108_set_rx_mode,
        .ndo_get_stats          = tsi108_get_stats,
-       .ndo_do_ioctl           = tsi108_do_ioctl,
+       .ndo_eth_ioctl          = tsi108_do_ioctl,
        .ndo_set_mac_address    = tsi108_set_mac,
        .ndo_validate_addr      = eth_validate_addr,
 };
index 73ca597ebd1b64824f87bc0585d25fe86ad45b29..961b623b78802166b251dcaf90f9542666d7cfba 100644 (file)
@@ -884,7 +884,7 @@ static const struct net_device_ops rhine_netdev_ops = {
        .ndo_set_rx_mode         = rhine_set_rx_mode,
        .ndo_validate_addr       = eth_validate_addr,
        .ndo_set_mac_address     = eth_mac_addr,
-       .ndo_do_ioctl            = netdev_ioctl,
+       .ndo_eth_ioctl           = netdev_ioctl,
        .ndo_tx_timeout          = rhine_tx_timeout,
        .ndo_vlan_rx_add_vid     = rhine_vlan_rx_add_vid,
        .ndo_vlan_rx_kill_vid    = rhine_vlan_rx_kill_vid,
index 88426b5e410b64f7770b94facfb192367133d042..278f49518d3f72e4100035fcaed63e28c75a68e8 100644 (file)
@@ -2637,7 +2637,7 @@ static const struct net_device_ops velocity_netdev_ops = {
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_set_rx_mode        = velocity_set_multi,
        .ndo_change_mtu         = velocity_change_mtu,
-       .ndo_do_ioctl           = velocity_ioctl,
+       .ndo_eth_ioctl          = velocity_ioctl,
        .ndo_vlan_rx_add_vid    = velocity_vlan_rx_add_vid,
        .ndo_vlan_rx_kill_vid   = velocity_vlan_rx_kill_vid,
 #ifdef CONFIG_NET_POLL_CONTROLLER
index 60a4f79b8fa19d43da100ef4e6a40284d51c8ede..db1994fb51c54b2911005a357c67d0d010509e59 100644 (file)
@@ -1237,7 +1237,7 @@ static const struct net_device_ops temac_netdev_ops = {
        .ndo_set_rx_mode = temac_set_multicast_list,
        .ndo_set_mac_address = temac_set_mac_address,
        .ndo_validate_addr = eth_validate_addr,
-       .ndo_do_ioctl = phy_do_ioctl_running,
+       .ndo_eth_ioctl = phy_do_ioctl_running,
 #ifdef CONFIG_NET_POLL_CONTROLLER
        .ndo_poll_controller = temac_poll_controller,
 #endif
index 13cd799541aa397b8458f9842b04da32c3cf2751..348c0ba5edcf663e2e3c1ade572d76ce9656d438 100644 (file)
@@ -1227,7 +1227,7 @@ static const struct net_device_ops axienet_netdev_ops = {
        .ndo_change_mtu = axienet_change_mtu,
        .ndo_set_mac_address = netdev_set_mac_address,
        .ndo_validate_addr = eth_validate_addr,
-       .ndo_do_ioctl = axienet_ioctl,
+       .ndo_eth_ioctl = axienet_ioctl,
        .ndo_set_rx_mode = axienet_set_multicast_list,
 #ifdef CONFIG_NET_POLL_CONTROLLER
        .ndo_poll_controller = axienet_poll_controller,
index b06377fe72938cec8b7621414cbbeea27ef62fe0..b780aad3550aa3a98ba5eb7da4d1f57e7cbc868e 100644 (file)
@@ -1263,7 +1263,7 @@ static const struct net_device_ops xemaclite_netdev_ops = {
        .ndo_start_xmit         = xemaclite_send,
        .ndo_set_mac_address    = xemaclite_set_mac_address,
        .ndo_tx_timeout         = xemaclite_tx_timeout,
-       .ndo_do_ioctl           = xemaclite_ioctl,
+       .ndo_eth_ioctl          = xemaclite_ioctl,
 #ifdef CONFIG_NET_POLL_CONTROLLER
        .ndo_poll_controller = xemaclite_poll_controller,
 #endif
index 4f6db6f5c27232cb3d8f172852c9cb11b1e0f36c..ae611e46da6af34493d264eaf5c3250524deb3a8 100644 (file)
@@ -464,7 +464,7 @@ static const struct net_device_ops netdev_ops = {
        .ndo_start_xmit         = do_start_xmit,
        .ndo_tx_timeout         = xirc_tx_timeout,
        .ndo_set_config         = do_config,
-       .ndo_do_ioctl           = do_ioctl,
+       .ndo_eth_ioctl          = do_ioctl,
        .ndo_set_rx_mode        = set_multicast_list,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
index 7ae754eadf22b3a935b498358f5fa9346807c41e..ff50305d6e134833e7ed6d9ec76568405ac11aa9 100644 (file)
@@ -1357,7 +1357,7 @@ static const struct net_device_ops ixp4xx_netdev_ops = {
        .ndo_stop = eth_close,
        .ndo_start_xmit = eth_xmit,
        .ndo_set_rx_mode = eth_set_mcast_list,
-       .ndo_do_ioctl = eth_ioctl,
+       .ndo_eth_ioctl = eth_ioctl,
        .ndo_set_mac_address = eth_mac_addr,
        .ndo_validate_addr = eth_validate_addr,
 };
index 80de9768ecd4968b3cda4b06ba4a4be824fecc4f..35f46ad040b0d4743976ed1b595291c243f7eddb 100644 (file)
@@ -829,7 +829,7 @@ static int macvlan_change_mtu(struct net_device *dev, int new_mtu)
        return 0;
 }
 
-static int macvlan_do_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
+static int macvlan_eth_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
 {
        struct net_device *real_dev = macvlan_dev_real_dev(dev);
        const struct net_device_ops *ops = real_dev->netdev_ops;
@@ -845,8 +845,8 @@ static int macvlan_do_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
                        break;
                fallthrough;
        case SIOCGHWTSTAMP:
-               if (netif_device_present(real_dev) && ops->ndo_do_ioctl)
-                       err = ops->ndo_do_ioctl(real_dev, &ifrr, cmd);
+               if (netif_device_present(real_dev) && ops->ndo_eth_ioctl)
+                       err = ops->ndo_eth_ioctl(real_dev, &ifrr, cmd);
                break;
        }
 
@@ -1151,7 +1151,7 @@ static const struct net_device_ops macvlan_netdev_ops = {
        .ndo_stop               = macvlan_stop,
        .ndo_start_xmit         = macvlan_start_xmit,
        .ndo_change_mtu         = macvlan_change_mtu,
-       .ndo_do_ioctl           = macvlan_do_ioctl,
+       .ndo_eth_ioctl          = macvlan_eth_ioctl,
        .ndo_fix_features       = macvlan_fix_features,
        .ndo_change_rx_flags    = macvlan_change_rx_flags,
        .ndo_set_mac_address    = macvlan_set_mac_address,
index 8eeb26d8aeb7ddac1f81a73b3af02e25d8c909c7..f124a8a58bd41a850b83704f159f36d249e03543 100644 (file)
@@ -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
index 9b914765c2de3aae5050d6ec14576daa0a0a5664..cb01897c7a5d4cdc3f6e968d943f535afd3c36ea 100644 (file)
@@ -197,7 +197,7 @@ static const struct net_device_ops ax88172_netdev_ops = {
        .ndo_get_stats64        = dev_get_tstats64,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_do_ioctl           = asix_ioctl,
+       .ndo_eth_ioctl          = asix_ioctl,
        .ndo_set_rx_mode        = ax88172_set_multicast,
 };
 
@@ -589,7 +589,7 @@ static const struct net_device_ops ax88772_netdev_ops = {
        .ndo_get_stats64        = dev_get_tstats64,
        .ndo_set_mac_address    = asix_set_mac_address,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_do_ioctl           = phy_do_ioctl_running,
+       .ndo_eth_ioctl          = phy_do_ioctl_running,
        .ndo_set_rx_mode        = asix_set_multicast,
 };
 
@@ -1095,7 +1095,7 @@ static const struct net_device_ops ax88178_netdev_ops = {
        .ndo_set_mac_address    = asix_set_mac_address,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_rx_mode        = asix_set_multicast,
-       .ndo_do_ioctl           = asix_ioctl,
+       .ndo_eth_ioctl          = asix_ioctl,
        .ndo_change_mtu         = ax88178_change_mtu,
 };
 
index 530947d7477b836fd6e2a5343365a629ccc95c5f..d9777d9a7c5dfea7ad0bb5a81f81165ac47a8748 100644 (file)
@@ -109,7 +109,7 @@ static const struct net_device_ops ax88172a_netdev_ops = {
        .ndo_get_stats64        = dev_get_tstats64,
        .ndo_set_mac_address    = asix_set_mac_address,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_do_ioctl           = phy_do_ioctl_running,
+       .ndo_eth_ioctl          = phy_do_ioctl_running,
        .ndo_set_rx_mode        = asix_set_multicast,
 };
 
index c1316718304d0150afd194e184d64c1dfb0ec4dd..f25448a0887074102680d711161646039c8a9952 100644 (file)
@@ -1035,7 +1035,7 @@ static const struct net_device_ops ax88179_netdev_ops = {
        .ndo_change_mtu         = ax88179_change_mtu,
        .ndo_set_mac_address    = ax88179_set_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_do_ioctl           = ax88179_ioctl,
+       .ndo_eth_ioctl          = ax88179_ioctl,
        .ndo_set_rx_mode        = ax88179_set_multicast,
        .ndo_set_features       = ax88179_set_features,
 };
index 89cc61d7a67540239592a1e86a18aae01dd1b7a2..907f98b1eefee02679ee942a21b609ab99dba49a 100644 (file)
@@ -345,7 +345,7 @@ static const struct net_device_ops dm9601_netdev_ops = {
        .ndo_change_mtu         = usbnet_change_mtu,
        .ndo_get_stats64        = dev_get_tstats64,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_do_ioctl           = dm9601_ioctl,
+       .ndo_eth_ioctl          = dm9601_ioctl,
        .ndo_set_rx_mode        = dm9601_set_multicast,
        .ndo_set_mac_address    = dm9601_set_mac_address,
 };
index 25489389ea4943629e47cfaf3af452cd89d289b2..13f86368b78a558a8de03f940006b5dec5ec2653 100644 (file)
@@ -3601,7 +3601,7 @@ static const struct net_device_ops lan78xx_netdev_ops = {
        .ndo_change_mtu         = lan78xx_change_mtu,
        .ndo_set_mac_address    = lan78xx_set_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_do_ioctl           = phy_do_ioctl_running,
+       .ndo_eth_ioctl          = phy_do_ioctl_running,
        .ndo_set_rx_mode        = lan78xx_set_multicast,
        .ndo_set_features       = lan78xx_set_features,
        .ndo_vlan_rx_add_vid    = lan78xx_vlan_rx_add_vid,
index 2469bdcb1a04975fbc319ccab489d8d2468eaee4..66866bef25df7409607eba1f1f848a17c5d2d40d 100644 (file)
@@ -464,7 +464,7 @@ static const struct net_device_ops mcs7830_netdev_ops = {
        .ndo_change_mtu         = usbnet_change_mtu,
        .ndo_get_stats64        = dev_get_tstats64,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_do_ioctl           = mcs7830_ioctl,
+       .ndo_eth_ioctl          = mcs7830_ioctl,
        .ndo_set_rx_mode        = mcs7830_set_multicast,
        .ndo_set_mac_address    = mcs7830_set_mac_address,
 };
index e09b107b5c9920ac8b39c39be80fe62df496f16d..d7fbc81b518a2bdf07f241a5ec6ceb4b9aecefc1 100644 (file)
@@ -9173,7 +9173,7 @@ static int rtl8152_change_mtu(struct net_device *dev, int new_mtu)
 static const struct net_device_ops rtl8152_netdev_ops = {
        .ndo_open               = rtl8152_open,
        .ndo_stop               = rtl8152_close,
-       .ndo_do_ioctl           = rtl8152_ioctl,
+       .ndo_eth_ioctl          = rtl8152_ioctl,
        .ndo_start_xmit         = rtl8152_start_xmit,
        .ndo_tx_timeout         = rtl8152_tx_timeout,
        .ndo_set_features       = rtl8152_set_features,
index 13141dbfa3a836572e956196ea40797a649b5dbb..76f7af1613139b9bfc2a4ecf0c75c2819127a04f 100644 (file)
@@ -1439,7 +1439,7 @@ static const struct net_device_ops smsc75xx_netdev_ops = {
        .ndo_change_mtu         = smsc75xx_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_do_ioctl           = smsc75xx_ioctl,
+       .ndo_eth_ioctl          = smsc75xx_ioctl,
        .ndo_set_rx_mode        = smsc75xx_set_multicast,
        .ndo_set_features       = smsc75xx_set_features,
 };
index 4c8ee1cff4d47cc61c29ba14d6866ca0642c3e57..7d953974eb9b5d61f326fae1a81448945bbbe2fb 100644 (file)
@@ -1044,7 +1044,7 @@ static const struct net_device_ops smsc95xx_netdev_ops = {
        .ndo_get_stats64        = dev_get_tstats64,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_do_ioctl           = smsc95xx_ioctl,
+       .ndo_eth_ioctl          = smsc95xx_ioctl,
        .ndo_set_rx_mode        = smsc95xx_set_multicast,
        .ndo_set_features       = smsc95xx_set_features,
 };
index ce29261263cd8ff66e2939080b723cdd53413723..6516a37893e275542a2094d447b25fbbe408205f 100644 (file)
@@ -310,7 +310,7 @@ static const struct net_device_ops sr9700_netdev_ops = {
        .ndo_change_mtu         = usbnet_change_mtu,
        .ndo_get_stats64        = dev_get_tstats64,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_do_ioctl           = sr9700_ioctl,
+       .ndo_eth_ioctl          = sr9700_ioctl,
        .ndo_set_rx_mode        = sr9700_set_multicast,
        .ndo_set_mac_address    = sr9700_set_mac_address,
 };
index a822d81310d585efe445a6d238a2c8e7e260fe45..576401c8b1beee1bad174f07b1db8bc4128b7a6a 100644 (file)
@@ -684,7 +684,7 @@ static const struct net_device_ops sr9800_netdev_ops = {
        .ndo_get_stats64        = dev_get_tstats64,
        .ndo_set_mac_address    = sr_set_mac_address,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_do_ioctl           = sr_ioctl,
+       .ndo_eth_ioctl          = sr_ioctl,
        .ndo_set_rx_mode        = sr_set_multicast,
 };
 
index d50d3cba238eeb6d3dc2a3ed6873e2967c07c65b..69afc0311dd1f218c4bca9ac4089469189d66327 100644 (file)
@@ -836,7 +836,7 @@ static const struct net_device_ops qeth_l2_netdev_ops = {
        .ndo_select_queue       = qeth_l2_select_queue,
        .ndo_validate_addr      = qeth_l2_validate_addr,
        .ndo_set_rx_mode        = qeth_l2_set_rx_mode,
-       .ndo_do_ioctl           = qeth_do_ioctl,
+       .ndo_eth_ioctl          = qeth_do_ioctl,
        .ndo_siocdevprivate     = qeth_siocdevprivate,
        .ndo_set_mac_address    = qeth_l2_set_mac_address,
        .ndo_vlan_rx_add_vid    = qeth_l2_vlan_rx_add_vid,
index d7a895372f19a2a912fa60a2044c055e58c6836f..3a523e700a5a6f4bf15a47a51318ea4ce7c47e78 100644 (file)
@@ -1841,7 +1841,7 @@ static const struct net_device_ops qeth_l3_netdev_ops = {
        .ndo_select_queue       = qeth_l3_iqd_select_queue,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_rx_mode        = qeth_l3_set_rx_mode,
-       .ndo_do_ioctl           = qeth_do_ioctl,
+       .ndo_eth_ioctl          = qeth_do_ioctl,
        .ndo_siocdevprivate     = qeth_siocdevprivate,
        .ndo_fix_features       = qeth_fix_features,
        .ndo_set_features       = qeth_set_features,
@@ -1857,7 +1857,7 @@ static const struct net_device_ops qeth_l3_osa_netdev_ops = {
        .ndo_select_queue       = qeth_l3_osa_select_queue,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_rx_mode        = qeth_l3_set_rx_mode,
-       .ndo_do_ioctl           = qeth_do_ioctl,
+       .ndo_eth_ioctl          = qeth_do_ioctl,
        .ndo_siocdevprivate     = qeth_siocdevprivate,
        .ndo_fix_features       = qeth_fix_features,
        .ndo_set_features       = qeth_set_features,
index dcbba9621b212eaa3dd489e0c2e25155fbb0a6be..5d24c1b6663b7321cd22b5d84d7670e2ec4e6907 100644 (file)
@@ -524,7 +524,7 @@ static const struct net_device_ops cvm_oct_npi_netdev_ops = {
        .ndo_start_xmit         = cvm_oct_xmit,
        .ndo_set_rx_mode        = cvm_oct_common_set_multicast_list,
        .ndo_set_mac_address    = cvm_oct_common_set_mac_address,
-       .ndo_do_ioctl           = cvm_oct_ioctl,
+       .ndo_eth_ioctl          = cvm_oct_ioctl,
        .ndo_change_mtu         = cvm_oct_common_change_mtu,
        .ndo_get_stats          = cvm_oct_common_get_stats,
 #ifdef CONFIG_NET_POLL_CONTROLLER
@@ -540,7 +540,7 @@ static const struct net_device_ops cvm_oct_xaui_netdev_ops = {
        .ndo_start_xmit         = cvm_oct_xmit,
        .ndo_set_rx_mode        = cvm_oct_common_set_multicast_list,
        .ndo_set_mac_address    = cvm_oct_common_set_mac_address,
-       .ndo_do_ioctl           = cvm_oct_ioctl,
+       .ndo_eth_ioctl          = cvm_oct_ioctl,
        .ndo_change_mtu         = cvm_oct_common_change_mtu,
        .ndo_get_stats          = cvm_oct_common_get_stats,
 #ifdef CONFIG_NET_POLL_CONTROLLER
@@ -556,7 +556,7 @@ static const struct net_device_ops cvm_oct_sgmii_netdev_ops = {
        .ndo_start_xmit         = cvm_oct_xmit,
        .ndo_set_rx_mode        = cvm_oct_common_set_multicast_list,
        .ndo_set_mac_address    = cvm_oct_common_set_mac_address,
-       .ndo_do_ioctl           = cvm_oct_ioctl,
+       .ndo_eth_ioctl          = cvm_oct_ioctl,
        .ndo_change_mtu         = cvm_oct_common_change_mtu,
        .ndo_get_stats          = cvm_oct_common_get_stats,
 #ifdef CONFIG_NET_POLL_CONTROLLER
@@ -570,7 +570,7 @@ static const struct net_device_ops cvm_oct_spi_netdev_ops = {
        .ndo_start_xmit         = cvm_oct_xmit,
        .ndo_set_rx_mode        = cvm_oct_common_set_multicast_list,
        .ndo_set_mac_address    = cvm_oct_common_set_mac_address,
-       .ndo_do_ioctl           = cvm_oct_ioctl,
+       .ndo_eth_ioctl          = cvm_oct_ioctl,
        .ndo_change_mtu         = cvm_oct_common_change_mtu,
        .ndo_get_stats          = cvm_oct_common_get_stats,
 #ifdef CONFIG_NET_POLL_CONTROLLER
@@ -586,7 +586,7 @@ static const struct net_device_ops cvm_oct_rgmii_netdev_ops = {
        .ndo_start_xmit         = cvm_oct_xmit,
        .ndo_set_rx_mode        = cvm_oct_common_set_multicast_list,
        .ndo_set_mac_address    = cvm_oct_common_set_mac_address,
-       .ndo_do_ioctl           = cvm_oct_ioctl,
+       .ndo_eth_ioctl          = cvm_oct_ioctl,
        .ndo_change_mtu         = cvm_oct_common_change_mtu,
        .ndo_get_stats          = cvm_oct_common_get_stats,
 #ifdef CONFIG_NET_POLL_CONTROLLER
@@ -599,7 +599,7 @@ static const struct net_device_ops cvm_oct_pow_netdev_ops = {
        .ndo_start_xmit         = cvm_oct_xmit_pow,
        .ndo_set_rx_mode        = cvm_oct_common_set_multicast_list,
        .ndo_set_mac_address    = cvm_oct_common_set_mac_address,
-       .ndo_do_ioctl           = cvm_oct_ioctl,
+       .ndo_eth_ioctl          = cvm_oct_ioctl,
        .ndo_change_mtu         = cvm_oct_common_change_mtu,
        .ndo_get_stats          = cvm_oct_common_get_stats,
 #ifdef CONFIG_NET_POLL_CONTROLLER
index 658d8cf5734259dd43bf30c25d8fad88b8ec7c88..b6e062a3b0d458b146196e094618db129fe351e7 100644 (file)
@@ -1090,6 +1090,10 @@ struct netdev_net_notifier {
  *     the generic interface code. If not defined ioctls return
  *     not supported error code.
  *
+ * * int (*ndo_eth_ioctl)(struct net_device *dev, struct ifreq *ifr, int cmd);
+ *     Called for ethernet specific ioctls: SIOCGMIIPHY, SIOCGMIIREG,
+ *     SIOCSMIIREG, SIOCSHWTSTAMP and SIOCGHWTSTAMP.
+ *
  * int (*ndo_set_config)(struct net_device *dev, struct ifmap *map);
  *     Used to set network devices bus interface parameters. This interface
  *     is retained for legacy reasons; new devices should use the bus
@@ -1361,6 +1365,8 @@ struct net_device_ops {
        int                     (*ndo_validate_addr)(struct net_device *dev);
        int                     (*ndo_do_ioctl)(struct net_device *dev,
                                                struct ifreq *ifr, int cmd);
+       int                     (*ndo_eth_ioctl)(struct net_device *dev,
+                                                struct ifreq *ifr, int cmd);
        int                     (*ndo_siocdevprivate)(struct net_device *dev,
                                                      struct ifreq *ifr,
                                                      void __user *data, int cmd);
index 55fcac854058ec148c517f054fefccb04781e8d0..2af6ee2f2bfb607c3bd8dbd9792257f4c36bfa83 100644 (file)
@@ -106,8 +106,8 @@ struct dsa_device_ops {
  * function pointers.
  */
 struct dsa_netdevice_ops {
-       int (*ndo_do_ioctl)(struct net_device *dev, struct ifreq *ifr,
-                           int cmd);
+       int (*ndo_eth_ioctl)(struct net_device *dev, struct ifreq *ifr,
+                            int cmd);
 };
 
 #define DSA_TAG_DRIVER_ALIAS "dsa_tag-"
@@ -1019,8 +1019,8 @@ static inline int __dsa_netdevice_ops_check(struct net_device *dev)
        return 0;
 }
 
-static inline int dsa_ndo_do_ioctl(struct net_device *dev, struct ifreq *ifr,
-                                  int cmd)
+static inline int dsa_ndo_eth_ioctl(struct net_device *dev, struct ifreq *ifr,
+                                   int cmd)
 {
        const struct dsa_netdevice_ops *ops;
        int err;
@@ -1031,11 +1031,11 @@ static inline int dsa_ndo_do_ioctl(struct net_device *dev, struct ifreq *ifr,
 
        ops = dev->dsa_ptr->netdev_ops;
 
-       return ops->ndo_do_ioctl(dev, ifr, cmd);
+       return ops->ndo_eth_ioctl(dev, ifr, cmd);
 }
 #else
-static inline int dsa_ndo_do_ioctl(struct net_device *dev, struct ifreq *ifr,
-                                  int cmd)
+static inline int dsa_ndo_eth_ioctl(struct net_device *dev, struct ifreq *ifr,
+                                   int cmd)
 {
        return -EOPNOTSUPP;
 }
index a0367b37512d8cf9f500ecb2a230043d48e54f6e..0c21d1fec8522b0e64e179a95f9c53c2261ca9d8 100644 (file)
@@ -372,8 +372,8 @@ static int vlan_dev_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
        case SIOCGMIIREG:
        case SIOCSMIIREG:
        case SIOCGHWTSTAMP:
-               if (netif_device_present(real_dev) && ops->ndo_do_ioctl)
-                       err = ops->ndo_do_ioctl(real_dev, &ifrr, cmd);
+               if (netif_device_present(real_dev) && ops->ndo_eth_ioctl)
+                       err = ops->ndo_eth_ioctl(real_dev, &ifrr, cmd);
                break;
        }
 
@@ -814,7 +814,7 @@ static const struct net_device_ops vlan_netdev_ops = {
        .ndo_set_mac_address    = vlan_dev_set_mac_address,
        .ndo_set_rx_mode        = vlan_dev_set_rx_mode,
        .ndo_change_rx_flags    = vlan_dev_change_rx_flags,
-       .ndo_do_ioctl           = vlan_dev_ioctl,
+       .ndo_eth_ioctl          = vlan_dev_ioctl,
        .ndo_neigh_setup        = vlan_dev_neigh_setup,
        .ndo_get_stats64        = vlan_dev_get_stats64,
 #if IS_ENABLED(CONFIG_FCOE)
index 3ace1e4f6b80086ef60c3e90c505b75a976b6b48..8e30fe8b564513422228bca7027cf9c4ce80988a 100644 (file)
@@ -239,19 +239,19 @@ static int net_hwtstamp_validate(struct ifreq *ifr)
        return 0;
 }
 
-static int dev_do_ioctl(struct net_device *dev,
-                       struct ifreq *ifr, unsigned int cmd)
+static int dev_eth_ioctl(struct net_device *dev,
+                        struct ifreq *ifr, unsigned int cmd)
 {
        const struct net_device_ops *ops = dev->netdev_ops;
        int err;
 
-       err = dsa_ndo_do_ioctl(dev, ifr, cmd);
+       err = dsa_ndo_eth_ioctl(dev, ifr, cmd);
        if (err == 0 || err != -EOPNOTSUPP)
                return err;
 
-       if (ops->ndo_do_ioctl) {
+       if (ops->ndo_eth_ioctl) {
                if (netif_device_present(dev))
-                       err = ops->ndo_do_ioctl(dev, ifr, cmd);
+                       err = ops->ndo_eth_ioctl(dev, ifr, cmd);
                else
                        err = -ENODEV;
        }
@@ -259,6 +259,21 @@ static int dev_do_ioctl(struct net_device *dev,
        return err;
 }
 
+static int dev_do_ioctl(struct net_device *dev,
+                       struct ifreq *ifr, unsigned int cmd)
+{
+       const struct net_device_ops *ops = dev->netdev_ops;
+
+       if (ops->ndo_do_ioctl) {
+               if (netif_device_present(dev))
+                       return ops->ndo_do_ioctl(dev, ifr, cmd);
+               else
+                       return -ENODEV;
+       }
+
+       return -EOPNOTSUPP;
+}
+
 static int dev_siocdevprivate(struct net_device *dev, struct ifreq *ifr,
                              void __user *data, unsigned int cmd)
 {
@@ -358,19 +373,20 @@ static int dev_ifsioc(struct net *net, struct ifreq *ifr, void __user *data,
                    cmd <= SIOCDEVPRIVATE + 15)
                        return dev_siocdevprivate(dev, ifr, data, cmd);
 
-               if (cmd == SIOCBONDENSLAVE ||
+               if (cmd == SIOCGMIIPHY ||
+                   cmd == SIOCGMIIREG ||
+                   cmd == SIOCSMIIREG ||
+                   cmd == SIOCSHWTSTAMP ||
+                   cmd == SIOCGHWTSTAMP) {
+                       err = dev_eth_ioctl(dev, ifr, cmd);
+               } else if (cmd == SIOCBONDENSLAVE ||
                    cmd == SIOCBONDRELEASE ||
                    cmd == SIOCBONDSETHWADDR ||
                    cmd == SIOCBONDSLAVEINFOQUERY ||
                    cmd == SIOCBONDINFOQUERY ||
                    cmd == SIOCBONDCHANGEACTIVE ||
-                   cmd == SIOCGMIIPHY ||
-                   cmd == SIOCGMIIREG ||
-                   cmd == SIOCSMIIREG ||
                    cmd == SIOCBRADDIF ||
                    cmd == SIOCBRDELIF ||
-                   cmd == SIOCSHWTSTAMP ||
-                   cmd == SIOCGHWTSTAMP ||
                    cmd == SIOCWANDEV) {
                        err = dev_do_ioctl(dev, ifr, cmd);
                } else
index 3fc90e36772deb6d31ed6025ffa7bc7d20209647..e8e19857621bda0472ae7f0f65accc89dea995b0 100644 (file)
@@ -210,14 +210,14 @@ static int dsa_master_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
                break;
        }
 
-       if (dev->netdev_ops->ndo_do_ioctl)
-               err = dev->netdev_ops->ndo_do_ioctl(dev, ifr, cmd);
+       if (dev->netdev_ops->ndo_eth_ioctl)
+               err = dev->netdev_ops->ndo_eth_ioctl(dev, ifr, cmd);
 
        return err;
 }
 
 static const struct dsa_netdevice_ops dsa_netdev_ops = {
-       .ndo_do_ioctl = dsa_master_ioctl,
+       .ndo_eth_ioctl = dsa_master_ioctl,
 };
 
 static int dsa_master_ethtool_setup(struct net_device *dev)
index 8c112d7d5b0a2c44f4aa72ddf75db2d13c939497..6e1135d3ee3363048afff68783f50874dc5451ea 100644 (file)
@@ -1687,7 +1687,7 @@ static const struct net_device_ops dsa_slave_netdev_ops = {
        .ndo_set_rx_mode        = dsa_slave_set_rx_mode,
        .ndo_set_mac_address    = dsa_slave_set_mac_address,
        .ndo_fdb_dump           = dsa_slave_fdb_dump,
-       .ndo_do_ioctl           = dsa_slave_ioctl,
+       .ndo_eth_ioctl          = dsa_slave_ioctl,
        .ndo_get_iflink         = dsa_slave_get_iflink,
 #ifdef CONFIG_NET_POLL_CONTROLLER
        .ndo_netpoll_setup      = dsa_slave_netpoll_setup,