mv643xx_eth: rework interrupt coalescing, and export via ethtool
authorLennert Buytenhek <buytenh@wantstofly.org>
Thu, 12 Feb 2009 14:07:09 +0000 (14:07 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Feb 2009 07:43:54 +0000 (23:43 -0800)
commit3e5080344e95c0861a7ca494288593023ee383c6
tree7660366975710f3577a0e9a110de9fc84178f925
parent6bdf576e4b068e86381280c58393cad42ffc8cc8
mv643xx_eth: rework interrupt coalescing, and export via ethtool

This patch:
- increases the precision of the receive/transmit interrupt
  coalescing register value computations by using 64bit temporaries;
- adds functions to read the current hardware coalescing register
  values and convert them back to usecs;
- exports the {get,set} {rx,tx} coal methods via the standard
  ethtool coalescing interface.

Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/mv643xx_eth.c