diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2009-01-07 18:09:07 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-07 18:09:07 -0800 |
commit | c4a80d7e67b1a084e061853d39a1ba6f500027fd (patch) | |
tree | 5a36f7dbb3c9e466114e1e2948e258da3b5a1ef8 /drivers/uwb/i1480/i1480u-wlp/rx.c | |
parent | 5ec38f3023217fc164763d2a5505dee806d84223 (diff) |
uwb: convert devices to net_device_ops
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Acked-by: David Vrabel <david.vrabel@csr.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/uwb/i1480/i1480u-wlp/rx.c')
-rw-r--r-- | drivers/uwb/i1480/i1480u-wlp/rx.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/uwb/i1480/i1480u-wlp/rx.c b/drivers/uwb/i1480/i1480u-wlp/rx.c index 34f4cf9a7d3..25a2758beb6 100644 --- a/drivers/uwb/i1480/i1480u-wlp/rx.c +++ b/drivers/uwb/i1480/i1480u-wlp/rx.c @@ -167,7 +167,7 @@ do { \ do { \ if (printk_ratelimit()) \ dev_err(&i1480u->usb_iface->dev, msg); \ - i1480u->stats.rx_dropped++; \ + i1480u->net_dev->stats.rx_dropped++; \ } while (0) @@ -193,10 +193,8 @@ void i1480u_skb_deliver(struct i1480u *i1480u) if (!should_parse) goto out; i1480u->rx_skb->protocol = eth_type_trans(i1480u->rx_skb, net_dev); - i1480u->stats.rx_packets++; - i1480u->stats.rx_bytes += i1480u->rx_untd_pkt_size; - net_dev->last_rx = jiffies; - /* FIXME: flow control: check netif_rx() retval */ + net_dev->stats.rx_packets++; + net_dev->stats.rx_bytes += i1480u->rx_untd_pkt_size; netif_rx(i1480u->rx_skb); /* deliver */ out: |