lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 6 Jan 2009 14:54:56 -0800
From:	Stephen Hemminger <shemminger@...tta.com>
To:	krh@...hat.com, stefanr@...6.in-berlin.de,
	David Miller <davem@...emloft.net>
Cc:	linux1394-devel@...ts.sourceforge.net, netdev@...r.kernel.org
Subject: [PATCH 1/3] ieee1394: convert to net_device_ops

Convert to net_device_ops.

Signed-off-by: Stephen Hemminger <shemminger@...tta.com>

---
My goal is to have all drivers found using make allmodconfig using net_device_ops
by 2.6.28-rc2

--- a/drivers/ieee1394/eth1394.c	2009-01-03 20:19:30.123514679 -0800
+++ b/drivers/ieee1394/eth1394.c	2009-01-03 20:21:51.018766544 -0800
@@ -516,16 +516,20 @@ static const struct header_ops ether1394
 	.parse		= ether1394_header_parse,
 };
 
+static const struct net_device_ops ether1394_netdev_ops = {
+	.ndo_open	= ether1394_open,
+	.ndo_stop	= ether1394_stop,
+	.ndo_start_xmit	= ether1394_tx,
+	.ndo_get_stats	= ether1394_stats,
+	.ndo_tx_timeout	= ether1394_tx_timeout,
+	.ndo_change_mtu	= ether1394_change_mtu,
+};
+
 static void ether1394_init_dev(struct net_device *dev)
 {
-	dev->open		= ether1394_open;
-	dev->stop		= ether1394_stop;
-	dev->hard_start_xmit	= ether1394_tx;
-	dev->get_stats		= ether1394_stats;
-	dev->tx_timeout		= ether1394_tx_timeout;
-	dev->change_mtu		= ether1394_change_mtu;
 
 	dev->header_ops		= &ether1394_header_ops;
+	dev->netdev_ops		= &ether1394_netdev_ops;
 
 	SET_ETHTOOL_OPS(dev, &ethtool_ops);
 
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ