qeth: convert to net_device_ops
qeth_l2, qeth_l3 convert to net_device_ops. qeth_l3 remove vlan neigh_setup hack since it does not work any longer with the new net_device_ops. Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
cc883d16c3
commit
8403b13c76
@@ -918,6 +918,21 @@ static struct ethtool_ops qeth_l2_osn_ops = {
|
||||
.get_drvinfo = qeth_core_get_drvinfo,
|
||||
};
|
||||
|
||||
static struct net_device_ops qeth_l2_netdev_ops = {
|
||||
.ndo_open = qeth_l2_open,
|
||||
.ndo_stop = qeth_l2_stop,
|
||||
.ndo_get_stats = qeth_get_stats,
|
||||
.ndo_start_xmit = qeth_l2_hard_start_xmit,
|
||||
.ndo_validate_addr = eth_validate_addr,
|
||||
.ndo_set_multicast_list = qeth_l2_set_multicast_list,
|
||||
.ndo_do_ioctl = qeth_l2_do_ioctl,
|
||||
.ndo_set_mac_address = qeth_l2_set_mac_address,
|
||||
.ndo_change_mtu = qeth_change_mtu,
|
||||
.ndo_vlan_rx_add_vid = qeth_l2_vlan_rx_add_vid,
|
||||
.ndo_vlan_rx_kill_vid = qeth_l2_vlan_rx_kill_vid,
|
||||
.ndo_tx_timeout = qeth_tx_timeout,
|
||||
};
|
||||
|
||||
static int qeth_l2_setup_netdev(struct qeth_card *card)
|
||||
{
|
||||
switch (card->info.type) {
|
||||
@@ -939,19 +954,9 @@ static int qeth_l2_setup_netdev(struct qeth_card *card)
|
||||
return -ENODEV;
|
||||
|
||||
card->dev->ml_priv = card;
|
||||
card->dev->tx_timeout = &qeth_tx_timeout;
|
||||
card->dev->watchdog_timeo = QETH_TX_TIMEOUT;
|
||||
card->dev->open = qeth_l2_open;
|
||||
card->dev->stop = qeth_l2_stop;
|
||||
card->dev->hard_start_xmit = qeth_l2_hard_start_xmit;
|
||||
card->dev->do_ioctl = qeth_l2_do_ioctl;
|
||||
card->dev->get_stats = qeth_get_stats;
|
||||
card->dev->change_mtu = qeth_change_mtu;
|
||||
card->dev->set_multicast_list = qeth_l2_set_multicast_list;
|
||||
card->dev->vlan_rx_kill_vid = qeth_l2_vlan_rx_kill_vid;
|
||||
card->dev->vlan_rx_add_vid = qeth_l2_vlan_rx_add_vid;
|
||||
card->dev->set_mac_address = qeth_l2_set_mac_address;
|
||||
card->dev->mtu = card->info.initial_mtu;
|
||||
card->dev->netdev_ops = &qeth_l2_netdev_ops;
|
||||
if (card->info.type != QETH_CARD_TYPE_OSN)
|
||||
SET_ETHTOOL_OPS(card->dev, &qeth_l2_ethtool_ops);
|
||||
else
|
||||
|
Reference in New Issue
Block a user