]> git.baikalelectronics.ru Git - kernel.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)
commit44f924c1f3449b309f0926641af72fb4bb59c103
treef2476ebdf75644b95754d5a06368cdd7b6211b4d
parent15a86a6a514e57f12fc891fbcb0c49da201d8922
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