]> 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)
commit32fbb69df4dfa093e40dd21195d9c95d5615f102
treef2476ebdf75644b95754d5a06368cdd7b6211b4d
parent9f916f28ecf6df51ab149fe52695c1518b38547c
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