sh-eth: use netdev stats structure and fix dma_map_single
authorEric Dumazet <eric.dumazet@gmail.com>
Mon, 6 Feb 2012 22:17:21 +0000 (22:17 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Feb 2012 18:38:57 +0000 (13:38 -0500)
No need to maintain a parallel net_device_stats structure in
sh_eth_private, since we have a generic one in netdev

Fix two dma_map_single() incorrect parameters, passing skb->tail instead
of skb->data. Seems that there is no corresponding dmap_unmap_single()
calls for the moment in this driver.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Tested-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found