Commit 3f326d42 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by Jeff Garzik

[PATCH] dummy: use netdev_priv

Can use netdev_priv in dummy device.
Signed-off-by: default avatarStephen Hemminger <shemminger@osdl.org>
parent d18291da
......@@ -77,7 +77,7 @@ static void __init dummy_setup(struct net_device *dev)
static int dummy_xmit(struct sk_buff *skb, struct net_device *dev)
{
struct net_device_stats *stats = dev->priv;
struct net_device_stats *stats = netdev_priv(dev);
stats->tx_packets++;
stats->tx_bytes+=skb->len;
......@@ -88,7 +88,7 @@ static int dummy_xmit(struct sk_buff *skb, struct net_device *dev)
static struct net_device_stats *dummy_get_stats(struct net_device *dev)
{
return dev->priv;
return netdev_priv(dev);
}
static struct net_device **dummies;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment