diff options
108 files changed, 118 insertions, 128 deletions
diff --git a/drivers/infiniband/ulp/ipoib/ipoib_ethtool.c b/drivers/infiniband/ulp/ipoib/ipoib_ethtool.c index c4b3940845e6..078cadd6c797 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib_ethtool.c +++ b/drivers/infiniband/ulp/ipoib/ipoib_ethtool.c | |||
@@ -105,5 +105,5 @@ static const struct ethtool_ops ipoib_ethtool_ops = { | |||
105 | 105 | ||
106 | void ipoib_set_ethtool_ops(struct net_device *dev) | 106 | void ipoib_set_ethtool_ops(struct net_device *dev) |
107 | { | 107 | { |
108 | SET_ETHTOOL_OPS(dev, &ipoib_ethtool_ops); | 108 | dev->ethtool_ops = &ipoib_ethtool_ops; |
109 | } | 109 | } |
diff --git a/drivers/net/ethernet/3com/3c509.c b/drivers/net/ethernet/3com/3c509.c index 35df0b9e6848..a968654b631d 100644 --- a/drivers/net/ethernet/3com/3c509.c +++ b/drivers/net/ethernet/3com/3c509.c | |||
@@ -534,7 +534,7 @@ static int el3_common_init(struct net_device *dev) | |||
534 | /* The EL3-specific entries in the device structure. */ | 534 | /* The EL3-specific entries in the device structure. */ |
535 | dev->netdev_ops = &netdev_ops; | 535 | dev->netdev_ops = &netdev_ops; |
536 | dev->watchdog_timeo = TX_TIMEOUT; | 536 | dev->watchdog_timeo = TX_TIMEOUT; |
537 | SET_ETHTOOL_OPS(dev, ðtool_ops); | 537 | dev->ethtool_ops = ðtool_ops; |
538 | 538 | ||
539 | err = register_netdev(dev); | 539 | err = register_netdev(dev); |
540 | if (err) { | 540 | if (err) { |
diff --git a/drivers/net/ethernet/3com/3c589_cs.c b/drivers/net/ethernet/3com/3c589_cs.c index 063557e037f2..f18647c23559 100644 --- a/drivers/net/ethernet/3com/3c589_cs.c +++ b/drivers/net/ethernet/3com/3c589_cs.c | |||
@@ -218,7 +218,7 @@ static int tc589_probe(struct pcmcia_device *link) | |||
218 | dev->netdev_ops = &el3_netdev_ops; | 218 | dev->netdev_ops = &el3_netdev_ops; |
219 | dev->watchdog_timeo = TX_TIMEOUT; | 219 | dev->watchdog_timeo = TX_TIMEOUT; |
220 | 220 | ||
221 | SET_ETHTOOL_OPS(dev, &netdev_ethtool_ops); | 221 | dev->ethtool_ops = &netdev_ethtool_ops; |
222 | 222 | ||
223 | return tc589_config(link); | 223 | return tc589_config(link); |
224 | } | 224 | } |
diff --git a/drivers/net/ethernet/3com/typhoon.c b/drivers/net/ethernet/3com/typhoon.c index 465cc7108d8a..e13b04624ded 100644 --- a/drivers/net/ethernet/3com/typhoon.c +++ b/drivers/net/ethernet/3com/typhoon.c | |||
@@ -2435,7 +2435,7 @@ typhoon_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
2435 | netif_napi_add(dev, &tp->napi, typhoon_poll, 16); | 2435 | netif_napi_add(dev, &tp->napi, typhoon_poll, 16); |
2436 | dev->watchdog_timeo = TX_TIMEOUT; | 2436 | dev->watchdog_timeo = TX_TIMEOUT; |
2437 | 2437 | ||
2438 | SET_ETHTOOL_OPS(dev, &typhoon_ethtool_ops); | 2438 | dev->ethtool_ops = &typhoon_ethtool_ops; |
2439 | 2439 | ||
2440 | /* We can handle scatter gather, up to 16 entries, and | 2440 | /* We can handle scatter gather, up to 16 entries, and |
2441 | * we can do IP checksumming (only version 4, doh...) | 2441 | * we can do IP checksumming (only version 4, doh...) |
diff --git a/drivers/net/ethernet/adaptec/starfire.c b/drivers/net/ethernet/adaptec/starfire.c index 171d73c1d3c2..40dbbf740331 100644 --- a/drivers/net/ethernet/adaptec/starfire.c +++ b/drivers/net/ethernet/adaptec/starfire.c | |||
@@ -784,7 +784,7 @@ static int starfire_init_one(struct pci_dev *pdev, | |||
784 | 784 | ||
785 | dev->netdev_ops = &netdev_ops; | 785 | dev->netdev_ops = &netdev_ops; |
786 | dev->watchdog_timeo = TX_TIMEOUT; | 786 | dev->watchdog_timeo = TX_TIMEOUT; |
787 | SET_ETHTOOL_OPS(dev, ðtool_ops); | 787 | dev->ethtool_ops = ðtool_ops; |
788 | 788 | ||
789 | netif_napi_add(dev, &np->napi, netdev_poll, max_interrupt_work); | 789 | netif_napi_add(dev, &np->napi, netdev_poll, max_interrupt_work); |
790 | 790 | ||
diff --git a/drivers/net/ethernet/alteon/acenic.c b/drivers/net/ethernet/alteon/acenic.c index 1517e9df5ba1..9a6991be9749 100644 --- a/drivers/net/ethernet/alteon/acenic.c +++ b/drivers/net/ethernet/alteon/acenic.c | |||
@@ -476,7 +476,7 @@ static int acenic_probe_one(struct pci_dev *pdev, | |||
476 | dev->watchdog_timeo = 5*HZ; | 476 | dev->watchdog_timeo = 5*HZ; |
477 | 477 | ||
478 | dev->netdev_ops = &ace_netdev_ops; | 478 | dev->netdev_ops = &ace_netdev_ops; |
479 | SET_ETHTOOL_OPS(dev, &ace_ethtool_ops); | 479 | dev->ethtool_ops = &ace_ethtool_ops; |
480 | 480 | ||
481 | /* we only display this string ONCE */ | 481 | /* we only display this string ONCE */ |
482 | if (!boards_found) | 482 | if (!boards_found) |
diff --git a/drivers/net/ethernet/altera/altera_tse_ethtool.c b/drivers/net/ethernet/altera/altera_tse_ethtool.c index 76133caffa78..d817e285b266 100644 --- a/drivers/net/ethernet/altera/altera_tse_ethtool.c +++ b/drivers/net/ethernet/altera/altera_tse_ethtool.c | |||
@@ -237,5 +237,5 @@ static const struct ethtool_ops tse_ethtool_ops = { | |||
237 | 237 | ||
238 | void altera_tse_set_ethtool_ops(struct net_device *netdev) | 238 | void altera_tse_set_ethtool_ops(struct net_device *netdev) |
239 | { | 239 | { |
240 | SET_ETHTOOL_OPS(netdev, &tse_ethtool_ops); | 240 | netdev->ethtool_ops = &tse_ethtool_ops; |
241 | } | 241 | } |
diff --git a/drivers/net/ethernet/amd/amd8111e.c b/drivers/net/ethernet/amd/amd8111e.c index 26efaaa5e73f..068dc7cad5fa 100644 --- a/drivers/net/ethernet/amd/amd8111e.c +++ b/drivers/net/ethernet/amd/amd8111e.c | |||
@@ -1900,7 +1900,7 @@ static int amd8111e_probe_one(struct pci_dev *pdev, | |||
1900 | 1900 | ||
1901 | /* Initialize driver entry points */ | 1901 | /* Initialize driver entry points */ |
1902 | dev->netdev_ops = &amd8111e_netdev_ops; | 1902 | dev->netdev_ops = &amd8111e_netdev_ops; |
1903 | SET_ETHTOOL_OPS(dev, &ops); | 1903 | dev->ethtool_ops = &ops; |
1904 | dev->irq =pdev->irq; | 1904 | dev->irq =pdev->irq; |
1905 | dev->watchdog_timeo = AMD8111E_TX_TIMEOUT; | 1905 | dev->watchdog_timeo = AMD8111E_TX_TIMEOUT; |
1906 | netif_napi_add(dev, &lp->napi, amd8111e_rx_poll, 32); | 1906 | netif_napi_add(dev, &lp->napi, amd8111e_rx_poll, 32); |
diff --git a/drivers/net/ethernet/amd/au1000_eth.c b/drivers/net/ethernet/amd/au1000_eth.c index a2bd91e3d302..a78e4c136959 100644 --- a/drivers/net/ethernet/amd/au1000_eth.c +++ b/drivers/net/ethernet/amd/au1000_eth.c | |||
@@ -1229,7 +1229,7 @@ static int au1000_probe(struct platform_device *pdev) | |||
1229 | dev->base_addr = base->start; | 1229 | dev->base_addr = base->start; |
1230 | dev->irq = irq; | 1230 | dev->irq = irq; |
1231 | dev->netdev_ops = &au1000_netdev_ops; | 1231 | dev->netdev_ops = &au1000_netdev_ops; |
1232 | SET_ETHTOOL_OPS(dev, &au1000_ethtool_ops); | 1232 | dev->ethtool_ops = &au1000_ethtool_ops; |
1233 | dev->watchdog_timeo = ETH_TX_TIMEOUT; | 1233 | dev->watchdog_timeo = ETH_TX_TIMEOUT; |
1234 | 1234 | ||
1235 | /* | 1235 | /* |
diff --git a/drivers/net/ethernet/amd/nmclan_cs.c b/drivers/net/ethernet/amd/nmclan_cs.c index 08569fe2b182..abf3b1581c82 100644 --- a/drivers/net/ethernet/amd/nmclan_cs.c +++ b/drivers/net/ethernet/amd/nmclan_cs.c | |||
@@ -457,7 +457,7 @@ static int nmclan_probe(struct pcmcia_device *link) | |||
457 | lp->tx_free_frames=AM2150_MAX_TX_FRAMES; | 457 | lp->tx_free_frames=AM2150_MAX_TX_FRAMES; |
458 | 458 | ||
459 | dev->netdev_ops = &mace_netdev_ops; | 459 | dev->netdev_ops = &mace_netdev_ops; |
460 | SET_ETHTOOL_OPS(dev, &netdev_ethtool_ops); | 460 | dev->ethtool_ops = &netdev_ethtool_ops; |
461 | dev->watchdog_timeo = TX_TIMEOUT; | 461 | dev->watchdog_timeo = TX_TIMEOUT; |
462 | 462 | ||
463 | return nmclan_config(link); | 463 | return nmclan_config(link); |
diff --git a/drivers/net/ethernet/atheros/alx/main.c b/drivers/net/ethernet/atheros/alx/main.c index 17bb9ce96260..49faa97a30c3 100644 --- a/drivers/net/ethernet/atheros/alx/main.c +++ b/drivers/net/ethernet/atheros/alx/main.c | |||
@@ -1302,7 +1302,7 @@ static int alx_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
1302 | } | 1302 | } |
1303 | 1303 | ||
1304 | netdev->netdev_ops = &alx_netdev_ops; | 1304 | netdev->netdev_ops = &alx_netdev_ops; |
1305 | SET_ETHTOOL_OPS(netdev, &alx_ethtool_ops); | 1305 | netdev->ethtool_ops = &alx_ethtool_ops; |
1306 | netdev->irq = pdev->irq; | 1306 | netdev->irq = pdev->irq; |
1307 | netdev->watchdog_timeo = ALX_WATCHDOG_TIME; | 1307 | netdev->watchdog_timeo = ALX_WATCHDOG_TIME; |
1308 | 1308 | ||
diff --git a/drivers/net/ethernet/atheros/atl1c/atl1c_ethtool.c b/drivers/net/ethernet/atheros/atl1c/atl1c_ethtool.c index 859ea844ba0f..ecacaaeb2b92 100644 --- a/drivers/net/ethernet/atheros/atl1c/atl1c_ethtool.c +++ b/drivers/net/ethernet/atheros/atl1c/atl1c_ethtool.c | |||
@@ -305,5 +305,5 @@ static const struct ethtool_ops atl1c_ethtool_ops = { | |||
305 | 305 | ||
306 | void atl1c_set_ethtool_ops(struct net_device *netdev) | 306 | void atl1c_set_ethtool_ops(struct net_device *netdev) |
307 | { | 307 | { |
308 | SET_ETHTOOL_OPS(netdev, &atl1c_ethtool_ops); | 308 | netdev->ethtool_ops = &atl1c_ethtool_ops; |
309 | } | 309 | } |
diff --git a/drivers/net/ethernet/atheros/atl1e/atl1e_ethtool.c b/drivers/net/ethernet/atheros/atl1e/atl1e_ethtool.c index 82b23861bf55..206e9b7be431 100644 --- a/drivers/net/ethernet/atheros/atl1e/atl1e_ethtool.c +++ b/drivers/net/ethernet/atheros/atl1e/atl1e_ethtool.c | |||
@@ -388,5 +388,5 @@ static const struct ethtool_ops atl1e_ethtool_ops = { | |||
388 | 388 | ||
389 | void atl1e_set_ethtool_ops(struct net_device *netdev) | 389 | void atl1e_set_ethtool_ops(struct net_device *netdev) |
390 | { | 390 | { |
391 | SET_ETHTOOL_OPS(netdev, &atl1e_ethtool_ops); | 391 | netdev->ethtool_ops = &atl1e_ethtool_ops; |
392 | } | 392 | } |
diff --git a/drivers/net/ethernet/atheros/atlx/atl2.c b/drivers/net/ethernet/atheros/atlx/atl2.c index 78befb522a52..2587fed7b02c 100644 --- a/drivers/net/ethernet/atheros/atlx/atl2.c +++ b/drivers/net/ethernet/atheros/atlx/atl2.c | |||
@@ -1396,7 +1396,7 @@ static int atl2_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
1396 | atl2_setup_pcicmd(pdev); | 1396 | atl2_setup_pcicmd(pdev); |
1397 | 1397 | ||
1398 | netdev->netdev_ops = &atl2_netdev_ops; | 1398 | netdev->netdev_ops = &atl2_netdev_ops; |
1399 | SET_ETHTOOL_OPS(netdev, &atl2_ethtool_ops); | 1399 | netdev->ethtool_ops = &atl2_ethtool_ops; |
1400 | netdev->watchdog_timeo = 5 * HZ; | 1400 | netdev->watchdog_timeo = 5 * HZ; |
1401 | strncpy(netdev->name, pci_name(pdev), sizeof(netdev->name) - 1); | 1401 | strncpy(netdev->name, pci_name(pdev), sizeof(netdev->name) - 1); |
1402 | 1402 | ||
diff --git a/drivers/net/ethernet/broadcom/b44.c b/drivers/net/ethernet/broadcom/b44.c index 05ba62589017..ca5a20a48b14 100644 --- a/drivers/net/ethernet/broadcom/b44.c +++ b/drivers/net/ethernet/broadcom/b44.c | |||
@@ -2380,7 +2380,7 @@ static int b44_init_one(struct ssb_device *sdev, | |||
2380 | netif_napi_add(dev, &bp->napi, b44_poll, 64); | 2380 | netif_napi_add(dev, &bp->napi, b44_poll, 64); |
2381 | dev->watchdog_timeo = B44_TX_TIMEOUT; | 2381 | dev->watchdog_timeo = B44_TX_TIMEOUT; |
2382 | dev->irq = sdev->irq; | 2382 | dev->irq = sdev->irq; |
2383 | SET_ETHTOOL_OPS(dev, &b44_ethtool_ops); | 2383 | dev->ethtool_ops = &b44_ethtool_ops; |
2384 | 2384 | ||
2385 | err = ssb_bus_powerup(sdev->bus, 0); | 2385 | err = ssb_bus_powerup(sdev->bus, 0); |
2386 | if (err) { | 2386 | if (err) { |
diff --git a/drivers/net/ethernet/broadcom/bcm63xx_enet.c b/drivers/net/ethernet/broadcom/bcm63xx_enet.c index 8db34d389675..3e8d1a88ed3d 100644 --- a/drivers/net/ethernet/broadcom/bcm63xx_enet.c +++ b/drivers/net/ethernet/broadcom/bcm63xx_enet.c | |||
@@ -1897,7 +1897,7 @@ static int bcm_enet_probe(struct platform_device *pdev) | |||
1897 | dev->netdev_ops = &bcm_enet_ops; | 1897 | dev->netdev_ops = &bcm_enet_ops; |
1898 | netif_napi_add(dev, &priv->napi, bcm_enet_poll, 16); | 1898 | netif_napi_add(dev, &priv->napi, bcm_enet_poll, 16); |
1899 | 1899 | ||
1900 | SET_ETHTOOL_OPS(dev, &bcm_enet_ethtool_ops); | 1900 | dev->ethtool_ops = &bcm_enet_ethtool_ops; |
1901 | SET_NETDEV_DEV(dev, &pdev->dev); | 1901 | SET_NETDEV_DEV(dev, &pdev->dev); |
1902 | 1902 | ||
1903 | ret = register_netdev(dev); | 1903 | ret = register_netdev(dev); |
@@ -2783,7 +2783,7 @@ static int bcm_enetsw_probe(struct platform_device *pdev) | |||
2783 | /* register netdevice */ | 2783 | /* register netdevice */ |
2784 | dev->netdev_ops = &bcm_enetsw_ops; | 2784 | dev->netdev_ops = &bcm_enetsw_ops; |
2785 | netif_napi_add(dev, &priv->napi, bcm_enet_poll, 16); | 2785 | netif_napi_add(dev, &priv->napi, bcm_enet_poll, 16); |
2786 | SET_ETHTOOL_OPS(dev, &bcm_enetsw_ethtool_ops); | 2786 | dev->ethtool_ops = &bcm_enetsw_ethtool_ops; |
2787 | SET_NETDEV_DEV(dev, &pdev->dev); | 2787 | SET_NETDEV_DEV(dev, &pdev->dev); |
2788 | 2788 | ||
2789 | spin_lock_init(&priv->enetsw_mdio_lock); | 2789 | spin_lock_init(&priv->enetsw_mdio_lock); |
diff --git a/drivers/net/ethernet/broadcom/bcmsysport.c b/drivers/net/ethernet/broadcom/bcmsysport.c index 4dc8d1e9829b..56b74a495181 100644 --- a/drivers/net/ethernet/broadcom/bcmsysport.c +++ b/drivers/net/ethernet/broadcom/bcmsysport.c | |||
@@ -1540,7 +1540,7 @@ static int bcm_sysport_probe(struct platform_device *pdev) | |||
1540 | 1540 | ||
1541 | SET_NETDEV_DEV(dev, &pdev->dev); | 1541 | SET_NETDEV_DEV(dev, &pdev->dev); |
1542 | dev_set_drvdata(&pdev->dev, dev); | 1542 | dev_set_drvdata(&pdev->dev, dev); |
1543 | SET_ETHTOOL_OPS(dev, &bcm_sysport_ethtool_ops); | 1543 | dev->ethtool_ops = &bcm_sysport_ethtool_ops; |
1544 | dev->netdev_ops = &bcm_sysport_netdev_ops; | 1544 | dev->netdev_ops = &bcm_sysport_netdev_ops; |
1545 | netif_napi_add(dev, &priv->napi, bcm_sysport_poll, 64); | 1545 | netif_napi_add(dev, &priv->napi, bcm_sysport_poll, 64); |
1546 | 1546 | ||
diff --git a/drivers/net/ethernet/broadcom/bgmac.c b/drivers/net/ethernet/broadcom/bgmac.c index 0297a79a38e1..05c6af6c418f 100644 --- a/drivers/net/ethernet/broadcom/bgmac.c +++ b/drivers/net/ethernet/broadcom/bgmac.c | |||
@@ -1436,7 +1436,7 @@ static int bgmac_probe(struct bcma_device *core) | |||
1436 | return -ENOMEM; | 1436 | return -ENOMEM; |
1437 | net_dev->netdev_ops = &bgmac_netdev_ops; | 1437 | net_dev->netdev_ops = &bgmac_netdev_ops; |
1438 | net_dev->irq = core->irq; | 1438 | net_dev->irq = core->irq; |
1439 | SET_ETHTOOL_OPS(net_dev, &bgmac_ethtool_ops); | 1439 | net_dev->ethtool_ops = &bgmac_ethtool_ops; |
1440 | bgmac = netdev_priv(net_dev); | 1440 | bgmac = netdev_priv(net_dev); |
1441 | bgmac->net_dev = net_dev; | 1441 | bgmac->net_dev = net_dev; |
1442 | bgmac->core = core; | 1442 | bgmac->core = core; |
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c index b6de05e3149b..03224090ecf9 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c | |||
@@ -3506,8 +3506,6 @@ static const struct ethtool_ops bnx2x_vf_ethtool_ops = { | |||
3506 | 3506 | ||
3507 | void bnx2x_set_ethtool_ops(struct bnx2x *bp, struct net_device *netdev) | 3507 | void bnx2x_set_ethtool_ops(struct bnx2x *bp, struct net_device *netdev) |
3508 | { | 3508 | { |
3509 | if (IS_PF(bp)) | 3509 | netdev->ethtool_ops = (IS_PF(bp)) ? |
3510 | SET_ETHTOOL_OPS(netdev, &bnx2x_ethtool_ops); | 3510 | &bnx2x_ethtool_ops : &bnx2x_vf_ethtool_ops; |
3511 | else /* vf */ | ||
3512 | SET_ETHTOOL_OPS(netdev, &bnx2x_vf_ethtool_ops); | ||
3513 | } | 3511 | } |
diff --git a/drivers/net/ethernet/broadcom/genet/bcmgenet.c b/drivers/net/ethernet/broadcom/genet/bcmgenet.c index 0966bd04375f..5ba1cfbd60da 100644 --- a/drivers/net/ethernet/broadcom/genet/bcmgenet.c +++ b/drivers/net/ethernet/broadcom/genet/bcmgenet.c | |||
@@ -2481,7 +2481,7 @@ static int bcmgenet_probe(struct platform_device *pdev) | |||
2481 | dev_set_drvdata(&pdev->dev, dev); | 2481 | dev_set_drvdata(&pdev->dev, dev); |
2482 | ether_addr_copy(dev->dev_addr, macaddr); | 2482 | ether_addr_copy(dev->dev_addr, macaddr); |
2483 | dev->watchdog_timeo = 2 * HZ; | 2483 | dev->watchdog_timeo = 2 * HZ; |
2484 | SET_ETHTOOL_OPS(dev, &bcmgenet_ethtool_ops); | 2484 | dev->ethtool_ops = &bcmgenet_ethtool_ops; |
2485 | dev->netdev_ops = &bcmgenet_netdev_ops; | 2485 | dev->netdev_ops = &bcmgenet_netdev_ops; |
2486 | netif_napi_add(dev, &priv->napi, bcmgenet_poll, 64); | 2486 | netif_napi_add(dev, &priv->napi, bcmgenet_poll, 64); |
2487 | 2487 | ||
diff --git a/drivers/net/ethernet/brocade/bna/bnad_ethtool.c b/drivers/net/ethernet/brocade/bna/bnad_ethtool.c index f9e150825bb5..adca62b72837 100644 --- a/drivers/net/ethernet/brocade/bna/bnad_ethtool.c +++ b/drivers/net/ethernet/brocade/bna/bnad_ethtool.c | |||
@@ -1137,5 +1137,5 @@ static const struct ethtool_ops bnad_ethtool_ops = { | |||
1137 | void | 1137 | void |
1138 | bnad_set_ethtool_ops(struct net_device *netdev) | 1138 | bnad_set_ethtool_ops(struct net_device *netdev) |
1139 | { | 1139 | { |
1140 | SET_ETHTOOL_OPS(netdev, &bnad_ethtool_ops); | 1140 | netdev->ethtool_ops = &bnad_ethtool_ops; |
1141 | } | 1141 | } |
diff --git a/drivers/net/ethernet/calxeda/xgmac.c b/drivers/net/ethernet/calxeda/xgmac.c index 521dfea44b83..25d6b2a10e4e 100644 --- a/drivers/net/ethernet/calxeda/xgmac.c +++ b/drivers/net/ethernet/calxeda/xgmac.c | |||
@@ -1737,7 +1737,7 @@ static int xgmac_probe(struct platform_device *pdev) | |||
1737 | platform_set_drvdata(pdev, ndev); | 1737 | platform_set_drvdata(pdev, ndev); |
1738 | ether_setup(ndev); | 1738 | ether_setup(ndev); |
1739 | ndev->netdev_ops = &xgmac_netdev_ops; | 1739 | ndev->netdev_ops = &xgmac_netdev_ops; |
1740 | SET_ETHTOOL_OPS(ndev, &xgmac_ethtool_ops); | 1740 | ndev->ethtool_ops = &xgmac_ethtool_ops; |
1741 | spin_lock_init(&priv->stats_lock); | 1741 | spin_lock_init(&priv->stats_lock); |
1742 | INIT_WORK(&priv->tx_timeout_work, xgmac_tx_timeout_work); | 1742 | INIT_WORK(&priv->tx_timeout_work, xgmac_tx_timeout_work); |
1743 | 1743 | ||
diff --git a/drivers/net/ethernet/chelsio/cxgb/cxgb2.c b/drivers/net/ethernet/chelsio/cxgb/cxgb2.c index 0fe7ff750d77..c1b2c1dbf015 100644 --- a/drivers/net/ethernet/chelsio/cxgb/cxgb2.c +++ b/drivers/net/ethernet/chelsio/cxgb/cxgb2.c | |||
@@ -1100,7 +1100,7 @@ static int init_one(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
1100 | 1100 | ||
1101 | netif_napi_add(netdev, &adapter->napi, t1_poll, 64); | 1101 | netif_napi_add(netdev, &adapter->napi, t1_poll, 64); |
1102 | 1102 | ||
1103 | SET_ETHTOOL_OPS(netdev, &t1_ethtool_ops); | 1103 | netdev->ethtool_ops = &t1_ethtool_ops; |
1104 | } | 1104 | } |
1105 | 1105 | ||
1106 | if (t1_init_sw_modules(adapter, bi) < 0) { | 1106 | if (t1_init_sw_modules(adapter, bi) < 0) { |
diff --git a/drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c b/drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c index 07bbb711b7e5..3ed507947248 100644 --- a/drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c +++ b/drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c | |||
@@ -3291,7 +3291,7 @@ static int init_one(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
3291 | netdev->features |= NETIF_F_HIGHDMA; | 3291 | netdev->features |= NETIF_F_HIGHDMA; |
3292 | 3292 | ||
3293 | netdev->netdev_ops = &cxgb_netdev_ops; | 3293 | netdev->netdev_ops = &cxgb_netdev_ops; |
3294 | SET_ETHTOOL_OPS(netdev, &cxgb_ethtool_ops); | 3294 | netdev->ethtool_ops = &cxgb_ethtool_ops; |
3295 | } | 3295 | } |
3296 | 3296 | ||
3297 | pci_set_drvdata(pdev, adapter); | 3297 | pci_set_drvdata(pdev, adapter); |
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c index 0f1e886d89e3..266a5bc6aedf 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c +++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | |||
@@ -6083,7 +6083,7 @@ static int init_one(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
6083 | netdev->priv_flags |= IFF_UNICAST_FLT; | 6083 | netdev->priv_flags |= IFF_UNICAST_FLT; |
6084 | 6084 | ||
6085 | netdev->netdev_ops = &cxgb4_netdev_ops; | 6085 | netdev->netdev_ops = &cxgb4_netdev_ops; |
6086 | SET_ETHTOOL_OPS(netdev, &cxgb_ethtool_ops); | 6086 | netdev->ethtool_ops = &cxgb_ethtool_ops; |
6087 | } | 6087 | } |
6088 | 6088 | ||
6089 | pci_set_drvdata(pdev, adapter); | 6089 | pci_set_drvdata(pdev, adapter); |
diff --git a/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c b/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c index 52859288de7b..ff1cdd1788b5 100644 --- a/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c +++ b/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c | |||
@@ -2664,7 +2664,7 @@ static int cxgb4vf_pci_probe(struct pci_dev *pdev, | |||
2664 | netdev->priv_flags |= IFF_UNICAST_FLT; | 2664 | netdev->priv_flags |= IFF_UNICAST_FLT; |
2665 | 2665 | ||
2666 | netdev->netdev_ops = &cxgb4vf_netdev_ops; | 2666 | netdev->netdev_ops = &cxgb4vf_netdev_ops; |
2667 | SET_ETHTOOL_OPS(netdev, &cxgb4vf_ethtool_ops); | 2667 | netdev->ethtool_ops = &cxgb4vf_ethtool_ops; |
2668 | 2668 | ||
2669 | /* | 2669 | /* |
2670 | * Initialize the hardware/software state for the port. | 2670 | * Initialize the hardware/software state for the port. |
diff --git a/drivers/net/ethernet/cisco/enic/enic_ethtool.c b/drivers/net/ethernet/cisco/enic/enic_ethtool.c index 47e3562f4866..58a8c67638e3 100644 --- a/drivers/net/ethernet/cisco/enic/enic_ethtool.c +++ b/drivers/net/ethernet/cisco/enic/enic_ethtool.c | |||
@@ -253,5 +253,5 @@ static const struct ethtool_ops enic_ethtool_ops = { | |||
253 | 253 | ||
254 | void enic_set_ethtool_ops(struct net_device *netdev) | 254 | void enic_set_ethtool_ops(struct net_device *netdev) |
255 | { | 255 | { |
256 | SET_ETHTOOL_OPS(netdev, &enic_ethtool_ops); | 256 | netdev->ethtool_ops = &enic_ethtool_ops; |
257 | } | 257 | } |
diff --git a/drivers/net/ethernet/dec/tulip/tulip_core.c b/drivers/net/ethernet/dec/tulip/tulip_core.c index 1642de78aac8..861660841ce2 100644 --- a/drivers/net/ethernet/dec/tulip/tulip_core.c +++ b/drivers/net/ethernet/dec/tulip/tulip_core.c | |||
@@ -1703,7 +1703,7 @@ static int tulip_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
1703 | #ifdef CONFIG_TULIP_NAPI | 1703 | #ifdef CONFIG_TULIP_NAPI |
1704 | netif_napi_add(dev, &tp->napi, tulip_poll, 16); | 1704 | netif_napi_add(dev, &tp->napi, tulip_poll, 16); |
1705 | #endif | 1705 | #endif |
1706 | SET_ETHTOOL_OPS(dev, &ops); | 1706 | dev->ethtool_ops = &ops; |
1707 | 1707 | ||
1708 | if (register_netdev(dev)) | 1708 | if (register_netdev(dev)) |
1709 | goto err_out_free_ring; | 1709 | goto err_out_free_ring; |
diff --git a/drivers/net/ethernet/dlink/dl2k.c b/drivers/net/ethernet/dlink/dl2k.c index 4fb756d219f7..2324f2ddfd48 100644 --- a/drivers/net/ethernet/dlink/dl2k.c +++ b/drivers/net/ethernet/dlink/dl2k.c | |||
@@ -227,7 +227,7 @@ rio_probe1 (struct pci_dev *pdev, const struct pci_device_id *ent) | |||
227 | } | 227 | } |
228 | dev->netdev_ops = &netdev_ops; | 228 | dev->netdev_ops = &netdev_ops; |
229 | dev->watchdog_timeo = TX_TIMEOUT; | 229 | dev->watchdog_timeo = TX_TIMEOUT; |
230 | SET_ETHTOOL_OPS(dev, ðtool_ops); | 230 | dev->ethtool_ops = ðtool_ops; |
231 | #if 0 | 231 | #if 0 |
232 | dev->features = NETIF_F_IP_CSUM; | 232 | dev->features = NETIF_F_IP_CSUM; |
233 | #endif | 233 | #endif |
diff --git a/drivers/net/ethernet/dlink/sundance.c b/drivers/net/ethernet/dlink/sundance.c index d9e5ca0d48c1..433c1e185442 100644 --- a/drivers/net/ethernet/dlink/sundance.c +++ b/drivers/net/ethernet/dlink/sundance.c | |||
@@ -577,7 +577,7 @@ static int sundance_probe1(struct pci_dev *pdev, | |||
577 | 577 | ||
578 | /* The chip-specific entries in the device structure. */ | 578 | /* The chip-specific entries in the device structure. */ |
579 | dev->netdev_ops = &netdev_ops; | 579 | dev->netdev_ops = &netdev_ops; |
580 | SET_ETHTOOL_OPS(dev, ðtool_ops); | 580 | dev->ethtool_ops = ðtool_ops; |
581 | dev->watchdog_timeo = TX_TIMEOUT; | 581 | dev->watchdog_timeo = TX_TIMEOUT; |
582 | 582 | ||
583 | pci_set_drvdata(pdev, dev); | 583 | pci_set_drvdata(pdev, dev); |
diff --git a/drivers/net/ethernet/emulex/benet/be_main.c b/drivers/net/ethernet/emulex/benet/be_main.c index 3f04356afa82..dcc5e5c69743 100644 --- a/drivers/net/ethernet/emulex/benet/be_main.c +++ b/drivers/net/ethernet/emulex/benet/be_main.c | |||
@@ -4304,7 +4304,7 @@ static void be_netdev_init(struct net_device *netdev) | |||
4304 | 4304 | ||
4305 | netdev->netdev_ops = &be_netdev_ops; | 4305 | netdev->netdev_ops = &be_netdev_ops; |
4306 | 4306 | ||
4307 | SET_ETHTOOL_OPS(netdev, &be_ethtool_ops); | 4307 | netdev->ethtool_ops = &be_ethtool_ops; |
4308 | } | 4308 | } |
4309 | 4309 | ||
4310 | static void be_unmap_pci_bars(struct be_adapter *adapter) | 4310 | static void be_unmap_pci_bars(struct be_adapter *adapter) |
diff --git a/drivers/net/ethernet/faraday/ftgmac100.c b/drivers/net/ethernet/faraday/ftgmac100.c index 68069eabc4f8..c77fa4a69844 100644 --- a/drivers/net/ethernet/faraday/ftgmac100.c +++ b/drivers/net/ethernet/faraday/ftgmac100.c | |||
@@ -1210,7 +1210,7 @@ static int ftgmac100_probe(struct platform_device *pdev) | |||
1210 | 1210 | ||
1211 | SET_NETDEV_DEV(netdev, &pdev->dev); | 1211 | SET_NETDEV_DEV(netdev, &pdev->dev); |
1212 | 1212 | ||
1213 | SET_ETHTOOL_OPS(netdev, &ftgmac100_ethtool_ops); | 1213 | netdev->ethtool_ops = &ftgmac100_ethtool_ops; |
1214 | netdev->netdev_ops = &ftgmac100_netdev_ops; | 1214 | netdev->netdev_ops = &ftgmac100_netdev_ops; |
1215 | netdev->features = NETIF_F_IP_CSUM | NETIF_F_GRO; | 1215 | netdev->features = NETIF_F_IP_CSUM | NETIF_F_GRO; |
1216 | 1216 | ||
diff --git a/drivers/net/ethernet/faraday/ftmac100.c b/drivers/net/ethernet/faraday/ftmac100.c index 8be5b40c0a12..4ff1adc6bfca 100644 --- a/drivers/net/ethernet/faraday/ftmac100.c +++ b/drivers/net/ethernet/faraday/ftmac100.c | |||
@@ -1085,7 +1085,7 @@ static int ftmac100_probe(struct platform_device *pdev) | |||
1085 | } | 1085 | } |
1086 | 1086 | ||
1087 | SET_NETDEV_DEV(netdev, &pdev->dev); | 1087 | SET_NETDEV_DEV(netdev, &pdev->dev); |
1088 | SET_ETHTOOL_OPS(netdev, &ftmac100_ethtool_ops); | 1088 | netdev->ethtool_ops = &ftmac100_ethtool_ops; |
1089 | netdev->netdev_ops = &ftmac100_netdev_ops; | 1089 | netdev->netdev_ops = &ftmac100_netdev_ops; |
1090 | 1090 | ||
1091 | platform_set_drvdata(pdev, netdev); | 1091 | platform_set_drvdata(pdev, netdev); |
diff --git a/drivers/net/ethernet/freescale/ucc_geth_ethtool.c b/drivers/net/ethernet/freescale/ucc_geth_ethtool.c index 413329eff2ff..cc83350d56ba 100644 --- a/drivers/net/ethernet/freescale/ucc_geth_ethtool.c +++ b/drivers/net/ethernet/freescale/ucc_geth_ethtool.c | |||
@@ -417,5 +417,5 @@ static const struct ethtool_ops uec_ethtool_ops = { | |||
417 | 417 | ||
418 | void uec_set_ethtool_ops(struct net_device *netdev) | 418 | void uec_set_ethtool_ops(struct net_device *netdev) |
419 | { | 419 | { |
420 | SET_ETHTOOL_OPS(netdev, &uec_ethtool_ops); | 420 | netdev->ethtool_ops = &uec_ethtool_ops; |
421 | } | 421 | } |
diff --git a/drivers/net/ethernet/fujitsu/fmvj18x_cs.c b/drivers/net/ethernet/fujitsu/fmvj18x_cs.c index 7becab1aa3e4..cfe7a7431730 100644 --- a/drivers/net/ethernet/fujitsu/fmvj18x_cs.c +++ b/drivers/net/ethernet/fujitsu/fmvj18x_cs.c | |||
@@ -256,7 +256,7 @@ static int fmvj18x_probe(struct pcmcia_device *link) | |||
256 | dev->netdev_ops = &fjn_netdev_ops; | 256 | dev->netdev_ops = &fjn_netdev_ops; |
257 | dev->watchdog_timeo = TX_TIMEOUT; | 257 | dev->watchdog_timeo = TX_TIMEOUT; |
258 | 258 | ||
259 | SET_ETHTOOL_OPS(dev, &netdev_ethtool_ops); | 259 | dev->ethtool_ops = &netdev_ethtool_ops; |
260 | 260 | ||
261 | return fmvj18x_config(link); | 261 | return fmvj18x_config(link); |
262 | } /* fmvj18x_attach */ | 262 | } /* fmvj18x_attach */ |
diff --git a/drivers/net/ethernet/ibm/ehea/ehea_ethtool.c b/drivers/net/ethernet/ibm/ehea/ehea_ethtool.c index 95837b99a464..6055e3eaf49c 100644 --- a/drivers/net/ethernet/ibm/ehea/ehea_ethtool.c +++ b/drivers/net/ethernet/ibm/ehea/ehea_ethtool.c | |||
@@ -278,5 +278,5 @@ static const struct ethtool_ops ehea_ethtool_ops = { | |||
278 | 278 | ||
279 | void ehea_set_ethtool_ops(struct net_device *netdev) | 279 | void ehea_set_ethtool_ops(struct net_device *netdev) |
280 | { | 280 | { |
281 | SET_ETHTOOL_OPS(netdev, &ehea_ethtool_ops); | 281 | netdev->ethtool_ops = &ehea_ethtool_ops; |
282 | } | 282 | } |
diff --git a/drivers/net/ethernet/ibm/emac/core.c b/drivers/net/ethernet/ibm/emac/core.c index ae342fdb42c8..87bd953cc2ee 100644 --- a/drivers/net/ethernet/ibm/emac/core.c +++ b/drivers/net/ethernet/ibm/emac/core.c | |||
@@ -2879,7 +2879,7 @@ static int emac_probe(struct platform_device *ofdev) | |||
2879 | dev->commac.ops = &emac_commac_sg_ops; | 2879 | dev->commac.ops = &emac_commac_sg_ops; |
2880 | } else | 2880 | } else |
2881 | ndev->netdev_ops = &emac_netdev_ops; | 2881 | ndev->netdev_ops = &emac_netdev_ops; |
2882 | SET_ETHTOOL_OPS(ndev, &emac_ethtool_ops); | 2882 | ndev->ethtool_ops = &emac_ethtool_ops; |
2883 | 2883 | ||
2884 | netif_carrier_off(ndev); | 2884 | netif_carrier_off(ndev); |
2885 | 2885 | ||
diff --git a/drivers/net/ethernet/icplus/ipg.c b/drivers/net/ethernet/icplus/ipg.c index 25045ae07171..5727779a7df2 100644 --- a/drivers/net/ethernet/icplus/ipg.c +++ b/drivers/net/ethernet/icplus/ipg.c | |||
@@ -2245,7 +2245,7 @@ static int ipg_probe(struct pci_dev *pdev, const struct pci_device_id *id) | |||
2245 | */ | 2245 | */ |
2246 | dev->netdev_ops = &ipg_netdev_ops; | 2246 | dev->netdev_ops = &ipg_netdev_ops; |
2247 | SET_NETDEV_DEV(dev, &pdev->dev); | 2247 | SET_NETDEV_DEV(dev, &pdev->dev); |
2248 | SET_ETHTOOL_OPS(dev, &ipg_ethtool_ops); | 2248 | dev->ethtool_ops = &ipg_ethtool_ops; |
2249 | 2249 | ||
2250 | rc = pci_request_regions(pdev, DRV_NAME); | 2250 | rc = pci_request_regions(pdev, DRV_NAME); |
2251 | if (rc) | 2251 | if (rc) |
diff --git a/drivers/net/ethernet/intel/e100.c b/drivers/net/ethernet/intel/e100.c index b56461ce674c..9d979d7debef 100644 --- a/drivers/net/ethernet/intel/e100.c +++ b/drivers/net/ethernet/intel/e100.c | |||
@@ -2854,7 +2854,7 @@ static int e100_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
2854 | netdev->hw_features |= NETIF_F_RXALL; | 2854 | netdev->hw_features |= NETIF_F_RXALL; |
2855 | 2855 | ||
2856 | netdev->netdev_ops = &e100_netdev_ops; | 2856 | netdev->netdev_ops = &e100_netdev_ops; |
2857 | SET_ETHTOOL_OPS(netdev, &e100_ethtool_ops); | 2857 | netdev->ethtool_ops = &e100_ethtool_ops; |
2858 | netdev->watchdog_timeo = E100_WATCHDOG_PERIOD; | 2858 | netdev->watchdog_timeo = E100_WATCHDOG_PERIOD; |
2859 | strncpy(netdev->name, pci_name(pdev), sizeof(netdev->name) - 1); | 2859 | strncpy(netdev->name, pci_name(pdev), sizeof(netdev->name) - 1); |
2860 | 2860 | ||
diff --git a/drivers/net/ethernet/intel/e1000/e1000_ethtool.c b/drivers/net/ethernet/intel/e1000/e1000_ethtool.c index 73a8aeefb92a..341889a4ef7f 100644 --- a/drivers/net/ethernet/intel/e1000/e1000_ethtool.c +++ b/drivers/net/ethernet/intel/e1000/e1000_ethtool.c | |||
@@ -1905,5 +1905,5 @@ static const struct ethtool_ops e1000_ethtool_ops = { | |||
1905 | 1905 | ||
1906 | void e1000_set_ethtool_ops(struct net_device *netdev) | 1906 | void e1000_set_ethtool_ops(struct net_device *netdev) |
1907 | { | 1907 | { |
1908 | SET_ETHTOOL_OPS(netdev, &e1000_ethtool_ops); | 1908 | netdev->ethtool_ops = &e1000_ethtool_ops; |
1909 | } | 1909 | } |
diff --git a/drivers/net/ethernet/intel/e1000e/ethtool.c b/drivers/net/ethernet/intel/e1000e/ethtool.c index 4e5ad7ebe1f2..e9a48bb5caac 100644 --- a/drivers/net/ethernet/intel/e1000e/ethtool.c +++ b/drivers/net/ethernet/intel/e1000e/ethtool.c | |||
@@ -2318,5 +2318,5 @@ static const struct ethtool_ops e1000_ethtool_ops = { | |||
2318 | 2318 | ||
2319 | void e1000e_set_ethtool_ops(struct net_device *netdev) | 2319 | void e1000e_set_ethtool_ops(struct net_device *netdev) |
2320 | { | 2320 | { |
2321 | SET_ETHTOOL_OPS(netdev, &e1000_ethtool_ops); | 2321 | netdev->ethtool_ops = &e1000_ethtool_ops; |
2322 | } | 2322 | } |
diff --git a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c b/drivers/net/ethernet/intel/i40e/i40e_ethtool.c index 0cf47c958081..f62929419a09 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c +++ b/drivers/net/ethernet/intel/i40e/i40e_ethtool.c | |||
@@ -1700,5 +1700,5 @@ static const struct ethtool_ops i40e_ethtool_ops = { | |||
1700 | 1700 | ||
1701 | void i40e_set_ethtool_ops(struct net_device *netdev) | 1701 | void i40e_set_ethtool_ops(struct net_device *netdev) |
1702 | { | 1702 | { |
1703 | SET_ETHTOOL_OPS(netdev, &i40e_ethtool_ops); | 1703 | netdev->ethtool_ops = &i40e_ethtool_ops; |
1704 | } | 1704 | } |
diff --git a/drivers/net/ethernet/intel/i40evf/i40evf_ethtool.c b/drivers/net/ethernet/intel/i40evf/i40evf_ethtool.c index a46be016039e..77e786d2d0e0 100644 --- a/drivers/net/ethernet/intel/i40evf/i40evf_ethtool.c +++ b/drivers/net/ethernet/intel/i40evf/i40evf_ethtool.c | |||
@@ -705,5 +705,5 @@ static struct ethtool_ops i40evf_ethtool_ops = { | |||
705 | **/ | 705 | **/ |
706 | void i40evf_set_ethtool_ops(struct net_device *netdev) | 706 | void i40evf_set_ethtool_ops(struct net_device *netdev) |
707 | { | 707 | { |
708 | SET_ETHTOOL_OPS(netdev, &i40evf_ethtool_ops); | 708 | netdev->ethtool_ops = &i40evf_ethtool_ops; |
709 | } | 709 | } |
diff --git a/drivers/net/ethernet/intel/igb/igb_ethtool.c b/drivers/net/ethernet/intel/igb/igb_ethtool.c index 333a2b0bbada..a84297c85fb1 100644 --- a/drivers/net/ethernet/intel/igb/igb_ethtool.c +++ b/drivers/net/ethernet/intel/igb/igb_ethtool.c | |||
@@ -3035,5 +3035,5 @@ static const struct ethtool_ops igb_ethtool_ops = { | |||
3035 | 3035 | ||
3036 | void igb_set_ethtool_ops(struct net_device *netdev) | 3036 | void igb_set_ethtool_ops(struct net_device *netdev) |
3037 | { | 3037 | { |
3038 | SET_ETHTOOL_OPS(netdev, &igb_ethtool_ops); | 3038 | netdev->ethtool_ops = &igb_ethtool_ops; |
3039 | } | 3039 | } |
diff --git a/drivers/net/ethernet/intel/igbvf/ethtool.c b/drivers/net/ethernet/intel/igbvf/ethtool.c index 90eef07943f4..f58170bae18b 100644 --- a/drivers/net/ethernet/intel/igbvf/ethtool.c +++ b/drivers/net/ethernet/intel/igbvf/ethtool.c | |||
@@ -476,5 +476,5 @@ static const struct ethtool_ops igbvf_ethtool_ops = { | |||
476 | 476 | ||
477 | void igbvf_set_ethtool_ops(struct net_device *netdev) | 477 | void igbvf_set_ethtool_ops(struct net_device *netdev) |
478 | { | 478 | { |
479 | SET_ETHTOOL_OPS(netdev, &igbvf_ethtool_ops); | 479 | netdev->ethtool_ops = &igbvf_ethtool_ops; |
480 | } | 480 | } |
diff --git a/drivers/net/ethernet/intel/ixgb/ixgb_ethtool.c b/drivers/net/ethernet/intel/ixgb/ixgb_ethtool.c index dbb7dd2f8e36..1da2d987d370 100644 --- a/drivers/net/ethernet/intel/ixgb/ixgb_ethtool.c +++ b/drivers/net/ethernet/intel/ixgb/ixgb_ethtool.c | |||
@@ -656,5 +656,5 @@ static const struct ethtool_ops ixgb_ethtool_ops = { | |||
656 | 656 | ||
657 | void ixgb_set_ethtool_ops(struct net_device *netdev) | 657 | void ixgb_set_ethtool_ops(struct net_device *netdev) |
658 | { | 658 | { |
659 | SET_ETHTOOL_OPS(netdev, &ixgb_ethtool_ops); | 659 | netdev->ethtool_ops = &ixgb_ethtool_ops; |
660 | } | 660 | } |
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c index 6c55c14d082a..31d7268401e7 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c | |||
@@ -3099,5 +3099,5 @@ static const struct ethtool_ops ixgbe_ethtool_ops = { | |||
3099 | 3099 | ||
3100 | void ixgbe_set_ethtool_ops(struct net_device *netdev) | 3100 | void ixgbe_set_ethtool_ops(struct net_device *netdev) |
3101 | { | 3101 | { |
3102 | SET_ETHTOOL_OPS(netdev, &ixgbe_ethtool_ops); | 3102 | netdev->ethtool_ops = &ixgbe_ethtool_ops; |
3103 | } | 3103 | } |
diff --git a/drivers/net/ethernet/intel/ixgbevf/ethtool.c b/drivers/net/ethernet/intel/ixgbevf/ethtool.c index 1baecb60f065..a757f0734719 100644 --- a/drivers/net/ethernet/intel/ixgbevf/ethtool.c +++ b/drivers/net/ethernet/intel/ixgbevf/ethtool.c | |||
@@ -813,5 +813,5 @@ static const struct ethtool_ops ixgbevf_ethtool_ops = { | |||
813 | 813 | ||
814 | void ixgbevf_set_ethtool_ops(struct net_device *netdev) | 814 | void ixgbevf_set_ethtool_ops(struct net_device *netdev) |
815 | { | 815 | { |
816 | SET_ETHTOOL_OPS(netdev, &ixgbevf_ethtool_ops); | 816 | netdev->ethtool_ops = &ixgbevf_ethtool_ops; |
817 | } | 817 | } |
diff --git a/drivers/net/ethernet/marvell/mv643xx_eth.c b/drivers/net/ethernet/marvell/mv643xx_eth.c index b7b8d74c22d9..df1d1b97187f 100644 --- a/drivers/net/ethernet/marvell/mv643xx_eth.c +++ b/drivers/net/ethernet/marvell/mv643xx_eth.c | |||
@@ -2889,7 +2889,7 @@ static int mv643xx_eth_probe(struct platform_device *pdev) | |||
2889 | if (err) | 2889 | if (err) |
2890 | goto out; | 2890 | goto out; |
2891 | 2891 | ||
2892 | SET_ETHTOOL_OPS(dev, &mv643xx_eth_ethtool_ops); | 2892 | dev->ethtool_ops = &mv643xx_eth_ethtool_ops; |
2893 | 2893 | ||
2894 | init_pscr(mp, pd->speed, pd->duplex); | 2894 | init_pscr(mp, pd->speed, pd->duplex); |
2895 | 2895 | ||
diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c index 14786c8bf99e..72bc47f2d2e9 100644 --- a/drivers/net/ethernet/marvell/mvneta.c +++ b/drivers/net/ethernet/marvell/mvneta.c | |||
@@ -2813,7 +2813,7 @@ static int mvneta_probe(struct platform_device *pdev) | |||
2813 | dev->watchdog_timeo = 5 * HZ; | 2813 | dev->watchdog_timeo = 5 * HZ; |
2814 | dev->netdev_ops = &mvneta_netdev_ops; | 2814 | dev->netdev_ops = &mvneta_netdev_ops; |
2815 | 2815 | ||
2816 | SET_ETHTOOL_OPS(dev, &mvneta_eth_tool_ops); | 2816 | dev->ethtool_ops = &mvneta_eth_tool_ops; |
2817 | 2817 | ||
2818 | pp = netdev_priv(dev); | 2818 | pp = netdev_priv(dev); |
2819 | 2819 | ||
diff --git a/drivers/net/ethernet/marvell/pxa168_eth.c b/drivers/net/ethernet/marvell/pxa168_eth.c index b358c2f6f4bd..8f5aa7c62b18 100644 --- a/drivers/net/ethernet/marvell/pxa168_eth.c +++ b/drivers/net/ethernet/marvell/pxa168_eth.c | |||
@@ -1488,7 +1488,7 @@ static int pxa168_eth_probe(struct platform_device *pdev) | |||
1488 | dev->netdev_ops = &pxa168_eth_netdev_ops; | 1488 | dev->netdev_ops = &pxa168_eth_netdev_ops; |
1489 | dev->watchdog_timeo = 2 * HZ; | 1489 | dev->watchdog_timeo = 2 * HZ; |
1490 | dev->base_addr = 0; | 1490 | dev->base_addr = 0; |
1491 | SET_ETHTOOL_OPS(dev, &pxa168_ethtool_ops); | 1491 | dev->ethtool_ops = &pxa168_ethtool_ops; |
1492 | 1492 | ||
1493 | INIT_WORK(&pep->tx_timeout_task, pxa168_eth_tx_timeout_task); | 1493 | INIT_WORK(&pep->tx_timeout_task, pxa168_eth_tx_timeout_task); |
1494 | 1494 | ||
diff --git a/drivers/net/ethernet/marvell/sky2.c b/drivers/net/ethernet/marvell/sky2.c index b81106451a0a..69693384b58c 100644 --- a/drivers/net/ethernet/marvell/sky2.c +++ b/drivers/net/ethernet/marvell/sky2.c | |||
@@ -4760,7 +4760,7 @@ static struct net_device *sky2_init_netdev(struct sky2_hw *hw, unsigned port, | |||
4760 | 4760 | ||
4761 | SET_NETDEV_DEV(dev, &hw->pdev->dev); | 4761 | SET_NETDEV_DEV(dev, &hw->pdev->dev); |
4762 | dev->irq = hw->pdev->irq; | 4762 | dev->irq = hw->pdev->irq; |
4763 | SET_ETHTOOL_OPS(dev, &sky2_ethtool_ops); | 4763 | dev->ethtool_ops = &sky2_ethtool_ops; |
4764 | dev->watchdog_timeo = TX_WATCHDOG; | 4764 | dev->watchdog_timeo = TX_WATCHDOG; |
4765 | dev->netdev_ops = &sky2_netdev_ops[port]; | 4765 | dev->netdev_ops = &sky2_netdev_ops[port]; |
4766 | 4766 | ||
diff --git a/drivers/net/ethernet/mellanox/mlx4/en_netdev.c b/drivers/net/ethernet/mellanox/mlx4/en_netdev.c index fba3c8e77626..79c6f467d17e 100644 --- a/drivers/net/ethernet/mellanox/mlx4/en_netdev.c +++ b/drivers/net/ethernet/mellanox/mlx4/en_netdev.c | |||
@@ -2539,7 +2539,7 @@ int mlx4_en_init_netdev(struct mlx4_en_dev *mdev, int port, | |||
2539 | netif_set_real_num_tx_queues(dev, priv->tx_ring_num); | 2539 | netif_set_real_num_tx_queues(dev, priv->tx_ring_num); |
2540 | netif_set_real_num_rx_queues(dev, priv->rx_ring_num); | 2540 | netif_set_real_num_rx_queues(dev, priv->rx_ring_num); |
2541 | 2541 | ||
2542 | SET_ETHTOOL_OPS(dev, &mlx4_en_ethtool_ops); | 2542 | dev->ethtool_ops = &mlx4_en_ethtool_ops; |
2543 | 2543 | ||
2544 | /* | 2544 | /* |
2545 | * Set driver features | 2545 | * Set driver features |
diff --git a/drivers/net/ethernet/micrel/ks8695net.c b/drivers/net/ethernet/micrel/ks8695net.c index 16435b3cfa9f..6c7c78baedca 100644 --- a/drivers/net/ethernet/micrel/ks8695net.c +++ b/drivers/net/ethernet/micrel/ks8695net.c | |||
@@ -1504,15 +1504,15 @@ ks8695_probe(struct platform_device *pdev) | |||
1504 | if (ksp->phyiface_regs && ksp->link_irq == -1) { | 1504 | if (ksp->phyiface_regs && ksp->link_irq == -1) { |
1505 | ks8695_init_switch(ksp); | 1505 | ks8695_init_switch(ksp); |
1506 | ksp->dtype = KS8695_DTYPE_LAN; | 1506 | ksp->dtype = KS8695_DTYPE_LAN; |
1507 | SET_ETHTOOL_OPS(ndev, &ks8695_ethtool_ops); | 1507 | ndev->ethtool_ops = &ks8695_ethtool_ops; |
1508 | } else if (ksp->phyiface_regs && ksp->link_irq != -1) { | 1508 | } else if (ksp->phyiface_regs && ksp->link_irq != -1) { |
1509 | ks8695_init_wan_phy(ksp); | 1509 | ks8695_init_wan_phy(ksp); |
1510 | ksp->dtype = KS8695_DTYPE_WAN; | 1510 | ksp->dtype = KS8695_DTYPE_WAN; |
1511 | SET_ETHTOOL_OPS(ndev, &ks8695_wan_ethtool_ops); | 1511 | ndev->ethtool_ops = &ks8695_wan_ethtool_ops; |
1512 | } else { | 1512 | } else { |
1513 | /* No initialisation since HPNA does not have a PHY */ | 1513 | /* No initialisation since HPNA does not have a PHY */ |
1514 | ksp->dtype = KS8695_DTYPE_HPNA; | 1514 | ksp->dtype = KS8695_DTYPE_HPNA; |
1515 | SET_ETHTOOL_OPS(ndev, &ks8695_ethtool_ops); | 1515 | ndev->ethtool_ops = &ks8695_ethtool_ops; |
1516 | } | 1516 | } |
1517 | 1517 | ||
1518 | /* And bring up the net_device with the net core */ | 1518 | /* And bring up the net_device with the net core */ |
diff --git a/drivers/net/ethernet/micrel/ks8851.c b/drivers/net/ethernet/micrel/ks8851.c index e0c92e0e5e1d..13767eb36a48 100644 --- a/drivers/net/ethernet/micrel/ks8851.c +++ b/drivers/net/ethernet/micrel/ks8851.c | |||
@@ -1471,7 +1471,7 @@ static int ks8851_probe(struct spi_device *spi) | |||
1471 | 1471 | ||
1472 | skb_queue_head_init(&ks->txq); | 1472 | skb_queue_head_init(&ks->txq); |
1473 | 1473 | ||
1474 | SET_ETHTOOL_OPS(ndev, &ks8851_ethtool_ops); | 1474 | ndev->ethtool_ops = &ks8851_ethtool_ops; |
1475 | SET_NETDEV_DEV(ndev, &spi->dev); | 1475 | SET_NETDEV_DEV(ndev, &spi->dev); |
1476 | 1476 | ||
1477 | spi_set_drvdata(spi, ks); | 1477 | spi_set_drvdata(spi, ks); |
diff --git a/drivers/net/ethernet/micrel/ksz884x.c b/drivers/net/ethernet/micrel/ksz884x.c index 14ac0e2bc09f..4b9592c1fb40 100644 --- a/drivers/net/ethernet/micrel/ksz884x.c +++ b/drivers/net/ethernet/micrel/ksz884x.c | |||
@@ -7106,7 +7106,7 @@ static int pcidev_init(struct pci_dev *pdev, const struct pci_device_id *id) | |||
7106 | } | 7106 | } |
7107 | 7107 | ||
7108 | dev->netdev_ops = &netdev_ops; | 7108 | dev->netdev_ops = &netdev_ops; |
7109 | SET_ETHTOOL_OPS(dev, &netdev_ethtool_ops); | 7109 | dev->ethtool_ops = &netdev_ethtool_ops; |
7110 | if (register_netdev(dev)) | 7110 | if (register_netdev(dev)) |
7111 | goto pcidev_init_reg_err; | 7111 | goto pcidev_init_reg_err; |
7112 | port_set_power_saving(port, true); | 7112 | port_set_power_saving(port, true); |
diff --git a/drivers/net/ethernet/microchip/enc28j60.c b/drivers/net/ethernet/microchip/enc28j60.c index c7b40aa21f22..b1b5f66b8b69 100644 --- a/drivers/net/ethernet/microchip/enc28j60.c +++ b/drivers/net/ethernet/microchip/enc28j60.c | |||
@@ -1593,7 +1593,7 @@ static int enc28j60_probe(struct spi_device *spi) | |||
1593 | dev->irq = spi->irq; | 1593 | dev->irq = spi->irq; |
1594 | dev->netdev_ops = &enc28j60_netdev_ops; | 1594 | dev->netdev_ops = &enc28j60_netdev_ops; |
1595 | dev->watchdog_timeo = TX_TIMEOUT; | 1595 | dev->watchdog_timeo = TX_TIMEOUT; |
1596 | SET_ETHTOOL_OPS(dev, &enc28j60_ethtool_ops); | 1596 | dev->ethtool_ops = &enc28j60_ethtool_ops; |
1597 | 1597 | ||
1598 | enc28j60_lowpower(priv, true); | 1598 | enc28j60_lowpower(priv, true); |
1599 | 1599 | ||
diff --git a/drivers/net/ethernet/myricom/myri10ge/myri10ge.c b/drivers/net/ethernet/myricom/myri10ge/myri10ge.c index 130f6b204efa..f3d5d79f1cd1 100644 --- a/drivers/net/ethernet/myricom/myri10ge/myri10ge.c +++ b/drivers/net/ethernet/myricom/myri10ge/myri10ge.c | |||
@@ -4112,7 +4112,7 @@ static int myri10ge_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
4112 | setup_timer(&mgp->watchdog_timer, myri10ge_watchdog_timer, | 4112 | setup_timer(&mgp->watchdog_timer, myri10ge_watchdog_timer, |
4113 | (unsigned long)mgp); | 4113 | (unsigned long)mgp); |
4114 | 4114 | ||
4115 | SET_ETHTOOL_OPS(netdev, &myri10ge_ethtool_ops); | 4115 | netdev->ethtool_ops = &myri10ge_ethtool_ops; |
4116 | INIT_WORK(&mgp->watchdog_work, myri10ge_watchdog); | 4116 | INIT_WORK(&mgp->watchdog_work, myri10ge_watchdog); |
4117 | status = register_netdev(netdev); | 4117 | status = register_netdev(netdev); |
4118 | if (status != 0) { | 4118 | if (status != 0) { |
diff --git a/drivers/net/ethernet/natsemi/natsemi.c b/drivers/net/ethernet/natsemi/natsemi.c index 64ec2a437f46..291fba8b9f07 100644 --- a/drivers/net/ethernet/natsemi/natsemi.c +++ b/drivers/net/ethernet/natsemi/natsemi.c | |||
@@ -927,7 +927,7 @@ static int natsemi_probe1(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
927 | dev->netdev_ops = &natsemi_netdev_ops; | 927 | dev->netdev_ops = &natsemi_netdev_ops; |
928 | dev->watchdog_timeo = TX_TIMEOUT; | 928 | dev->watchdog_timeo = TX_TIMEOUT; |
929 | 929 | ||
930 | SET_ETHTOOL_OPS(dev, ðtool_ops); | 930 | dev->ethtool_ops = ðtool_ops; |
931 | 931 | ||
932 | if (mtu) | 932 | if (mtu) |
933 | dev->mtu = mtu; | 933 | dev->mtu = mtu; |
diff --git a/drivers/net/ethernet/natsemi/ns83820.c b/drivers/net/ethernet/natsemi/ns83820.c index dbccf1de49ec..19bb8244b9e3 100644 --- a/drivers/net/ethernet/natsemi/ns83820.c +++ b/drivers/net/ethernet/natsemi/ns83820.c | |||
@@ -2030,7 +2030,7 @@ static int ns83820_init_one(struct pci_dev *pci_dev, | |||
2030 | pci_dev->subsystem_vendor, pci_dev->subsystem_device); | 2030 | pci_dev->subsystem_vendor, pci_dev->subsystem_device); |
2031 | 2031 | ||
2032 | ndev->netdev_ops = &netdev_ops; | 2032 | ndev->netdev_ops = &netdev_ops; |
2033 | SET_ETHTOOL_OPS(ndev, &ops); | 2033 | ndev->ethtool_ops = &ops; |
2034 | ndev->watchdog_timeo = 5 * HZ; | 2034 | ndev->watchdog_timeo = 5 * HZ; |
2035 | pci_set_drvdata(pci_dev, ndev); | 2035 | pci_set_drvdata(pci_dev, ndev); |
2036 | 2036 | ||
diff --git a/drivers/net/ethernet/neterion/s2io.c b/drivers/net/ethernet/neterion/s2io.c index e900c1abdef7..e3cf38e6ce3c 100644 --- a/drivers/net/ethernet/neterion/s2io.c +++ b/drivers/net/ethernet/neterion/s2io.c | |||
@@ -7910,7 +7910,7 @@ s2io_init_nic(struct pci_dev *pdev, const struct pci_device_id *pre) | |||
7910 | 7910 | ||
7911 | /* Driver entry points */ | 7911 | /* Driver entry points */ |
7912 | dev->netdev_ops = &s2io_netdev_ops; | 7912 | dev->netdev_ops = &s2io_netdev_ops; |
7913 | SET_ETHTOOL_OPS(dev, &netdev_ethtool_ops); | 7913 | dev->ethtool_ops = &netdev_ethtool_ops; |
7914 | dev->hw_features = NETIF_F_SG | NETIF_F_IP_CSUM | | 7914 | dev->hw_features = NETIF_F_SG | NETIF_F_IP_CSUM | |
7915 | NETIF_F_TSO | NETIF_F_TSO6 | | 7915 | NETIF_F_TSO | NETIF_F_TSO6 | |
7916 | NETIF_F_RXCSUM | NETIF_F_LRO; | 7916 | NETIF_F_RXCSUM | NETIF_F_LRO; |
diff --git a/drivers/net/ethernet/neterion/vxge/vxge-ethtool.c b/drivers/net/ethernet/neterion/vxge/vxge-ethtool.c index f8f073880f84..ddcc81ad1ae1 100644 --- a/drivers/net/ethernet/neterion/vxge/vxge-ethtool.c +++ b/drivers/net/ethernet/neterion/vxge/vxge-ethtool.c | |||
@@ -1128,5 +1128,5 @@ static const struct ethtool_ops vxge_ethtool_ops = { | |||
1128 | 1128 | ||
1129 | void vxge_initialize_ethtool_ops(struct net_device *ndev) | 1129 | void vxge_initialize_ethtool_ops(struct net_device *ndev) |
1130 | { | 1130 | { |
1131 | SET_ETHTOOL_OPS(ndev, &vxge_ethtool_ops); | 1131 | ndev->ethtool_ops = &vxge_ethtool_ops; |
1132 | } | 1132 | } |
diff --git a/drivers/net/ethernet/nvidia/forcedeth.c b/drivers/net/ethernet/nvidia/forcedeth.c index fddb464aeab3..e8235c5c5e69 100644 --- a/drivers/net/ethernet/nvidia/forcedeth.c +++ b/drivers/net/ethernet/nvidia/forcedeth.c | |||
@@ -5766,7 +5766,7 @@ static int nv_probe(struct pci_dev *pci_dev, const struct pci_device_id *id) | |||
5766 | dev->netdev_ops = &nv_netdev_ops_optimized; | 5766 | dev->netdev_ops = &nv_netdev_ops_optimized; |
5767 | 5767 | ||
5768 | netif_napi_add(dev, &np->napi, nv_napi_poll, RX_WORK_PER_LOOP); | 5768 | netif_napi_add(dev, &np->napi, nv_napi_poll, RX_WORK_PER_LOOP); |
5769 | SET_ETHTOOL_OPS(dev, &ops); | 5769 | dev->ethtool_ops = &ops; |
5770 | dev->watchdog_timeo = NV_WATCHDOG_TIMEO; | 5770 | dev->watchdog_timeo = NV_WATCHDOG_TIMEO; |
5771 | 5771 | ||
5772 | pci_set_drvdata(pci_dev, dev); | 5772 | pci_set_drvdata(pci_dev, dev); |
diff --git a/drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_ethtool.c b/drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_ethtool.c index 826f0ccdc23c..114d2fe52cc2 100644 --- a/drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_ethtool.c +++ b/drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_ethtool.c | |||
@@ -508,5 +508,5 @@ static const struct ethtool_ops pch_gbe_ethtool_ops = { | |||
508 | 508 | ||
509 | void pch_gbe_set_ethtool_ops(struct net_device *netdev) | 509 | void pch_gbe_set_ethtool_ops(struct net_device *netdev) |
510 | { | 510 | { |
511 | SET_ETHTOOL_OPS(netdev, &pch_gbe_ethtool_ops); | 511 | netdev->ethtool_ops = &pch_gbe_ethtool_ops; |
512 | } | 512 | } |
diff --git a/drivers/net/ethernet/packetengines/hamachi.c b/drivers/net/ethernet/packetengines/hamachi.c index b6bdeb3c1971..9a997e4c3e08 100644 --- a/drivers/net/ethernet/packetengines/hamachi.c +++ b/drivers/net/ethernet/packetengines/hamachi.c | |||
@@ -724,10 +724,8 @@ static int hamachi_init_one(struct pci_dev *pdev, | |||
724 | 724 | ||
725 | /* The Hamachi-specific entries in the device structure. */ | 725 | /* The Hamachi-specific entries in the device structure. */ |
726 | dev->netdev_ops = &hamachi_netdev_ops; | 726 | dev->netdev_ops = &hamachi_netdev_ops; |
727 | if (chip_tbl[hmp->chip_id].flags & CanHaveMII) | 727 | dev->ethtool_ops = (chip_tbl[hmp->chip_id].flags & CanHaveMII) ? |
728 | SET_ETHTOOL_OPS(dev, ðtool_ops); | 728 | ðtool_ops : ðtool_ops_no_mii; |
729 | else | ||
730 | SET_ETHTOOL_OPS(dev, ðtool_ops_no_mii); | ||
731 | dev->watchdog_timeo = TX_TIMEOUT; | 729 | dev->watchdog_timeo = TX_TIMEOUT; |
732 | if (mtu) | 730 | if (mtu) |
733 | dev->mtu = mtu; | 731 | dev->mtu = mtu; |
diff --git a/drivers/net/ethernet/packetengines/yellowfin.c b/drivers/net/ethernet/packetengines/yellowfin.c index 9a6cb482dcd0..69a8dc095072 100644 --- a/drivers/net/ethernet/packetengines/yellowfin.c +++ b/drivers/net/ethernet/packetengines/yellowfin.c | |||
@@ -472,7 +472,7 @@ static int yellowfin_init_one(struct pci_dev *pdev, | |||
472 | 472 | ||
473 | /* The Yellowfin-specific entries in the device structure. */ | 473 | /* The Yellowfin-specific entries in the device structure. */ |
474 | dev->netdev_ops = &netdev_ops; | 474 | dev->netdev_ops = &netdev_ops; |
475 | SET_ETHTOOL_OPS(dev, ðtool_ops); | 475 | dev->ethtool_ops = ðtool_ops; |
476 | dev->watchdog_timeo = TX_TIMEOUT; | 476 | dev->watchdog_timeo = TX_TIMEOUT; |
477 | 477 | ||
478 | if (mtu) | 478 | if (mtu) |
diff --git a/drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c b/drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c index f09c35d669b3..5bf05818a12c 100644 --- a/drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c +++ b/drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c | |||
@@ -1373,7 +1373,7 @@ netxen_setup_netdev(struct netxen_adapter *adapter, | |||
1373 | 1373 | ||
1374 | netxen_nic_change_mtu(netdev, netdev->mtu); | 1374 | netxen_nic_change_mtu(netdev, netdev->mtu); |
1375 | 1375 | ||
1376 | SET_ETHTOOL_OPS(netdev, &netxen_nic_ethtool_ops); | 1376 | netdev->ethtool_ops = &netxen_nic_ethtool_ops; |
1377 | 1377 | ||
1378 | netdev->hw_features = NETIF_F_SG | NETIF_F_IP_CSUM | NETIF_F_TSO | | 1378 | netdev->hw_features = NETIF_F_SG | NETIF_F_IP_CSUM | NETIF_F_TSO | |
1379 | NETIF_F_RXCSUM; | 1379 | NETIF_F_RXCSUM; |
diff --git a/drivers/net/ethernet/qlogic/qla3xxx.c b/drivers/net/ethernet/qlogic/qla3xxx.c index 2eabd44f8914..b5d6bc1a8b00 100644 --- a/drivers/net/ethernet/qlogic/qla3xxx.c +++ b/drivers/net/ethernet/qlogic/qla3xxx.c | |||
@@ -3838,7 +3838,7 @@ static int ql3xxx_probe(struct pci_dev *pdev, | |||
3838 | 3838 | ||
3839 | /* Set driver entry points */ | 3839 | /* Set driver entry points */ |
3840 | ndev->netdev_ops = &ql3xxx_netdev_ops; | 3840 | ndev->netdev_ops = &ql3xxx_netdev_ops; |
3841 | SET_ETHTOOL_OPS(ndev, &ql3xxx_ethtool_ops); | 3841 | ndev->ethtool_ops = &ql3xxx_ethtool_ops; |
3842 | ndev->watchdog_timeo = 5 * HZ; | 3842 | ndev->watchdog_timeo = 5 * HZ; |
3843 | 3843 | ||
3844 | netif_napi_add(ndev, &qdev->napi, ql_poll, 64); | 3844 | netif_napi_add(ndev, &qdev->napi, ql_poll, 64); |
diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c index 8a2aeb85e320..f0a285359e66 100644 --- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c +++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c | |||
@@ -2265,10 +2265,8 @@ qlcnic_setup_netdev(struct qlcnic_adapter *adapter, struct net_device *netdev, | |||
2265 | 2265 | ||
2266 | qlcnic_change_mtu(netdev, netdev->mtu); | 2266 | qlcnic_change_mtu(netdev, netdev->mtu); |
2267 | 2267 | ||
2268 | if (qlcnic_sriov_vf_check(adapter)) | 2268 | netdev->ethtool_ops = (qlcnic_sriov_vf_check(adapter)) ? |
2269 | SET_ETHTOOL_OPS(netdev, &qlcnic_sriov_vf_ethtool_ops); | 2269 | &qlcnic_sriov_vf_ethtool_ops : &qlcnic_ethtool_ops; |
2270 | else | ||
2271 | SET_ETHTOOL_OPS(netdev, &qlcnic_ethtool_ops); | ||
2272 | 2270 | ||
2273 | netdev->features |= (NETIF_F_SG | NETIF_F_IP_CSUM | NETIF_F_RXCSUM | | 2271 | netdev->features |= (NETIF_F_SG | NETIF_F_IP_CSUM | NETIF_F_RXCSUM | |
2274 | NETIF_F_IPV6_CSUM | NETIF_F_GRO | | 2272 | NETIF_F_IPV6_CSUM | NETIF_F_GRO | |
@@ -2682,7 +2680,7 @@ err_out_disable_pdev: | |||
2682 | err_out_maintenance_mode: | 2680 | err_out_maintenance_mode: |
2683 | set_bit(__QLCNIC_MAINTENANCE_MODE, &adapter->state); | 2681 | set_bit(__QLCNIC_MAINTENANCE_MODE, &adapter->state); |
2684 | netdev->netdev_ops = &qlcnic_netdev_failed_ops; | 2682 | netdev->netdev_ops = &qlcnic_netdev_failed_ops; |
2685 | SET_ETHTOOL_OPS(netdev, &qlcnic_ethtool_failed_ops); | 2683 | netdev->ethtool_ops = &qlcnic_ethtool_failed_ops; |
2686 | ahw->port_type = QLCNIC_XGBE; | 2684 | ahw->port_type = QLCNIC_XGBE; |
2687 | 2685 | ||
2688 | if (qlcnic_83xx_check(adapter)) | 2686 | if (qlcnic_83xx_check(adapter)) |
diff --git a/drivers/net/ethernet/qlogic/qlge/qlge_main.c b/drivers/net/ethernet/qlogic/qlge/qlge_main.c index 6e36fe14b848..b40050e03a56 100644 --- a/drivers/net/ethernet/qlogic/qlge/qlge_main.c +++ b/drivers/net/ethernet/qlogic/qlge/qlge_main.c | |||
@@ -4770,7 +4770,7 @@ static int qlge_probe(struct pci_dev *pdev, | |||
4770 | ndev->irq = pdev->irq; | 4770 | ndev->irq = pdev->irq; |
4771 | 4771 | ||
4772 | ndev->netdev_ops = &qlge_netdev_ops; | 4772 | ndev->netdev_ops = &qlge_netdev_ops; |
4773 | SET_ETHTOOL_OPS(ndev, &qlge_ethtool_ops); | 4773 | ndev->ethtool_ops = &qlge_ethtool_ops; |
4774 | ndev->watchdog_timeo = 10 * HZ; | 4774 | ndev->watchdog_timeo = 10 * HZ; |
4775 | 4775 | ||
4776 | err = register_netdev(ndev); | 4776 | err = register_netdev(ndev); |
diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c index aa1c079f231d..be425ad5e824 100644 --- a/drivers/net/ethernet/realtek/r8169.c +++ b/drivers/net/ethernet/realtek/r8169.c | |||
@@ -7125,7 +7125,7 @@ rtl_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
7125 | for (i = 0; i < ETH_ALEN; i++) | 7125 | for (i = 0; i < ETH_ALEN; i++) |
7126 | dev->dev_addr[i] = RTL_R8(MAC0 + i); | 7126 | dev->dev_addr[i] = RTL_R8(MAC0 + i); |
7127 | 7127 | ||
7128 | SET_ETHTOOL_OPS(dev, &rtl8169_ethtool_ops); | 7128 | dev->ethtool_ops = &rtl8169_ethtool_ops; |
7129 | dev->watchdog_timeo = RTL8169_TX_TIMEOUT; | 7129 | dev->watchdog_timeo = RTL8169_TX_TIMEOUT; |
7130 | 7130 | ||
7131 | netif_napi_add(dev, &tp->napi, rtl8169_poll, R8169_NAPI_WEIGHT); | 7131 | netif_napi_add(dev, &tp->napi, rtl8169_poll, R8169_NAPI_WEIGHT); |
diff --git a/drivers/net/ethernet/renesas/sh_eth.c b/drivers/net/ethernet/renesas/sh_eth.c index 6a9509ccd33b..967314cade95 100644 --- a/drivers/net/ethernet/renesas/sh_eth.c +++ b/drivers/net/ethernet/renesas/sh_eth.c | |||
@@ -2843,7 +2843,7 @@ static int sh_eth_drv_probe(struct platform_device *pdev) | |||
2843 | ndev->netdev_ops = &sh_eth_netdev_ops_tsu; | 2843 | ndev->netdev_ops = &sh_eth_netdev_ops_tsu; |
2844 | else | 2844 | else |
2845 | ndev->netdev_ops = &sh_eth_netdev_ops; | 2845 | ndev->netdev_ops = &sh_eth_netdev_ops; |
2846 | SET_ETHTOOL_OPS(ndev, &sh_eth_ethtool_ops); | 2846 | ndev->ethtool_ops = &sh_eth_ethtool_ops; |
2847 | ndev->watchdog_timeo = TX_TIMEOUT; | 2847 | ndev->watchdog_timeo = TX_TIMEOUT; |
2848 | 2848 | ||
2849 | /* debug message level */ | 2849 | /* debug message level */ |
diff --git a/drivers/net/ethernet/samsung/sxgbe/sxgbe_ethtool.c b/drivers/net/ethernet/samsung/sxgbe/sxgbe_ethtool.c index 0415fa50eeb7..c0981ae45874 100644 --- a/drivers/net/ethernet/samsung/sxgbe/sxgbe_ethtool.c +++ b/drivers/net/ethernet/samsung/sxgbe/sxgbe_ethtool.c | |||
@@ -520,5 +520,5 @@ static const struct ethtool_ops sxgbe_ethtool_ops = { | |||
520 | 520 | ||
521 | void sxgbe_set_ethtool_ops(struct net_device *netdev) | 521 | void sxgbe_set_ethtool_ops(struct net_device *netdev) |
522 | { | 522 | { |
523 | SET_ETHTOOL_OPS(netdev, &sxgbe_ethtool_ops); | 523 | netdev->ethtool_ops = &sxgbe_ethtool_ops; |
524 | } | 524 | } |
diff --git a/drivers/net/ethernet/sfc/efx.c b/drivers/net/ethernet/sfc/efx.c index 63d595fd3cc5..1e274045970f 100644 --- a/drivers/net/ethernet/sfc/efx.c +++ b/drivers/net/ethernet/sfc/efx.c | |||
@@ -2248,7 +2248,7 @@ static int efx_register_netdev(struct efx_nic *efx) | |||
2248 | } else { | 2248 | } else { |
2249 | net_dev->netdev_ops = &efx_farch_netdev_ops; | 2249 | net_dev->netdev_ops = &efx_farch_netdev_ops; |
2250 | } | 2250 | } |
2251 | SET_ETHTOOL_OPS(net_dev, &efx_ethtool_ops); | 2251 | net_dev->ethtool_ops = &efx_ethtool_ops; |
2252 | net_dev->gso_max_segs = EFX_TSO_MAX_SEGS; | 2252 | net_dev->gso_max_segs = EFX_TSO_MAX_SEGS; |
2253 | 2253 | ||
2254 | rtnl_lock(); | 2254 | rtnl_lock(); |
diff --git a/drivers/net/ethernet/sis/sis190.c b/drivers/net/ethernet/sis/sis190.c index acbbe48a519c..a86339903b9b 100644 --- a/drivers/net/ethernet/sis/sis190.c +++ b/drivers/net/ethernet/sis/sis190.c | |||
@@ -1877,7 +1877,7 @@ static int sis190_init_one(struct pci_dev *pdev, | |||
1877 | 1877 | ||
1878 | dev->netdev_ops = &sis190_netdev_ops; | 1878 | dev->netdev_ops = &sis190_netdev_ops; |
1879 | 1879 | ||
1880 | SET_ETHTOOL_OPS(dev, &sis190_ethtool_ops); | 1880 | dev->ethtool_ops = &sis190_ethtool_ops; |
1881 | dev->watchdog_timeo = SIS190_TX_TIMEOUT; | 1881 | dev->watchdog_timeo = SIS190_TX_TIMEOUT; |
1882 | 1882 | ||
1883 | spin_lock_init(&tp->lock); | 1883 | spin_lock_init(&tp->lock); |
diff --git a/drivers/net/ethernet/smsc/smc91c92_cs.c b/drivers/net/ethernet/smsc/smc91c92_cs.c index c7a4868571f9..6b33127ab352 100644 --- a/drivers/net/ethernet/smsc/smc91c92_cs.c +++ b/drivers/net/ethernet/smsc/smc91c92_cs.c | |||
@@ -318,7 +318,7 @@ static int smc91c92_probe(struct pcmcia_device *link) | |||
318 | 318 | ||
319 | /* The SMC91c92-specific entries in the device structure. */ | 319 | /* The SMC91c92-specific entries in the device structure. */ |
320 | dev->netdev_ops = &smc_netdev_ops; | 320 | dev->netdev_ops = &smc_netdev_ops; |
321 | SET_ETHTOOL_OPS(dev, ðtool_ops); | 321 | dev->ethtool_ops = ðtool_ops; |
322 | dev->watchdog_timeo = TX_TIMEOUT; | 322 | dev->watchdog_timeo = TX_TIMEOUT; |
323 | 323 | ||
324 | smc->mii_if.dev = dev; | 324 | smc->mii_if.dev = dev; |
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c index c5f9cb85c8ef..c963394ded6c 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c | |||
@@ -784,5 +784,5 @@ static const struct ethtool_ops stmmac_ethtool_ops = { | |||
784 | 784 | ||
785 | void stmmac_set_ethtool_ops(struct net_device *netdev) | 785 | void stmmac_set_ethtool_ops(struct net_device *netdev) |
786 | { | 786 | { |
787 | SET_ETHTOOL_OPS(netdev, &stmmac_ethtool_ops); | 787 | netdev->ethtool_ops = &stmmac_ethtool_ops; |
788 | } | 788 | } |
diff --git a/drivers/net/ethernet/tehuti/tehuti.c b/drivers/net/ethernet/tehuti/tehuti.c index 2ead87759ab4..38da73a2a886 100644 --- a/drivers/net/ethernet/tehuti/tehuti.c +++ b/drivers/net/ethernet/tehuti/tehuti.c | |||
@@ -2413,7 +2413,7 @@ static void bdx_set_ethtool_ops(struct net_device *netdev) | |||
2413 | .get_ethtool_stats = bdx_get_ethtool_stats, | 2413 | .get_ethtool_stats = bdx_get_ethtool_stats, |
2414 | }; | 2414 | }; |
2415 | 2415 | ||
2416 | SET_ETHTOOL_OPS(netdev, &bdx_ethtool_ops); | 2416 | netdev->ethtool_ops = &bdx_ethtool_ops; |
2417 | } | 2417 | } |
2418 | 2418 | ||
2419 | /** | 2419 | /** |
diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c index 91499be03c6f..e3d871055d63 100644 --- a/drivers/net/ethernet/ti/cpsw.c +++ b/drivers/net/ethernet/ti/cpsw.c | |||
@@ -1998,7 +1998,7 @@ static int cpsw_probe_dual_emac(struct platform_device *pdev, | |||
1998 | ndev->features |= NETIF_F_HW_VLAN_CTAG_FILTER; | 1998 | ndev->features |= NETIF_F_HW_VLAN_CTAG_FILTER; |
1999 | 1999 | ||
2000 | ndev->netdev_ops = &cpsw_netdev_ops; | 2000 | ndev->netdev_ops = &cpsw_netdev_ops; |
2001 | SET_ETHTOOL_OPS(ndev, &cpsw_ethtool_ops); | 2001 | ndev->ethtool_ops = &cpsw_ethtool_ops; |
2002 | netif_napi_add(ndev, &priv_sl2->napi, cpsw_poll, CPSW_POLL_WEIGHT); | 2002 | netif_napi_add(ndev, &priv_sl2->napi, cpsw_poll, CPSW_POLL_WEIGHT); |
2003 | 2003 | ||
2004 | /* register the network device */ | 2004 | /* register the network device */ |
@@ -2227,7 +2227,7 @@ static int cpsw_probe(struct platform_device *pdev) | |||
2227 | ndev->features |= NETIF_F_HW_VLAN_CTAG_FILTER; | 2227 | ndev->features |= NETIF_F_HW_VLAN_CTAG_FILTER; |
2228 | 2228 | ||
2229 | ndev->netdev_ops = &cpsw_netdev_ops; | 2229 | ndev->netdev_ops = &cpsw_netdev_ops; |
2230 | SET_ETHTOOL_OPS(ndev, &cpsw_ethtool_ops); | 2230 | ndev->ethtool_ops = &cpsw_ethtool_ops; |
2231 | netif_napi_add(ndev, &priv->napi, cpsw_poll, CPSW_POLL_WEIGHT); | 2231 | netif_napi_add(ndev, &priv->napi, cpsw_poll, CPSW_POLL_WEIGHT); |
2232 | 2232 | ||
2233 | /* register the network device */ | 2233 | /* register the network device */ |
diff --git a/drivers/net/ethernet/ti/davinci_emac.c b/drivers/net/ethernet/ti/davinci_emac.c index 8f0e69ce07ca..e76eae541151 100644 --- a/drivers/net/ethernet/ti/davinci_emac.c +++ b/drivers/net/ethernet/ti/davinci_emac.c | |||
@@ -1980,7 +1980,7 @@ static int davinci_emac_probe(struct platform_device *pdev) | |||
1980 | } | 1980 | } |
1981 | 1981 | ||
1982 | ndev->netdev_ops = &emac_netdev_ops; | 1982 | ndev->netdev_ops = &emac_netdev_ops; |
1983 | SET_ETHTOOL_OPS(ndev, ðtool_ops); | 1983 | ndev->ethtool_ops = ðtool_ops; |
1984 | netif_napi_add(ndev, &priv->napi, emac_poll, EMAC_POLL_WEIGHT); | 1984 | netif_napi_add(ndev, &priv->napi, emac_poll, EMAC_POLL_WEIGHT); |
1985 | 1985 | ||
1986 | /* register the network device */ | 1986 | /* register the network device */ |
diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c index 1de3ef5dd5d2..2e967a7bdb33 100644 --- a/drivers/net/hyperv/netvsc_drv.c +++ b/drivers/net/hyperv/netvsc_drv.c | |||
@@ -810,7 +810,7 @@ static int netvsc_probe(struct hv_device *dev, | |||
810 | net->features = NETIF_F_HW_VLAN_CTAG_TX | NETIF_F_SG | NETIF_F_RXCSUM | | 810 | net->features = NETIF_F_HW_VLAN_CTAG_TX | NETIF_F_SG | NETIF_F_RXCSUM | |
811 | NETIF_F_IP_CSUM | NETIF_F_TSO; | 811 | NETIF_F_IP_CSUM | NETIF_F_TSO; |
812 | 812 | ||
813 | SET_ETHTOOL_OPS(net, ðtool_ops); | 813 | net->ethtool_ops = ðtool_ops; |
814 | SET_NETDEV_DEV(net, &dev->device); | 814 | SET_NETDEV_DEV(net, &dev->device); |
815 | 815 | ||
816 | /* Notify the netvsc driver of the new device */ | 816 | /* Notify the netvsc driver of the new device */ |
diff --git a/drivers/net/ntb_netdev.c b/drivers/net/ntb_netdev.c index 63aa9d9e34c5..27536aa89199 100644 --- a/drivers/net/ntb_netdev.c +++ b/drivers/net/ntb_netdev.c | |||
@@ -348,7 +348,7 @@ static int ntb_netdev_probe(struct pci_dev *pdev) | |||
348 | memcpy(ndev->dev_addr, ndev->perm_addr, ndev->addr_len); | 348 | memcpy(ndev->dev_addr, ndev->perm_addr, ndev->addr_len); |
349 | 349 | ||
350 | ndev->netdev_ops = &ntb_netdev_ops; | 350 | ndev->netdev_ops = &ntb_netdev_ops; |
351 | SET_ETHTOOL_OPS(ndev, &ntb_ethtool_ops); | 351 | ndev->ethtool_ops = &ntb_ethtool_ops; |
352 | 352 | ||
353 | dev->qp = ntb_transport_create_queue(ndev, pdev, &ntb_netdev_handlers); | 353 | dev->qp = ntb_transport_create_queue(ndev, pdev, &ntb_netdev_handlers); |
354 | if (!dev->qp) { | 354 | if (!dev->qp) { |
diff --git a/drivers/net/rionet.c b/drivers/net/rionet.c index a8497183ff8b..dac7a0d9bb46 100644 --- a/drivers/net/rionet.c +++ b/drivers/net/rionet.c | |||
@@ -494,7 +494,7 @@ static int rionet_setup_netdev(struct rio_mport *mport, struct net_device *ndev) | |||
494 | ndev->mtu = RIO_MAX_MSG_SIZE - 14; | 494 | ndev->mtu = RIO_MAX_MSG_SIZE - 14; |
495 | ndev->features = NETIF_F_LLTX; | 495 | ndev->features = NETIF_F_LLTX; |
496 | SET_NETDEV_DEV(ndev, &mport->dev); | 496 | SET_NETDEV_DEV(ndev, &mport->dev); |
497 | SET_ETHTOOL_OPS(ndev, &rionet_ethtool_ops); | 497 | ndev->ethtool_ops = &rionet_ethtool_ops; |
498 | 498 | ||
499 | spin_lock_init(&rnet->lock); | 499 | spin_lock_init(&rnet->lock); |
500 | spin_lock_init(&rnet->tx_lock); | 500 | spin_lock_init(&rnet->tx_lock); |
diff --git a/drivers/net/usb/catc.c b/drivers/net/usb/catc.c index 630caf48f63a..8cfc3bb0c6a6 100644 --- a/drivers/net/usb/catc.c +++ b/drivers/net/usb/catc.c | |||
@@ -793,7 +793,7 @@ static int catc_probe(struct usb_interface *intf, const struct usb_device_id *id | |||
793 | 793 | ||
794 | netdev->netdev_ops = &catc_netdev_ops; | 794 | netdev->netdev_ops = &catc_netdev_ops; |
795 | netdev->watchdog_timeo = TX_TIMEOUT; | 795 | netdev->watchdog_timeo = TX_TIMEOUT; |
796 | SET_ETHTOOL_OPS(netdev, &ops); | 796 | netdev->ethtool_ops = &ops; |
797 | 797 | ||
798 | catc->usbdev = usbdev; | 798 | catc->usbdev = usbdev; |
799 | catc->netdev = netdev; | 799 | catc->netdev = netdev; |
diff --git a/drivers/net/usb/hso.c b/drivers/net/usb/hso.c index 660bd5ea9fc0..a3a05869309d 100644 --- a/drivers/net/usb/hso.c +++ b/drivers/net/usb/hso.c | |||
@@ -2425,7 +2425,7 @@ static void hso_net_init(struct net_device *net) | |||
2425 | net->type = ARPHRD_NONE; | 2425 | net->type = ARPHRD_NONE; |
2426 | net->mtu = DEFAULT_MTU - 14; | 2426 | net->mtu = DEFAULT_MTU - 14; |
2427 | net->tx_queue_len = 10; | 2427 | net->tx_queue_len = 10; |
2428 | SET_ETHTOOL_OPS(net, &ops); | 2428 | net->ethtool_ops = &ops; |
2429 | 2429 | ||
2430 | /* and initialize the semaphore */ | 2430 | /* and initialize the semaphore */ |
2431 | spin_lock_init(&hso_net->net_lock); | 2431 | spin_lock_init(&hso_net->net_lock); |
diff --git a/drivers/net/usb/ipheth.c b/drivers/net/usb/ipheth.c index 421934c83f1c..f72570708edb 100644 --- a/drivers/net/usb/ipheth.c +++ b/drivers/net/usb/ipheth.c | |||
@@ -524,7 +524,7 @@ static int ipheth_probe(struct usb_interface *intf, | |||
524 | usb_set_intfdata(intf, dev); | 524 | usb_set_intfdata(intf, dev); |
525 | 525 | ||
526 | SET_NETDEV_DEV(netdev, &intf->dev); | 526 | SET_NETDEV_DEV(netdev, &intf->dev); |
527 | SET_ETHTOOL_OPS(netdev, &ops); | 527 | netdev->ethtool_ops = &ops; |
528 | 528 | ||
529 | retval = register_netdev(netdev); | 529 | retval = register_netdev(netdev); |
530 | if (retval) { | 530 | if (retval) { |
diff --git a/drivers/net/usb/kaweth.c b/drivers/net/usb/kaweth.c index a359d3bb7c5b..dcb6d33141e0 100644 --- a/drivers/net/usb/kaweth.c +++ b/drivers/net/usb/kaweth.c | |||
@@ -1171,7 +1171,7 @@ err_fw: | |||
1171 | netdev->netdev_ops = &kaweth_netdev_ops; | 1171 | netdev->netdev_ops = &kaweth_netdev_ops; |
1172 | netdev->watchdog_timeo = KAWETH_TX_TIMEOUT; | 1172 | netdev->watchdog_timeo = KAWETH_TX_TIMEOUT; |
1173 | netdev->mtu = le16_to_cpu(kaweth->configuration.segment_size); | 1173 | netdev->mtu = le16_to_cpu(kaweth->configuration.segment_size); |
1174 | SET_ETHTOOL_OPS(netdev, &ops); | 1174 | netdev->ethtool_ops = &ops; |
1175 | 1175 | ||
1176 | /* kaweth is zeroed as part of alloc_netdev */ | 1176 | /* kaweth is zeroed as part of alloc_netdev */ |
1177 | INIT_DELAYED_WORK(&kaweth->lowmem_work, kaweth_resubmit_tl); | 1177 | INIT_DELAYED_WORK(&kaweth->lowmem_work, kaweth_resubmit_tl); |
diff --git a/drivers/net/usb/pegasus.c b/drivers/net/usb/pegasus.c index 03e8a15d7deb..f84080215915 100644 --- a/drivers/net/usb/pegasus.c +++ b/drivers/net/usb/pegasus.c | |||
@@ -1159,7 +1159,7 @@ static int pegasus_probe(struct usb_interface *intf, | |||
1159 | 1159 | ||
1160 | net->watchdog_timeo = PEGASUS_TX_TIMEOUT; | 1160 | net->watchdog_timeo = PEGASUS_TX_TIMEOUT; |
1161 | net->netdev_ops = &pegasus_netdev_ops; | 1161 | net->netdev_ops = &pegasus_netdev_ops; |
1162 | SET_ETHTOOL_OPS(net, &ops); | 1162 | net->ethtool_ops = &ops; |
1163 | pegasus->mii.dev = net; | 1163 | pegasus->mii.dev = net; |
1164 | pegasus->mii.mdio_read = mdio_read; | 1164 | pegasus->mii.mdio_read = mdio_read; |
1165 | pegasus->mii.mdio_write = mdio_write; | 1165 | pegasus->mii.mdio_write = mdio_write; |
diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index 3fbfb0869030..9f91c7aba4b0 100644 --- a/drivers/net/usb/r8152.c +++ b/drivers/net/usb/r8152.c | |||
@@ -3452,7 +3452,7 @@ static int rtl8152_probe(struct usb_interface *intf, | |||
3452 | NETIF_F_TSO | NETIF_F_FRAGLIST | | 3452 | NETIF_F_TSO | NETIF_F_FRAGLIST | |
3453 | NETIF_F_IPV6_CSUM | NETIF_F_TSO6; | 3453 | NETIF_F_IPV6_CSUM | NETIF_F_TSO6; |
3454 | 3454 | ||
3455 | SET_ETHTOOL_OPS(netdev, &ops); | 3455 | netdev->ethtool_ops = &ops; |
3456 | netif_set_gso_max_size(netdev, RTL_LIMITED_TSO_SIZE); | 3456 | netif_set_gso_max_size(netdev, RTL_LIMITED_TSO_SIZE); |
3457 | 3457 | ||
3458 | tp->mii.dev = netdev; | 3458 | tp->mii.dev = netdev; |
diff --git a/drivers/net/usb/rtl8150.c b/drivers/net/usb/rtl8150.c index da2c4583bd2d..6e87e5710048 100644 --- a/drivers/net/usb/rtl8150.c +++ b/drivers/net/usb/rtl8150.c | |||
@@ -878,7 +878,7 @@ static int rtl8150_probe(struct usb_interface *intf, | |||
878 | dev->netdev = netdev; | 878 | dev->netdev = netdev; |
879 | netdev->netdev_ops = &rtl8150_netdev_ops; | 879 | netdev->netdev_ops = &rtl8150_netdev_ops; |
880 | netdev->watchdog_timeo = RTL8150_TX_TIMEOUT; | 880 | netdev->watchdog_timeo = RTL8150_TX_TIMEOUT; |
881 | SET_ETHTOOL_OPS(netdev, &ops); | 881 | netdev->ethtool_ops = &ops; |
882 | dev->intr_interval = 100; /* 100ms */ | 882 | dev->intr_interval = 100; /* 100ms */ |
883 | 883 | ||
884 | if (!alloc_all_urbs(dev)) { | 884 | if (!alloc_all_urbs(dev)) { |
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index b852bb368acc..7d9f84a91f37 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c | |||
@@ -1646,7 +1646,7 @@ static int virtnet_probe(struct virtio_device *vdev) | |||
1646 | dev->netdev_ops = &virtnet_netdev; | 1646 | dev->netdev_ops = &virtnet_netdev; |
1647 | dev->features = NETIF_F_HIGHDMA; | 1647 | dev->features = NETIF_F_HIGHDMA; |
1648 | 1648 | ||
1649 | SET_ETHTOOL_OPS(dev, &virtnet_ethtool_ops); | 1649 | dev->ethtool_ops = &virtnet_ethtool_ops; |
1650 | SET_NETDEV_DEV(dev, &vdev->dev); | 1650 | SET_NETDEV_DEV(dev, &vdev->dev); |
1651 | 1651 | ||
1652 | /* Do we support "hardware" checksums? */ | 1652 | /* Do we support "hardware" checksums? */ |
diff --git a/drivers/net/vmxnet3/vmxnet3_ethtool.c b/drivers/net/vmxnet3/vmxnet3_ethtool.c index 600ab56c0008..00e120296e92 100644 --- a/drivers/net/vmxnet3/vmxnet3_ethtool.c +++ b/drivers/net/vmxnet3/vmxnet3_ethtool.c | |||
@@ -635,5 +635,5 @@ static const struct ethtool_ops vmxnet3_ethtool_ops = { | |||
635 | 635 | ||
636 | void vmxnet3_set_ethtool_ops(struct net_device *netdev) | 636 | void vmxnet3_set_ethtool_ops(struct net_device *netdev) |
637 | { | 637 | { |
638 | SET_ETHTOOL_OPS(netdev, &vmxnet3_ethtool_ops); | 638 | netdev->ethtool_ops = &vmxnet3_ethtool_ops; |
639 | } | 639 | } |
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c index 1dfee9a7fbf7..e68c8eb4ea8e 100644 --- a/drivers/net/vxlan.c +++ b/drivers/net/vxlan.c | |||
@@ -2716,7 +2716,7 @@ static int vxlan_newlink(struct net *net, struct net_device *dev, | |||
2716 | return -EEXIST; | 2716 | return -EEXIST; |
2717 | } | 2717 | } |
2718 | 2718 | ||
2719 | SET_ETHTOOL_OPS(dev, &vxlan_ethtool_ops); | 2719 | dev->ethtool_ops = &vxlan_ethtool_ops; |
2720 | 2720 | ||
2721 | /* create an fdb entry for a valid default destination */ | 2721 | /* create an fdb entry for a valid default destination */ |
2722 | if (!vxlan_addr_any(&vxlan->default_dst.remote_ip)) { | 2722 | if (!vxlan_addr_any(&vxlan->default_dst.remote_ip)) { |
diff --git a/drivers/net/wireless/hostap/hostap_main.c b/drivers/net/wireless/hostap/hostap_main.c index 67db34e56d7e..52919ad42726 100644 --- a/drivers/net/wireless/hostap/hostap_main.c +++ b/drivers/net/wireless/hostap/hostap_main.c | |||
@@ -882,7 +882,7 @@ void hostap_setup_dev(struct net_device *dev, local_info_t *local, | |||
882 | dev->mtu = local->mtu; | 882 | dev->mtu = local->mtu; |
883 | 883 | ||
884 | 884 | ||
885 | SET_ETHTOOL_OPS(dev, &prism2_ethtool_ops); | 885 | dev->ethtool_ops = &prism2_ethtool_ops; |
886 | 886 | ||
887 | } | 887 | } |
888 | 888 | ||
diff --git a/drivers/net/xen-netback/interface.c b/drivers/net/xen-netback/interface.c index ef05c5c49d41..a7557331699f 100644 --- a/drivers/net/xen-netback/interface.c +++ b/drivers/net/xen-netback/interface.c | |||
@@ -386,7 +386,7 @@ struct xenvif *xenvif_alloc(struct device *parent, domid_t domid, | |||
386 | NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM | | 386 | NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM | |
387 | NETIF_F_TSO | NETIF_F_TSO6; | 387 | NETIF_F_TSO | NETIF_F_TSO6; |
388 | dev->features = dev->hw_features | NETIF_F_RXCSUM; | 388 | dev->features = dev->hw_features | NETIF_F_RXCSUM; |
389 | SET_ETHTOOL_OPS(dev, &xenvif_ethtool_ops); | 389 | dev->ethtool_ops = &xenvif_ethtool_ops; |
390 | 390 | ||
391 | dev->tx_queue_len = XENVIF_QUEUE_LENGTH; | 391 | dev->tx_queue_len = XENVIF_QUEUE_LENGTH; |
392 | 392 | ||
diff --git a/drivers/net/xen-netfront.c b/drivers/net/xen-netfront.c index 158b5e639fc7..895355de8ac4 100644 --- a/drivers/net/xen-netfront.c +++ b/drivers/net/xen-netfront.c | |||
@@ -1332,7 +1332,7 @@ static struct net_device *xennet_create_dev(struct xenbus_device *dev) | |||
1332 | */ | 1332 | */ |
1333 | netdev->features |= netdev->hw_features; | 1333 | netdev->features |= netdev->hw_features; |
1334 | 1334 | ||
1335 | SET_ETHTOOL_OPS(netdev, &xennet_ethtool_ops); | 1335 | netdev->ethtool_ops = &xennet_ethtool_ops; |
1336 | SET_NETDEV_DEV(netdev, &dev->dev); | 1336 | SET_NETDEV_DEV(netdev, &dev->dev); |
1337 | 1337 | ||
1338 | netif_set_gso_max_size(netdev, XEN_NETIF_MAX_TX_SIZE - MAX_TCP_HEADER); | 1338 | netif_set_gso_max_size(netdev, XEN_NETIF_MAX_TX_SIZE - MAX_TCP_HEADER); |
diff --git a/drivers/s390/net/qeth_l2_main.c b/drivers/s390/net/qeth_l2_main.c index e232ceca38fe..5ef5b4f45758 100644 --- a/drivers/s390/net/qeth_l2_main.c +++ b/drivers/s390/net/qeth_l2_main.c | |||
@@ -969,10 +969,9 @@ static int qeth_l2_setup_netdev(struct qeth_card *card) | |||
969 | card->dev->watchdog_timeo = QETH_TX_TIMEOUT; | 969 | card->dev->watchdog_timeo = QETH_TX_TIMEOUT; |
970 | card->dev->mtu = card->info.initial_mtu; | 970 | card->dev->mtu = card->info.initial_mtu; |
971 | card->dev->netdev_ops = &qeth_l2_netdev_ops; | 971 | card->dev->netdev_ops = &qeth_l2_netdev_ops; |
972 | if (card->info.type != QETH_CARD_TYPE_OSN) | 972 | card->dev->ethtool_ops = |
973 | SET_ETHTOOL_OPS(card->dev, &qeth_l2_ethtool_ops); | 973 | (card->info.type != QETH_CARD_TYPE_OSN) ? |
974 | else | 974 | &qeth_l2_ethtool_ops : &qeth_l2_osn_ops; |
975 | SET_ETHTOOL_OPS(card->dev, &qeth_l2_osn_ops); | ||
976 | card->dev->features |= NETIF_F_HW_VLAN_CTAG_FILTER; | 975 | card->dev->features |= NETIF_F_HW_VLAN_CTAG_FILTER; |
977 | card->info.broadcast_capable = 1; | 976 | card->info.broadcast_capable = 1; |
978 | qeth_l2_request_initial_mac(card); | 977 | qeth_l2_request_initial_mac(card); |
diff --git a/drivers/s390/net/qeth_l3_main.c b/drivers/s390/net/qeth_l3_main.c index bc2499a24884..c58f82af3658 100644 --- a/drivers/s390/net/qeth_l3_main.c +++ b/drivers/s390/net/qeth_l3_main.c | |||
@@ -3301,7 +3301,7 @@ static int qeth_l3_setup_netdev(struct qeth_card *card) | |||
3301 | card->dev->ml_priv = card; | 3301 | card->dev->ml_priv = card; |
3302 | card->dev->watchdog_timeo = QETH_TX_TIMEOUT; | 3302 | card->dev->watchdog_timeo = QETH_TX_TIMEOUT; |
3303 | card->dev->mtu = card->info.initial_mtu; | 3303 | card->dev->mtu = card->info.initial_mtu; |
3304 | SET_ETHTOOL_OPS(card->dev, &qeth_l3_ethtool_ops); | 3304 | card->dev->ethtool_ops = &qeth_l3_ethtool_ops; |
3305 | card->dev->features |= NETIF_F_HW_VLAN_CTAG_TX | | 3305 | card->dev->features |= NETIF_F_HW_VLAN_CTAG_TX | |
3306 | NETIF_F_HW_VLAN_CTAG_RX | | 3306 | NETIF_F_HW_VLAN_CTAG_RX | |
3307 | NETIF_F_HW_VLAN_CTAG_FILTER; | 3307 | NETIF_F_HW_VLAN_CTAG_FILTER; |
diff --git a/drivers/staging/et131x/et131x.c b/drivers/staging/et131x/et131x.c index d329cf314360..15e0f4da3ce0 100644 --- a/drivers/staging/et131x/et131x.c +++ b/drivers/staging/et131x/et131x.c | |||
@@ -4604,7 +4604,7 @@ static int et131x_pci_setup(struct pci_dev *pdev, | |||
4604 | netdev->netdev_ops = &et131x_netdev_ops; | 4604 | netdev->netdev_ops = &et131x_netdev_ops; |
4605 | 4605 | ||
4606 | SET_NETDEV_DEV(netdev, &pdev->dev); | 4606 | SET_NETDEV_DEV(netdev, &pdev->dev); |
4607 | SET_ETHTOOL_OPS(netdev, &et131x_ethtool_ops); | 4607 | netdev->ethtool_ops = &et131x_ethtool_ops; |
4608 | 4608 | ||
4609 | adapter = et131x_adapter_init(netdev, pdev); | 4609 | adapter = et131x_adapter_init(netdev, pdev); |
4610 | 4610 | ||
diff --git a/drivers/staging/ft1000/ft1000-pcmcia/ft1000_hw.c b/drivers/staging/ft1000/ft1000-pcmcia/ft1000_hw.c index d6421b9b5981..a6158bef58e5 100644 --- a/drivers/staging/ft1000/ft1000-pcmcia/ft1000_hw.c +++ b/drivers/staging/ft1000/ft1000-pcmcia/ft1000_hw.c | |||
@@ -2249,7 +2249,7 @@ struct net_device *init_ft1000_card(struct pcmcia_device *link, | |||
2249 | 2249 | ||
2250 | ft1000InitProc(dev); | 2250 | ft1000InitProc(dev); |
2251 | ft1000_card_present = 1; | 2251 | ft1000_card_present = 1; |
2252 | SET_ETHTOOL_OPS(dev, &ops); | 2252 | dev->ethtool_ops = &ops; |
2253 | printk(KERN_INFO "ft1000: %s: addr 0x%04lx irq %d, MAC addr %pM\n", | 2253 | printk(KERN_INFO "ft1000: %s: addr 0x%04lx irq %d, MAC addr %pM\n", |
2254 | dev->name, dev->base_addr, dev->irq, dev->dev_addr); | 2254 | dev->name, dev->base_addr, dev->irq, dev->dev_addr); |
2255 | return dev; | 2255 | return dev; |
diff --git a/drivers/staging/netlogic/xlr_net.c b/drivers/staging/netlogic/xlr_net.c index c83e3375104b..9d957615e32a 100644 --- a/drivers/staging/netlogic/xlr_net.c +++ b/drivers/staging/netlogic/xlr_net.c | |||
@@ -1066,7 +1066,7 @@ static int xlr_net_probe(struct platform_device *pdev) | |||
1066 | xlr_set_rx_mode(ndev); | 1066 | xlr_set_rx_mode(ndev); |
1067 | 1067 | ||
1068 | priv->num_rx_desc += MAX_NUM_DESC_SPILL; | 1068 | priv->num_rx_desc += MAX_NUM_DESC_SPILL; |
1069 | SET_ETHTOOL_OPS(ndev, &xlr_ethtool_ops); | 1069 | ndev->ethtool_ops = &xlr_ethtool_ops; |
1070 | SET_NETDEV_DEV(ndev, &pdev->dev); | 1070 | SET_NETDEV_DEV(ndev, &pdev->dev); |
1071 | 1071 | ||
1072 | /* Common registers, do one time initialization */ | 1072 | /* Common registers, do one time initialization */ |
diff --git a/drivers/staging/octeon/ethernet.c b/drivers/staging/octeon/ethernet.c index ff7214aac9dd..da9dd6bc5660 100644 --- a/drivers/staging/octeon/ethernet.c +++ b/drivers/staging/octeon/ethernet.c | |||
@@ -469,7 +469,7 @@ int cvm_oct_common_init(struct net_device *dev) | |||
469 | 469 | ||
470 | /* We do our own locking, Linux doesn't need to */ | 470 | /* We do our own locking, Linux doesn't need to */ |
471 | dev->features |= NETIF_F_LLTX; | 471 | dev->features |= NETIF_F_LLTX; |
472 | SET_ETHTOOL_OPS(dev, &cvm_oct_ethtool_ops); | 472 | dev->ethtool_ops = &cvm_oct_ethtool_ops; |
473 | 473 | ||
474 | cvm_oct_phy_setup_device(dev); | 474 | cvm_oct_phy_setup_device(dev); |
475 | cvm_oct_set_mac_filter(dev); | 475 | cvm_oct_set_mac_filter(dev); |
diff --git a/drivers/usb/gadget/u_ether.c b/drivers/usb/gadget/u_ether.c index b7d4f82872b7..ce8e28146162 100644 --- a/drivers/usb/gadget/u_ether.c +++ b/drivers/usb/gadget/u_ether.c | |||
@@ -793,7 +793,7 @@ struct eth_dev *gether_setup_name(struct usb_gadget *g, | |||
793 | 793 | ||
794 | net->netdev_ops = ð_netdev_ops; | 794 | net->netdev_ops = ð_netdev_ops; |
795 | 795 | ||
796 | SET_ETHTOOL_OPS(net, &ops); | 796 | net->ethtool_ops = &ops; |
797 | 797 | ||
798 | dev->gadget = g; | 798 | dev->gadget = g; |
799 | SET_NETDEV_DEV(net, &g->dev); | 799 | SET_NETDEV_DEV(net, &g->dev); |
@@ -850,7 +850,7 @@ struct net_device *gether_setup_name_default(const char *netname) | |||
850 | 850 | ||
851 | net->netdev_ops = ð_netdev_ops; | 851 | net->netdev_ops = ð_netdev_ops; |
852 | 852 | ||
853 | SET_ETHTOOL_OPS(net, &ops); | 853 | net->ethtool_ops = &ops; |
854 | SET_NETDEV_DEVTYPE(net, &gadget_type); | 854 | SET_NETDEV_DEVTYPE(net, &gadget_type); |
855 | 855 | ||
856 | return net; | 856 | return net; |
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index adc4658e9873..2dea98cbbdba 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -56,9 +56,6 @@ struct device; | |||
56 | struct phy_device; | 56 | struct phy_device; |
57 | /* 802.11 specific */ | 57 | /* 802.11 specific */ |
58 | struct wireless_dev; | 58 | struct wireless_dev; |
59 | /* source back-compat hooks */ | ||
60 | #define SET_ETHTOOL_OPS(netdev,ops) \ | ||
61 | ( (netdev)->ethtool_ops = (ops) ) | ||
62 | 59 | ||
63 | void netdev_set_default_ethtool_ops(struct net_device *dev, | 60 | void netdev_set_default_ethtool_ops(struct net_device *dev, |
64 | const struct ethtool_ops *ops); | 61 | const struct ethtool_ops *ops); |
diff --git a/net/batman-adv/soft-interface.c b/net/batman-adv/soft-interface.c index 744a59b85e15..e7ee65dc20bf 100644 --- a/net/batman-adv/soft-interface.c +++ b/net/batman-adv/soft-interface.c | |||
@@ -884,7 +884,7 @@ static void batadv_softif_init_early(struct net_device *dev) | |||
884 | /* generate random address */ | 884 | /* generate random address */ |
885 | eth_hw_addr_random(dev); | 885 | eth_hw_addr_random(dev); |
886 | 886 | ||
887 | SET_ETHTOOL_OPS(dev, &batadv_ethtool_ops); | 887 | dev->ethtool_ops = &batadv_ethtool_ops; |
888 | 888 | ||
889 | memset(priv, 0, sizeof(*priv)); | 889 | memset(priv, 0, sizeof(*priv)); |
890 | } | 890 | } |
diff --git a/net/bridge/br_device.c b/net/bridge/br_device.c index 3e2da2cb72db..9212015abc8f 100644 --- a/net/bridge/br_device.c +++ b/net/bridge/br_device.c | |||
@@ -348,7 +348,7 @@ void br_dev_setup(struct net_device *dev) | |||
348 | 348 | ||
349 | dev->netdev_ops = &br_netdev_ops; | 349 | dev->netdev_ops = &br_netdev_ops; |
350 | dev->destructor = br_dev_free; | 350 | dev->destructor = br_dev_free; |
351 | SET_ETHTOOL_OPS(dev, &br_ethtool_ops); | 351 | dev->ethtool_ops = &br_ethtool_ops; |
352 | SET_NETDEV_DEVTYPE(dev, &br_type); | 352 | SET_NETDEV_DEVTYPE(dev, &br_type); |
353 | dev->tx_queue_len = 0; | 353 | dev->tx_queue_len = 0; |
354 | dev->priv_flags = IFF_EBRIDGE; | 354 | dev->priv_flags = IFF_EBRIDGE; |
diff --git a/net/dsa/slave.c b/net/dsa/slave.c index 02c0e1716f64..64c5af0a10dd 100644 --- a/net/dsa/slave.c +++ b/net/dsa/slave.c | |||
@@ -346,7 +346,7 @@ dsa_slave_create(struct dsa_switch *ds, struct device *parent, | |||
346 | return slave_dev; | 346 | return slave_dev; |
347 | 347 | ||
348 | slave_dev->features = master->vlan_features; | 348 | slave_dev->features = master->vlan_features; |
349 | SET_ETHTOOL_OPS(slave_dev, &dsa_slave_ethtool_ops); | 349 | slave_dev->ethtool_ops = &dsa_slave_ethtool_ops; |
350 | eth_hw_addr_inherit(slave_dev, master); | 350 | eth_hw_addr_inherit(slave_dev, master); |
351 | slave_dev->tx_queue_len = 0; | 351 | slave_dev->tx_queue_len = 0; |
352 | 352 | ||
diff --git a/net/openvswitch/vport-internal_dev.c b/net/openvswitch/vport-internal_dev.c index 729c68763fe7..789af9280e77 100644 --- a/net/openvswitch/vport-internal_dev.c +++ b/net/openvswitch/vport-internal_dev.c | |||
@@ -130,7 +130,7 @@ static void do_setup(struct net_device *netdev) | |||
130 | netdev->priv_flags &= ~IFF_TX_SKB_SHARING; | 130 | netdev->priv_flags &= ~IFF_TX_SKB_SHARING; |
131 | netdev->priv_flags |= IFF_LIVE_ADDR_CHANGE; | 131 | netdev->priv_flags |= IFF_LIVE_ADDR_CHANGE; |
132 | netdev->destructor = internal_dev_destructor; | 132 | netdev->destructor = internal_dev_destructor; |
133 | SET_ETHTOOL_OPS(netdev, &internal_dev_ethtool_ops); | 133 | netdev->ethtool_ops = &internal_dev_ethtool_ops; |
134 | netdev->tx_queue_len = 0; | 134 | netdev->tx_queue_len = 0; |
135 | 135 | ||
136 | netdev->features = NETIF_F_LLTX | NETIF_F_SG | NETIF_F_FRAGLIST | | 136 | netdev->features = NETIF_F_LLTX | NETIF_F_SG | NETIF_F_FRAGLIST | |