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)
commitbb7d92e3e3049e22b5807ac559a72b38fad5f499
tree2c0868d909efc6d8c71252382640399192617c34
parentb72061a3cb0f1c5aa3f919e2dadb4a1631773e7a
sh-eth: use netdev stats structure and fix dma_map_single

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>
drivers/net/ethernet/renesas/sh_eth.c
drivers/net/ethernet/renesas/sh_eth.h