]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerChuck Anderson <chuck.anderson@oracle.com>
Tue, 7 Feb 2012 02:59:39 +0000 (18:59 -0800)
commit6e2a02ab0e94f415b6f8a97a95e38978d19e33a9
treeedd4e28a98ba1235ff7ad2365358afe1b4b97c36
parent2a8dcb80f27f06d021bf1156685d808dc69af60f
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>
(cherry picked from commit ea7ea65a3b37bf207d5c352ac6254506b3dc3901)

Signed-off-by: Chuck Anderson <chuck.anderson@oracle.com>
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