aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2008-11-21 20:34:09 -0500
committerDavid S. Miller <davem@davemloft.net>2008-11-21 20:34:09 -0500
commit2f30b1f666b8fa13eb7a254243066e6b77b583f7 (patch)
tree41d84ecb1271a8a27f88c8052321923025d96660
parentc3ecb9f3235ce6e39249690cdd24d678894c2c72 (diff)
tehuti: convert to net_device_ops
Convert driver to new net_device_ops. Compile tested only. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/tehuti.c27
1 files changed, 16 insertions, 11 deletions
diff --git a/drivers/net/tehuti.c b/drivers/net/tehuti.c
index 7e36a10423f9..5b83fbb02013 100644
--- a/drivers/net/tehuti.c
+++ b/drivers/net/tehuti.c
@@ -1885,6 +1885,21 @@ static void bdx_tx_push_desc_safe(struct bdx_priv *priv, void *data, int size)
1885 RET(); 1885 RET();
1886} 1886}
1887 1887
1888static const struct net_device_ops bdx_netdev_ops = {
1889 .ndo_open = bdx_open,
1890 .ndo_stop = bdx_close,
1891 .ndo_start_xmit = bdx_tx_transmit,
1892 .ndo_validate_addr = eth_validate_addr,
1893 .ndo_do_ioctl = bdx_ioctl,
1894 .ndo_set_multicast_list = bdx_setmulti,
1895 .ndo_get_stats = bdx_get_stats,
1896 .ndo_change_mtu = bdx_change_mtu,
1897 .ndo_set_mac_address = bdx_set_mac,
1898 .ndo_vlan_rx_register = bdx_vlan_rx_register,
1899 .ndo_vlan_rx_add_vid = bdx_vlan_rx_add_vid,
1900 .ndo_vlan_rx_kill_vid = bdx_vlan_rx_kill_vid,
1901};
1902
1888/** 1903/**
1889 * bdx_probe - Device Initialization Routine 1904 * bdx_probe - Device Initialization Routine
1890 * @pdev: PCI device information struct 1905 * @pdev: PCI device information struct
@@ -1994,18 +2009,8 @@ bdx_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
1994 goto err_out_iomap; 2009 goto err_out_iomap;
1995 } 2010 }
1996 2011
1997 ndev->open = bdx_open; 2012 ndev->netdev_ops = &bdx_netdev_ops;
1998 ndev->stop = bdx_close;
1999 ndev->hard_start_xmit = bdx_tx_transmit;
2000 ndev->do_ioctl = bdx_ioctl;
2001 ndev->set_multicast_list = bdx_setmulti;
2002 ndev->get_stats = bdx_get_stats;
2003 ndev->change_mtu = bdx_change_mtu;
2004 ndev->set_mac_address = bdx_set_mac;
2005 ndev->tx_queue_len = BDX_NDEV_TXQ_LEN; 2013 ndev->tx_queue_len = BDX_NDEV_TXQ_LEN;
2006 ndev->vlan_rx_register = bdx_vlan_rx_register;
2007 ndev->vlan_rx_add_vid = bdx_vlan_rx_add_vid;
2008 ndev->vlan_rx_kill_vid = bdx_vlan_rx_kill_vid;
2009 2014
2010 bdx_ethtool_ops(ndev); /* ethtool interface */ 2015 bdx_ethtool_ops(ndev); /* ethtool interface */
2011 2016