net: fec: add interrupt coalescence feature support
authorFugang Duan <B38611@freescale.com>
Tue, 16 Sep 2014 21:18:52 +0000 (05:18 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Sep 2014 19:36:50 +0000 (15:36 -0400)
commitd851b47b22fc4c7b5a739fc5cbc2cbee07adec90
tree44cbdd531de3aee90b15b2d5154020fde2f9b3d8
parentb7bd75cf53e8b65f48b21eec8653326897c29a96
net: fec: add interrupt coalescence feature support

i.MX6 SX support interrupt coalescence feature
By default, init the interrupt coalescing frame count threshold and
timer threshold.

Supply the ethtool interfaces as below for user tuning to improve
enet performance:
rx_max_coalesced_frames
rx_coalesce_usecs
tx_max_coalesced_frames
tx_coalesce_usecs

Signed-off-by: Fugang Duan <B38611@freescale.com>
Signed-off-by: Frank Li <Frank.Li@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fec.h
drivers/net/ethernet/freescale/fec_main.c