From: Ralf Baechle DL5RB <ralf@linux-mips.org>
To: Jeff Garzik <jgarzik@pobox.com>
Cc: linux-hams@vger.kernel.org
Subject: Re: [PATCH 2/9] Use netdev_priv in YAM driver
Date: Sat, 5 Feb 2005 18:58:34 +0000 [thread overview]
Message-ID: <20050205185834.GA3203@linux-mips.org> (raw)
In-Reply-To: <420063BE.5030707@pobox.com>
On Wed, Feb 02, 2005 at 12:23:10AM -0500, Jeff Garzik wrote:
> applied patches 2-9 to netdev-2.6 queue (thus -mm, etc.).
>
> Not sure where patch #1 went, I don't see it (unless #1 is the reformat
> patch)
#1 did touch only the encapsulation pseudo devices provided by the NETROM
and ROSE network protocols in net/netrom and net/rose so I did cc only to
netdev. Thought you'd not care. In case you do, it's attached below.
Ralf
netrom/nr_dev.c | 8 ++++----
rose/rose_dev.c | 6 +++---
2 files changed, 7 insertions(+), 7 deletions(-)
Index: bk-afu/net/netrom/nr_dev.c
===================================================================
--- bk-afu.orig/net/netrom/nr_dev.c 2005-02-04 23:40:49.102007960 +0000
+++ bk-afu/net/netrom/nr_dev.c 2005-02-04 23:40:53.618321376 +0000
@@ -46,7 +46,7 @@
int nr_rx_ip(struct sk_buff *skb, struct net_device *dev)
{
- struct net_device_stats *stats = (struct net_device_stats *)dev->priv;
+ struct net_device_stats *stats = netdev_priv(dev);
if (!netif_running(dev)) {
stats->rx_errors++;
@@ -73,7 +73,7 @@
static int nr_rebuild_header(struct sk_buff *skb)
{
struct net_device *dev = skb->dev;
- struct net_device_stats *stats = (struct net_device_stats *)dev->priv;
+ struct net_device_stats *stats = netdev_priv(dev);
struct sk_buff *skbn;
unsigned char *bp = skb->data;
int len;
@@ -186,7 +186,7 @@
static int nr_xmit(struct sk_buff *skb, struct net_device *dev)
{
- struct net_device_stats *stats = (struct net_device_stats *)dev->priv;
+ struct net_device_stats *stats = netdev_priv(dev);
dev_kfree_skb(skb);
stats->tx_errors++;
return 0;
@@ -194,7 +194,7 @@
static struct net_device_stats *nr_get_stats(struct net_device *dev)
{
- return (struct net_device_stats *)dev->priv;
+ return netdev_priv(dev);
}
void nr_setup(struct net_device *dev)
Index: bk-afu/net/rose/rose_dev.c
===================================================================
--- bk-afu.orig/net/rose/rose_dev.c 2005-02-04 23:40:49.101008112 +0000
+++ bk-afu/net/rose/rose_dev.c 2005-02-04 23:40:53.619321224 +0000
@@ -57,7 +57,7 @@
static int rose_rebuild_header(struct sk_buff *skb)
{
struct net_device *dev = skb->dev;
- struct net_device_stats *stats = (struct net_device_stats *)dev->priv;
+ struct net_device_stats *stats = netdev_priv(dev);
unsigned char *bp = (unsigned char *)skb->data;
struct sk_buff *skbn;
@@ -117,7 +117,7 @@
static int rose_xmit(struct sk_buff *skb, struct net_device *dev)
{
- struct net_device_stats *stats = (struct net_device_stats *)dev->priv;
+ struct net_device_stats *stats = netdev_priv(dev);
if (!netif_running(dev)) {
printk(KERN_ERR "ROSE: rose_xmit - called when iface is down\n");
@@ -130,7 +130,7 @@
static struct net_device_stats *rose_get_stats(struct net_device *dev)
{
- return (struct net_device_stats *)dev->priv;
+ return netdev_priv(dev);
}
void rose_setup(struct net_device *dev)
next prev parent reply other threads:[~2005-02-05 18:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-30 21:26 [PATCH 2/9] Use netdev_priv in YAM driver Ralf Baechle DL5RB
2005-02-02 5:23 ` Jeff Garzik
2005-02-05 18:58 ` Ralf Baechle DL5RB [this message]
2005-02-05 19:15 ` Jeff Garzik
2005-02-05 19:15 ` Ralf Baechle DL5RB
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=20050205185834.GA3203@linux-mips.org \
--to=ralf@linux-mips.org \
--cc=jgarzik@pobox.com \
--cc=linux-hams@vger.kernel.org \
/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