From: Stephen Hemminger <shemminger@vyatta.com>
To: krh@redhat.com, stefanr@s5r6.in-berlin.de,
David Miller <davem@davemloft.net>
Cc: linux1394-devel@lists.sourceforge.net, netdev@vger.kernel.org
Subject: [PATCH 1/3] ieee1394: convert to net_device_ops
Date: Tue, 6 Jan 2009 14:54:56 -0800 [thread overview]
Message-ID: <20090106145456.37ecedaa@extreme> (raw)
Convert to net_device_ops.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.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 = ðer1394_header_ops;
+ dev->netdev_ops = ðer1394_netdev_ops;
SET_ETHTOOL_OPS(dev, ðtool_ops);
next reply other threads:[~2009-01-06 22:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-06 22:54 Stephen Hemminger [this message]
2009-01-06 22:55 ` [PATCH 2/3] ieee1394: remove unneeded last_rx Stephen Hemminger
2009-01-06 22:56 ` [PATCH 3/3] ieee1394: use internal network device stats Stephen Hemminger
2009-01-06 23:23 ` Stefan Richter
2009-01-06 23:22 ` [PATCH 2/3] ieee1394: remove unneeded last_rx Stefan Richter
2009-01-06 23:20 ` [PATCH 1/3] ieee1394: convert to net_device_ops Stefan Richter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090106145456.37ecedaa@extreme \
--to=shemminger@vyatta.com \
--cc=davem@davemloft.net \
--cc=krh@redhat.com \
--cc=linux1394-devel@lists.sourceforge.net \
--cc=netdev@vger.kernel.org \
--cc=stefanr@s5r6.in-berlin.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).