ixgbe: handle parameters for tx and rx EITR, no div0
authorShannon Nelson <shannon.nelson@intel.com>
Tue, 24 Nov 2009 18:51:06 +0000 (18:51 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 29 Nov 2009 08:33:58 +0000 (00:33 -0800)
commitcfb3f91af49dff9b50de6929dc4de06100c4cfa8
treefe3147cc153957299c0151b8c957014190b6685a
parent429d33ace5ce6122817f8abe9d170eaa55dc3af9
ixgbe: handle parameters for tx and rx EITR, no div0

The driver was doing a divide by zero when adjusting tx-usecs.
This patch removes the divide by zero code and changes the logic slightly
to ignore tx-usecs in the case of shared TxRx vectors.

Cc: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Shannon Nelson <shannon.nelson@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