ice: Add ethtool private flag to make forcing link down optional
authorBruce Allan <bruce.w.allan@intel.com>
Wed, 19 Dec 2018 18:03:26 +0000 (10:03 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 15 Jan 2019 18:32:59 +0000 (10:32 -0800)
commitab4ab73fc1ec6dec548fa36c5e383ef5faa7b4c1
tree8dcbc39d30188abbf54dfc20b8f8f52358c2316f
parentb6f934f027bbdb53b7e2653b23758e222f3dd65a
ice: Add ethtool private flag to make forcing link down optional

Add new infrastructure for implementing ethtool private flags using the
existing pf->flags bitmap to store them, and add the link-down-on-close
ethtool private flag to optionally bring down the PHY link when the
interface is administratively downed.

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice.h
drivers/net/ethernet/intel/ice/ice_ethtool.c
drivers/net/ethernet/intel/ice/ice_main.c