]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ixgbe: Limit SFP polling rate
authorMark Rustad <mark.d.rustad@intel.com>
Sat, 8 Aug 2015 23:18:48 +0000 (16:18 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 24 Sep 2015 05:43:22 +0000 (22:43 -0700)
commit58e7cd24d474c87763387f606e403012f562760b
treef2476ebdf75644b95754d5a06368cdd7b6211b4d
parent69eec0c2fa8781a6abae96af1f11069e1965cbfe
ixgbe: Limit SFP polling rate

Reduce the frequency of polling for SFP modules. Because the
service task sometimes runs at high rates, we can poll for
SFPs too often. When an SFP is not present, the I2C timeouts
that result are very costly. So, prevent SFP polling from
being done more than once every two seconds. To reduce latency,
the poll time is cleared in a couple of cases to permit the
next service task execution to poll the SFP module.

Signed-off-by: Mark Rustad <mark.d.rustad@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe.h
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c