ixgbe: fix issues setting rx-usecs with legacy interrupts
authorDon Skidmore <donald.c.skidmore@intel.com>
Tue, 11 Aug 2009 13:18:14 +0000 (13:18 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Aug 2009 23:33:02 +0000 (16:33 -0700)
commit237057ad3fe5644fa471be474a160de2fc2e5870
treec43d3273ff97a2151fba336667b36bca2eb6b368
parent993e6f2fd487e2acddd711f79cf48f3420731382
ixgbe: fix issues setting rx-usecs with legacy interrupts

Currently setting rx-usecs when the interface is in legacy interrupt
mode it is not immediate.  We were only setting EITR for each MSIx
vector and since this count would be zero for legacy mode it wasn't
set until after a reset.  This patch corrects that by checking what
mode we are in and then setting EITR accordingly.

Signed-off-by: Don Skidmore <donald.skidmore@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ixgbe/ixgbe_ethtool.c