]> git.karo-electronics.de Git - karo-tx-linux.git/commit
i40e: add switch for link polling
authorShannon Nelson <shannon.nelson@intel.com>
Thu, 27 Aug 2015 15:42:40 +0000 (11:42 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 8 Oct 2015 22:58:23 +0000 (15:58 -0700)
commit9ac77266379d070c6d140ad44f86a99936497eeb
treefc024fcaa4a87e0594f28f180edf09d3971d0f70
parentc156f856ad8ba4f71bcdb2c92ba1a9effaa29ac1
i40e: add switch for link polling

There's been some need for controlling the periodic link polling for
debugging link issues.  This patch enables switching it off and on
through an ethtool private flag.  The link poll remains on by default,
but can be turned off with
ethtool --set-priv-flags p261p1 LinkPolling off
and later turned back on with
ethtool --set-priv-flags p261p1 LinkPolling on

To check the current status, use
ethtool --show-priv-flags p261p1

Change-ID: I32e4ab654ff3eec90a06cf144899971b82d71c40
Signed-off-by: Shannon Nelson <shannon.nelson@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e.h
drivers/net/ethernet/intel/i40e/i40e_ethtool.c
drivers/net/ethernet/intel/i40e/i40e_main.c