]> www.infradead.org Git - users/jedix/linux-maple.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)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Mon, 12 Oct 2015 16:05:02 +0000 (09:05 -0700)
commit36062b3fe8d1e1a1d8dbbf0fe10e02c20cd7e7c0
tree889b9e943114716a46fbedf14df0e0dadcf01cc9
parent6718111324fe5c836d0a533de2dfbf364833dd24
ixgbe: Limit SFP polling rate

Orabug: 21918732

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>
(cherry picked from commit 58e7cd24d474c87763387f606e403012f562760b)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/ixgbe/ixgbe.h
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c