netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 01/11] xtsonic: convert to net_device_ops
@ 2009-04-11 17:30 Alexander Beregalov
  2009-04-11 17:37 ` [PATCH 02/11] tsi108_eth: " Alexander Beregalov
                   ` (10 more replies)
  0 siblings, 11 replies; 24+ messages in thread
From: Alexander Beregalov @ 2009-04-11 17:30 UTC (permalink / raw)
  To: netdev



Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
---

 drivers/net/xtsonic.c |   19 +++++++++++++------
 1 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/drivers/net/xtsonic.c b/drivers/net/xtsonic.c
index a12a721..5a4ad15 100644
--- a/drivers/net/xtsonic.c
+++ b/drivers/net/xtsonic.c
@@ -108,6 +108,18 @@ static int xtsonic_close(struct net_device *dev)
 	return err;
 }
 
+static const struct net_device_ops xtsonic_netdev_ops = {
+	.ndo_open		= xtsonic_open,
+	.ndo_stop		= xtsonic_close,
+	.ndo_start_xmit		= sonic_send_packet,
+	.ndo_get_stats		= sonic_get_stats,
+	.ndo_set_multicast_list	= sonic_multicast_list,
+	.ndo_tx_timeout		= sonic_tx_timeout,
+	.ndo_validate_addr	= eth_validate_addr,
+	.ndo_change_mtu		= eth_change_mtu,
+	.ndo_set_mac_address	= eth_mac_addr,
+};
+
 static int __init sonic_probe1(struct net_device *dev)
 {
 	static unsigned version_printed = 0;
@@ -205,12 +217,7 @@ static int __init sonic_probe1(struct net_device *dev)
 	lp->rra_laddr = lp->rda_laddr + (SIZEOF_SONIC_RD * SONIC_NUM_RDS
 					 * SONIC_BUS_SCALE(lp->dma_bitmode));
 
-	dev->open = xtsonic_open;
-	dev->stop = xtsonic_close;
-	dev->hard_start_xmit	= sonic_send_packet;
-	dev->get_stats		= sonic_get_stats;
-	dev->set_multicast_list	= &sonic_multicast_list;
-	dev->tx_timeout		= sonic_tx_timeout;
+	dev->netdev_ops		= &xtsonic_netdev_ops;
 	dev->watchdog_timeo	= TX_TIMEOUT;
 
 	/*

^ permalink raw reply related	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2009-04-13 23:19 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-11 17:30 [PATCH 01/11] xtsonic: convert to net_device_ops Alexander Beregalov
2009-04-11 17:37 ` [PATCH 02/11] tsi108_eth: " Alexander Beregalov
2009-04-13 22:19   ` David Miller
2009-04-11 17:38 ` [PATCH 03/11] tc35815: " Alexander Beregalov
2009-04-13 22:19   ` David Miller
2009-04-11 17:39 ` [PATCH 04/11] sun3_82586: " Alexander Beregalov
2009-04-13 22:19   ` David Miller
2009-04-11 17:40 ` [PATCH 05/11] sh_eth: " Alexander Beregalov
2009-04-13 22:19   ` David Miller
2009-04-11 17:41 ` [PATCH 06/11] macsonic: " Alexander Beregalov
2009-04-13 22:19   ` David Miller
2009-04-11 17:42 ` [PATCH 07/11] macb: " Alexander Beregalov
2009-04-13 22:19   ` David Miller
2009-04-11 17:43 ` [PATCH 08/11] mac89x0: " Alexander Beregalov
2009-04-13 22:19   ` David Miller
2009-04-11 17:44 ` [PATCH 09/11] isa-skeleton: " Alexander Beregalov
2009-04-13 22:19   ` David Miller
2009-04-11 17:44 ` [PATCH 10/11] ioc3-eth: " Alexander Beregalov
2009-04-13 22:19   ` David Miller
2009-04-11 17:45 ` [PATCH 11/11] eth_v10: " Alexander Beregalov
2009-04-13 22:20   ` David Miller
2009-04-13 22:19 ` [PATCH 01/11] xtsonic: " David Miller
2009-04-13 23:12   ` Alexander Beregalov
2009-04-13 23:19     ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).