ixgbe: check for WoL support in single function
This patch consolidates the case logic for checking whether a device supports WoL into a single place. Previously ethtool and probe used similar logic that was copied and maintained separately. This patch encapsulates the core logic into a function so that a user only has to update one place. Signed-off-by:Jacob Keller <jacob.e.keller@intel.com> Tested-by:
Stephen Ko <stephen.s.ko@intel.com> Signed-off-by:
Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Showing
- drivers/net/ethernet/intel/ixgbe/ixgbe.h 2 additions, 0 deletionsdrivers/net/ethernet/intel/ixgbe/ixgbe.h
- drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c 5 additions, 46 deletionsdrivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c
- drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 55 additions, 33 deletionsdrivers/net/ethernet/intel/ixgbe/ixgbe_main.c
Please register or sign in to comment