enic: Add support to configure hardware interrupt coalesce timers in a platform indep...
authorVasanthy Kolluri <vkolluri@cisco.com>
Fri, 17 Jun 2011 07:56:48 +0000 (07:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Jul 2011 03:43:38 +0000 (20:43 -0700)
commitea7ea65a3b37bf207d5c352ac6254506b3dc3901
tree5eed17f071404155e7a76f8f3415bf031a4d656a
parent3fa2a1df909482cc234524906e4bd30dee3514df
enic: Add support to configure hardware interrupt coalesce timers in a platform independent way

enic driver and the underlying hardware use different units for representing the interrupt coalesce timer.
Driver converts the interrupt coalesce timer in usec to hardware cycles while setting the relevant hardware
registers. The conversion factor can be different for each of the adapter hardware types. So it is dynamically
learnt from the adapter firmware using the devcmd CMD_INTR_COAL_CONVERT. This allows the driver to configure
the hardware interrupt coalesce timers in a platform independent way.

Signed-off-by: Danny Guo <dannguo@cisco.com>
Signed-off-by: Vasanthy Kolluri <vkolluri@cisco.com>
Signed-off-by: Roopa Prabhu <roprabhu@cisco.com>
Signed-off-by: David Wang <dwang2@cisco.com>
Signed-off-by: David S. Miller <davem@conan.davemloft.net>
drivers/net/enic/enic.h
drivers/net/enic/enic_dev.c
drivers/net/enic/enic_dev.h
drivers/net/enic/enic_main.c
drivers/net/enic/enic_res.c
drivers/net/enic/vnic_dev.c
drivers/net/enic/vnic_dev.h
drivers/net/enic/vnic_devcmd.h
drivers/net/enic/vnic_enet.h
drivers/net/enic/vnic_intr.c
drivers/net/enic/vnic_intr.h