diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2008-07-26 05:24:10 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-07-26 05:24:10 -0400 |
commit | 509e2562adfd63964aa30c1ddd9ddf4e57949351 (patch) | |
tree | 3cba8b117c5cd754ad551c4d4a93b2982793c90b | |
parent | 16df845f4566bc252f3e09db12f5c2f22cb44226 (diff) |
qeth: use dev->ml_priv instead of dev->priv
From: Heiko Carstens <heiko.carstens@de.ibm.com>
This makes qeth working again after git commit
e3c50d5d25ac09efd9acbe2b2a3e365466de84ed
"netdev: netdev_priv() can now be sane again.".
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/s390/net/qeth_core_main.c | 14 | ||||
-rw-r--r-- | drivers/s390/net/qeth_l2_main.c | 26 | ||||
-rw-r--r-- | drivers/s390/net/qeth_l3_main.c | 30 |
3 files changed, 35 insertions, 35 deletions
diff --git a/drivers/s390/net/qeth_core_main.c b/drivers/s390/net/qeth_core_main.c index c3ad89e302bd..cebb25e36e82 100644 --- a/drivers/s390/net/qeth_core_main.c +++ b/drivers/s390/net/qeth_core_main.c | |||
@@ -3321,7 +3321,7 @@ int qeth_change_mtu(struct net_device *dev, int new_mtu) | |||
3321 | struct qeth_card *card; | 3321 | struct qeth_card *card; |
3322 | char dbf_text[15]; | 3322 | char dbf_text[15]; |
3323 | 3323 | ||
3324 | card = netdev_priv(dev); | 3324 | card = dev->ml_priv; |
3325 | 3325 | ||
3326 | QETH_DBF_TEXT(TRACE, 4, "chgmtu"); | 3326 | QETH_DBF_TEXT(TRACE, 4, "chgmtu"); |
3327 | sprintf(dbf_text, "%8x", new_mtu); | 3327 | sprintf(dbf_text, "%8x", new_mtu); |
@@ -3343,7 +3343,7 @@ struct net_device_stats *qeth_get_stats(struct net_device *dev) | |||
3343 | { | 3343 | { |
3344 | struct qeth_card *card; | 3344 | struct qeth_card *card; |
3345 | 3345 | ||
3346 | card = netdev_priv(dev); | 3346 | card = dev->ml_priv; |
3347 | 3347 | ||
3348 | QETH_DBF_TEXT(TRACE, 5, "getstat"); | 3348 | QETH_DBF_TEXT(TRACE, 5, "getstat"); |
3349 | 3349 | ||
@@ -3395,7 +3395,7 @@ void qeth_tx_timeout(struct net_device *dev) | |||
3395 | { | 3395 | { |
3396 | struct qeth_card *card; | 3396 | struct qeth_card *card; |
3397 | 3397 | ||
3398 | card = netdev_priv(dev); | 3398 | card = dev->ml_priv; |
3399 | card->stats.tx_errors++; | 3399 | card->stats.tx_errors++; |
3400 | qeth_schedule_recovery(card); | 3400 | qeth_schedule_recovery(card); |
3401 | } | 3401 | } |
@@ -3403,7 +3403,7 @@ EXPORT_SYMBOL_GPL(qeth_tx_timeout); | |||
3403 | 3403 | ||
3404 | int qeth_mdio_read(struct net_device *dev, int phy_id, int regnum) | 3404 | int qeth_mdio_read(struct net_device *dev, int phy_id, int regnum) |
3405 | { | 3405 | { |
3406 | struct qeth_card *card = netdev_priv(dev); | 3406 | struct qeth_card *card = dev->ml_priv; |
3407 | int rc = 0; | 3407 | int rc = 0; |
3408 | 3408 | ||
3409 | switch (regnum) { | 3409 | switch (regnum) { |
@@ -4253,7 +4253,7 @@ EXPORT_SYMBOL_GPL(qeth_core_get_stats_count); | |||
4253 | void qeth_core_get_ethtool_stats(struct net_device *dev, | 4253 | void qeth_core_get_ethtool_stats(struct net_device *dev, |
4254 | struct ethtool_stats *stats, u64 *data) | 4254 | struct ethtool_stats *stats, u64 *data) |
4255 | { | 4255 | { |
4256 | struct qeth_card *card = netdev_priv(dev); | 4256 | struct qeth_card *card = dev->ml_priv; |
4257 | data[0] = card->stats.rx_packets - | 4257 | data[0] = card->stats.rx_packets - |
4258 | card->perf_stats.initial_rx_packets; | 4258 | card->perf_stats.initial_rx_packets; |
4259 | data[1] = card->perf_stats.bufs_rec; | 4259 | data[1] = card->perf_stats.bufs_rec; |
@@ -4313,7 +4313,7 @@ EXPORT_SYMBOL_GPL(qeth_core_get_strings); | |||
4313 | void qeth_core_get_drvinfo(struct net_device *dev, | 4313 | void qeth_core_get_drvinfo(struct net_device *dev, |
4314 | struct ethtool_drvinfo *info) | 4314 | struct ethtool_drvinfo *info) |
4315 | { | 4315 | { |
4316 | struct qeth_card *card = netdev_priv(dev); | 4316 | struct qeth_card *card = dev->ml_priv; |
4317 | if (card->options.layer2) | 4317 | if (card->options.layer2) |
4318 | strcpy(info->driver, "qeth_l2"); | 4318 | strcpy(info->driver, "qeth_l2"); |
4319 | else | 4319 | else |
@@ -4331,7 +4331,7 @@ EXPORT_SYMBOL_GPL(qeth_core_get_drvinfo); | |||
4331 | int qeth_core_ethtool_get_settings(struct net_device *netdev, | 4331 | int qeth_core_ethtool_get_settings(struct net_device *netdev, |
4332 | struct ethtool_cmd *ecmd) | 4332 | struct ethtool_cmd *ecmd) |
4333 | { | 4333 | { |
4334 | struct qeth_card *card = netdev_priv(netdev); | 4334 | struct qeth_card *card = netdev->ml_priv; |
4335 | enum qeth_link_types link_type; | 4335 | enum qeth_link_types link_type; |
4336 | 4336 | ||
4337 | if ((card->info.type == QETH_CARD_TYPE_IQD) || (card->info.guestlan)) | 4337 | if ((card->info.type == QETH_CARD_TYPE_IQD) || (card->info.guestlan)) |
diff --git a/drivers/s390/net/qeth_l2_main.c b/drivers/s390/net/qeth_l2_main.c index 3fbc3bdec0c5..a8b069cd9a4c 100644 --- a/drivers/s390/net/qeth_l2_main.c +++ b/drivers/s390/net/qeth_l2_main.c | |||
@@ -35,7 +35,7 @@ static int qeth_l2_recover(void *); | |||
35 | 35 | ||
36 | static int qeth_l2_do_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) | 36 | static int qeth_l2_do_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) |
37 | { | 37 | { |
38 | struct qeth_card *card = netdev_priv(dev); | 38 | struct qeth_card *card = dev->ml_priv; |
39 | struct mii_ioctl_data *mii_data; | 39 | struct mii_ioctl_data *mii_data; |
40 | int rc = 0; | 40 | int rc = 0; |
41 | 41 | ||
@@ -317,7 +317,7 @@ static void qeth_l2_process_vlans(struct qeth_card *card, int clear) | |||
317 | 317 | ||
318 | static void qeth_l2_vlan_rx_add_vid(struct net_device *dev, unsigned short vid) | 318 | static void qeth_l2_vlan_rx_add_vid(struct net_device *dev, unsigned short vid) |
319 | { | 319 | { |
320 | struct qeth_card *card = netdev_priv(dev); | 320 | struct qeth_card *card = dev->ml_priv; |
321 | struct qeth_vlan_vid *id; | 321 | struct qeth_vlan_vid *id; |
322 | 322 | ||
323 | QETH_DBF_TEXT_(TRACE, 4, "aid:%d", vid); | 323 | QETH_DBF_TEXT_(TRACE, 4, "aid:%d", vid); |
@@ -334,7 +334,7 @@ static void qeth_l2_vlan_rx_add_vid(struct net_device *dev, unsigned short vid) | |||
334 | static void qeth_l2_vlan_rx_kill_vid(struct net_device *dev, unsigned short vid) | 334 | static void qeth_l2_vlan_rx_kill_vid(struct net_device *dev, unsigned short vid) |
335 | { | 335 | { |
336 | struct qeth_vlan_vid *id, *tmpid = NULL; | 336 | struct qeth_vlan_vid *id, *tmpid = NULL; |
337 | struct qeth_card *card = netdev_priv(dev); | 337 | struct qeth_card *card = dev->ml_priv; |
338 | 338 | ||
339 | QETH_DBF_TEXT_(TRACE, 4, "kid:%d", vid); | 339 | QETH_DBF_TEXT_(TRACE, 4, "kid:%d", vid); |
340 | spin_lock_bh(&card->vlanlock); | 340 | spin_lock_bh(&card->vlanlock); |
@@ -566,7 +566,7 @@ static int qeth_l2_request_initial_mac(struct qeth_card *card) | |||
566 | static int qeth_l2_set_mac_address(struct net_device *dev, void *p) | 566 | static int qeth_l2_set_mac_address(struct net_device *dev, void *p) |
567 | { | 567 | { |
568 | struct sockaddr *addr = p; | 568 | struct sockaddr *addr = p; |
569 | struct qeth_card *card = netdev_priv(dev); | 569 | struct qeth_card *card = dev->ml_priv; |
570 | int rc = 0; | 570 | int rc = 0; |
571 | 571 | ||
572 | QETH_DBF_TEXT(TRACE, 3, "setmac"); | 572 | QETH_DBF_TEXT(TRACE, 3, "setmac"); |
@@ -590,7 +590,7 @@ static int qeth_l2_set_mac_address(struct net_device *dev, void *p) | |||
590 | 590 | ||
591 | static void qeth_l2_set_multicast_list(struct net_device *dev) | 591 | static void qeth_l2_set_multicast_list(struct net_device *dev) |
592 | { | 592 | { |
593 | struct qeth_card *card = netdev_priv(dev); | 593 | struct qeth_card *card = dev->ml_priv; |
594 | struct dev_mc_list *dm; | 594 | struct dev_mc_list *dm; |
595 | 595 | ||
596 | if (card->info.type == QETH_CARD_TYPE_OSN) | 596 | if (card->info.type == QETH_CARD_TYPE_OSN) |
@@ -612,7 +612,7 @@ static int qeth_l2_hard_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
612 | int rc; | 612 | int rc; |
613 | struct qeth_hdr *hdr = NULL; | 613 | struct qeth_hdr *hdr = NULL; |
614 | int elements = 0; | 614 | int elements = 0; |
615 | struct qeth_card *card = netdev_priv(dev); | 615 | struct qeth_card *card = dev->ml_priv; |
616 | struct sk_buff *new_skb = skb; | 616 | struct sk_buff *new_skb = skb; |
617 | int ipv = qeth_get_ip_version(skb); | 617 | int ipv = qeth_get_ip_version(skb); |
618 | int cast_type = qeth_get_cast_type(card, skb); | 618 | int cast_type = qeth_get_cast_type(card, skb); |
@@ -767,7 +767,7 @@ static void qeth_l2_qdio_input_handler(struct ccw_device *ccwdev, | |||
767 | 767 | ||
768 | static int qeth_l2_open(struct net_device *dev) | 768 | static int qeth_l2_open(struct net_device *dev) |
769 | { | 769 | { |
770 | struct qeth_card *card = netdev_priv(dev); | 770 | struct qeth_card *card = dev->ml_priv; |
771 | 771 | ||
772 | QETH_DBF_TEXT(TRACE, 4, "qethopen"); | 772 | QETH_DBF_TEXT(TRACE, 4, "qethopen"); |
773 | if (card->state != CARD_STATE_SOFTSETUP) | 773 | if (card->state != CARD_STATE_SOFTSETUP) |
@@ -791,7 +791,7 @@ static int qeth_l2_open(struct net_device *dev) | |||
791 | 791 | ||
792 | static int qeth_l2_stop(struct net_device *dev) | 792 | static int qeth_l2_stop(struct net_device *dev) |
793 | { | 793 | { |
794 | struct qeth_card *card = netdev_priv(dev); | 794 | struct qeth_card *card = dev->ml_priv; |
795 | 795 | ||
796 | QETH_DBF_TEXT(TRACE, 4, "qethstop"); | 796 | QETH_DBF_TEXT(TRACE, 4, "qethstop"); |
797 | netif_tx_disable(dev); | 797 | netif_tx_disable(dev); |
@@ -838,7 +838,7 @@ static void qeth_l2_remove_device(struct ccwgroup_device *cgdev) | |||
838 | 838 | ||
839 | static int qeth_l2_ethtool_set_tso(struct net_device *dev, u32 data) | 839 | static int qeth_l2_ethtool_set_tso(struct net_device *dev, u32 data) |
840 | { | 840 | { |
841 | struct qeth_card *card = netdev_priv(dev); | 841 | struct qeth_card *card = dev->ml_priv; |
842 | 842 | ||
843 | if (data) { | 843 | if (data) { |
844 | if (card->options.large_send == QETH_LARGE_SEND_NO) { | 844 | if (card->options.large_send == QETH_LARGE_SEND_NO) { |
@@ -894,7 +894,7 @@ static int qeth_l2_setup_netdev(struct qeth_card *card) | |||
894 | if (!card->dev) | 894 | if (!card->dev) |
895 | return -ENODEV; | 895 | return -ENODEV; |
896 | 896 | ||
897 | card->dev->priv = card; | 897 | card->dev->ml_priv = card; |
898 | card->dev->tx_timeout = &qeth_tx_timeout; | 898 | card->dev->tx_timeout = &qeth_tx_timeout; |
899 | card->dev->watchdog_timeo = QETH_TX_TIMEOUT; | 899 | card->dev->watchdog_timeo = QETH_TX_TIMEOUT; |
900 | card->dev->open = qeth_l2_open; | 900 | card->dev->open = qeth_l2_open; |
@@ -1178,7 +1178,7 @@ int qeth_osn_assist(struct net_device *dev, void *data, int data_len) | |||
1178 | QETH_DBF_TEXT(TRACE, 2, "osnsdmc"); | 1178 | QETH_DBF_TEXT(TRACE, 2, "osnsdmc"); |
1179 | if (!dev) | 1179 | if (!dev) |
1180 | return -ENODEV; | 1180 | return -ENODEV; |
1181 | card = netdev_priv(dev); | 1181 | card = dev->ml_priv; |
1182 | if (!card) | 1182 | if (!card) |
1183 | return -ENODEV; | 1183 | return -ENODEV; |
1184 | if ((card->state != CARD_STATE_UP) && | 1184 | if ((card->state != CARD_STATE_UP) && |
@@ -1201,7 +1201,7 @@ int qeth_osn_register(unsigned char *read_dev_no, struct net_device **dev, | |||
1201 | *dev = qeth_l2_netdev_by_devno(read_dev_no); | 1201 | *dev = qeth_l2_netdev_by_devno(read_dev_no); |
1202 | if (*dev == NULL) | 1202 | if (*dev == NULL) |
1203 | return -ENODEV; | 1203 | return -ENODEV; |
1204 | card = netdev_priv(*dev); | 1204 | card = (*dev)->ml_priv; |
1205 | if (!card) | 1205 | if (!card) |
1206 | return -ENODEV; | 1206 | return -ENODEV; |
1207 | if ((assist_cb == NULL) || (data_cb == NULL)) | 1207 | if ((assist_cb == NULL) || (data_cb == NULL)) |
@@ -1219,7 +1219,7 @@ void qeth_osn_deregister(struct net_device *dev) | |||
1219 | QETH_DBF_TEXT(TRACE, 2, "osndereg"); | 1219 | QETH_DBF_TEXT(TRACE, 2, "osndereg"); |
1220 | if (!dev) | 1220 | if (!dev) |
1221 | return; | 1221 | return; |
1222 | card = netdev_priv(dev); | 1222 | card = dev->ml_priv; |
1223 | if (!card) | 1223 | if (!card) |
1224 | return; | 1224 | return; |
1225 | card->osn_info.assist_cb = NULL; | 1225 | card->osn_info.assist_cb = NULL; |
diff --git a/drivers/s390/net/qeth_l3_main.c b/drivers/s390/net/qeth_l3_main.c index 38de31b55708..3e1d13857350 100644 --- a/drivers/s390/net/qeth_l3_main.c +++ b/drivers/s390/net/qeth_l3_main.c | |||
@@ -1813,7 +1813,7 @@ static void qeth_l3_free_vlan_addresses(struct qeth_card *card, | |||
1813 | static void qeth_l3_vlan_rx_register(struct net_device *dev, | 1813 | static void qeth_l3_vlan_rx_register(struct net_device *dev, |
1814 | struct vlan_group *grp) | 1814 | struct vlan_group *grp) |
1815 | { | 1815 | { |
1816 | struct qeth_card *card = netdev_priv(dev); | 1816 | struct qeth_card *card = dev->ml_priv; |
1817 | unsigned long flags; | 1817 | unsigned long flags; |
1818 | 1818 | ||
1819 | QETH_DBF_TEXT(TRACE, 4, "vlanreg"); | 1819 | QETH_DBF_TEXT(TRACE, 4, "vlanreg"); |
@@ -1825,7 +1825,7 @@ static void qeth_l3_vlan_rx_register(struct net_device *dev, | |||
1825 | static void qeth_l3_vlan_rx_add_vid(struct net_device *dev, unsigned short vid) | 1825 | static void qeth_l3_vlan_rx_add_vid(struct net_device *dev, unsigned short vid) |
1826 | { | 1826 | { |
1827 | struct net_device *vlandev; | 1827 | struct net_device *vlandev; |
1828 | struct qeth_card *card = (struct qeth_card *) dev->priv; | 1828 | struct qeth_card *card = dev->ml_priv; |
1829 | struct in_device *in_dev; | 1829 | struct in_device *in_dev; |
1830 | 1830 | ||
1831 | if (card->info.type == QETH_CARD_TYPE_IQD) | 1831 | if (card->info.type == QETH_CARD_TYPE_IQD) |
@@ -1851,7 +1851,7 @@ static void qeth_l3_vlan_rx_add_vid(struct net_device *dev, unsigned short vid) | |||
1851 | 1851 | ||
1852 | static void qeth_l3_vlan_rx_kill_vid(struct net_device *dev, unsigned short vid) | 1852 | static void qeth_l3_vlan_rx_kill_vid(struct net_device *dev, unsigned short vid) |
1853 | { | 1853 | { |
1854 | struct qeth_card *card = netdev_priv(dev); | 1854 | struct qeth_card *card = dev->ml_priv; |
1855 | unsigned long flags; | 1855 | unsigned long flags; |
1856 | 1856 | ||
1857 | QETH_DBF_TEXT_(TRACE, 4, "kid:%d", vid); | 1857 | QETH_DBF_TEXT_(TRACE, 4, "kid:%d", vid); |
@@ -2013,7 +2013,7 @@ static int qeth_l3_verify_vlan_dev(struct net_device *dev, | |||
2013 | } | 2013 | } |
2014 | } | 2014 | } |
2015 | 2015 | ||
2016 | if (rc && !(netdev_priv(vlan_dev_real_dev(dev)) == (void *)card)) | 2016 | if (rc && !(vlan_dev_real_dev(dev)->ml_priv == (void *)card)) |
2017 | return 0; | 2017 | return 0; |
2018 | 2018 | ||
2019 | return rc; | 2019 | return rc; |
@@ -2047,9 +2047,9 @@ static struct qeth_card *qeth_l3_get_card_from_dev(struct net_device *dev) | |||
2047 | 2047 | ||
2048 | rc = qeth_l3_verify_dev(dev); | 2048 | rc = qeth_l3_verify_dev(dev); |
2049 | if (rc == QETH_REAL_CARD) | 2049 | if (rc == QETH_REAL_CARD) |
2050 | card = netdev_priv(dev); | 2050 | card = dev->ml_priv; |
2051 | else if (rc == QETH_VLAN_CARD) | 2051 | else if (rc == QETH_VLAN_CARD) |
2052 | card = netdev_priv(vlan_dev_real_dev(dev)); | 2052 | card = vlan_dev_real_dev(dev)->ml_priv; |
2053 | if (card && card->options.layer2) | 2053 | if (card && card->options.layer2) |
2054 | card = NULL; | 2054 | card = NULL; |
2055 | QETH_DBF_TEXT_(TRACE, 4, "%d", rc); | 2055 | QETH_DBF_TEXT_(TRACE, 4, "%d", rc); |
@@ -2110,7 +2110,7 @@ static int qeth_l3_stop_card(struct qeth_card *card, int recovery_mode) | |||
2110 | 2110 | ||
2111 | static void qeth_l3_set_multicast_list(struct net_device *dev) | 2111 | static void qeth_l3_set_multicast_list(struct net_device *dev) |
2112 | { | 2112 | { |
2113 | struct qeth_card *card = netdev_priv(dev); | 2113 | struct qeth_card *card = dev->ml_priv; |
2114 | 2114 | ||
2115 | QETH_DBF_TEXT(TRACE, 3, "setmulti"); | 2115 | QETH_DBF_TEXT(TRACE, 3, "setmulti"); |
2116 | qeth_l3_delete_mc_addresses(card); | 2116 | qeth_l3_delete_mc_addresses(card); |
@@ -2438,7 +2438,7 @@ static int qeth_l3_arp_flush_cache(struct qeth_card *card) | |||
2438 | 2438 | ||
2439 | static int qeth_l3_do_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) | 2439 | static int qeth_l3_do_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) |
2440 | { | 2440 | { |
2441 | struct qeth_card *card = netdev_priv(dev); | 2441 | struct qeth_card *card = dev->ml_priv; |
2442 | struct qeth_arp_cache_entry arp_entry; | 2442 | struct qeth_arp_cache_entry arp_entry; |
2443 | struct mii_ioctl_data *mii_data; | 2443 | struct mii_ioctl_data *mii_data; |
2444 | int rc = 0; | 2444 | int rc = 0; |
@@ -2595,7 +2595,7 @@ static int qeth_l3_hard_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
2595 | u16 *tag; | 2595 | u16 *tag; |
2596 | struct qeth_hdr *hdr = NULL; | 2596 | struct qeth_hdr *hdr = NULL; |
2597 | int elements_needed = 0; | 2597 | int elements_needed = 0; |
2598 | struct qeth_card *card = netdev_priv(dev); | 2598 | struct qeth_card *card = dev->ml_priv; |
2599 | struct sk_buff *new_skb = NULL; | 2599 | struct sk_buff *new_skb = NULL; |
2600 | int ipv = qeth_get_ip_version(skb); | 2600 | int ipv = qeth_get_ip_version(skb); |
2601 | int cast_type = qeth_get_cast_type(card, skb); | 2601 | int cast_type = qeth_get_cast_type(card, skb); |
@@ -2763,7 +2763,7 @@ tx_drop: | |||
2763 | 2763 | ||
2764 | static int qeth_l3_open(struct net_device *dev) | 2764 | static int qeth_l3_open(struct net_device *dev) |
2765 | { | 2765 | { |
2766 | struct qeth_card *card = netdev_priv(dev); | 2766 | struct qeth_card *card = dev->ml_priv; |
2767 | 2767 | ||
2768 | QETH_DBF_TEXT(TRACE, 4, "qethopen"); | 2768 | QETH_DBF_TEXT(TRACE, 4, "qethopen"); |
2769 | if (card->state != CARD_STATE_SOFTSETUP) | 2769 | if (card->state != CARD_STATE_SOFTSETUP) |
@@ -2780,7 +2780,7 @@ static int qeth_l3_open(struct net_device *dev) | |||
2780 | 2780 | ||
2781 | static int qeth_l3_stop(struct net_device *dev) | 2781 | static int qeth_l3_stop(struct net_device *dev) |
2782 | { | 2782 | { |
2783 | struct qeth_card *card = netdev_priv(dev); | 2783 | struct qeth_card *card = dev->ml_priv; |
2784 | 2784 | ||
2785 | QETH_DBF_TEXT(TRACE, 4, "qethstop"); | 2785 | QETH_DBF_TEXT(TRACE, 4, "qethstop"); |
2786 | netif_tx_disable(dev); | 2786 | netif_tx_disable(dev); |
@@ -2792,14 +2792,14 @@ static int qeth_l3_stop(struct net_device *dev) | |||
2792 | 2792 | ||
2793 | static u32 qeth_l3_ethtool_get_rx_csum(struct net_device *dev) | 2793 | static u32 qeth_l3_ethtool_get_rx_csum(struct net_device *dev) |
2794 | { | 2794 | { |
2795 | struct qeth_card *card = netdev_priv(dev); | 2795 | struct qeth_card *card = dev->ml_priv; |
2796 | 2796 | ||
2797 | return (card->options.checksum_type == HW_CHECKSUMMING); | 2797 | return (card->options.checksum_type == HW_CHECKSUMMING); |
2798 | } | 2798 | } |
2799 | 2799 | ||
2800 | static int qeth_l3_ethtool_set_rx_csum(struct net_device *dev, u32 data) | 2800 | static int qeth_l3_ethtool_set_rx_csum(struct net_device *dev, u32 data) |
2801 | { | 2801 | { |
2802 | struct qeth_card *card = netdev_priv(dev); | 2802 | struct qeth_card *card = dev->ml_priv; |
2803 | enum qeth_card_states old_state; | 2803 | enum qeth_card_states old_state; |
2804 | enum qeth_checksum_types csum_type; | 2804 | enum qeth_checksum_types csum_type; |
2805 | 2805 | ||
@@ -2825,7 +2825,7 @@ static int qeth_l3_ethtool_set_rx_csum(struct net_device *dev, u32 data) | |||
2825 | 2825 | ||
2826 | static int qeth_l3_ethtool_set_tso(struct net_device *dev, u32 data) | 2826 | static int qeth_l3_ethtool_set_tso(struct net_device *dev, u32 data) |
2827 | { | 2827 | { |
2828 | struct qeth_card *card = netdev_priv(dev); | 2828 | struct qeth_card *card = dev->ml_priv; |
2829 | 2829 | ||
2830 | if (data) { | 2830 | if (data) { |
2831 | if (card->options.large_send == QETH_LARGE_SEND_NO) { | 2831 | if (card->options.large_send == QETH_LARGE_SEND_NO) { |
@@ -2915,7 +2915,7 @@ static int qeth_l3_setup_netdev(struct qeth_card *card) | |||
2915 | return -ENODEV; | 2915 | return -ENODEV; |
2916 | 2916 | ||
2917 | card->dev->hard_start_xmit = qeth_l3_hard_start_xmit; | 2917 | card->dev->hard_start_xmit = qeth_l3_hard_start_xmit; |
2918 | card->dev->priv = card; | 2918 | card->dev->ml_priv = card; |
2919 | card->dev->tx_timeout = &qeth_tx_timeout; | 2919 | card->dev->tx_timeout = &qeth_tx_timeout; |
2920 | card->dev->watchdog_timeo = QETH_TX_TIMEOUT; | 2920 | card->dev->watchdog_timeo = QETH_TX_TIMEOUT; |
2921 | card->dev->open = qeth_l3_open; | 2921 | card->dev->open = qeth_l3_open; |