• Andy Gospodarek's avatar
    ixgbe: only enable WoL for magic packet by default · 9417c464
    Andy Gospodarek authored
    Martin Wilck <martin.wilck@ts.fujitsu.com> reported that systems using
    the ixgbe-driver that were capable of WoL were rebooting almost as soon
    as they were shut down.  This is because the default WoL settings
    enabled magic packet, broadcast, unicast, and multicast.
    
    Other Intel devices seem to use the stored eeprom value for initial WoL
    capabilities.  The 82578DM (e1000e) and 82576 (igb) the devices I looked
    at had only the magic packet enabled in the eeprom, so that seems
    appropriate on ixgbe-based devices as well.  I set the WoL options on my
    82578DM to be the same default as the ixgbe devices (umbg) and saw the
    same as Martin -- almost as soon as my box shutdown, it booted again.
    
    This patch changes the default to only be the magic packet.  This is the
    same as the default for most Intel and non-Intel hardware currently
    upstream.
    Signed-off-by: default avatarAndy Gospodarek <andy@greyhouse.net>
    CC: Martin Wilck <martin.wilck@ts.fujitsu.com>
    Tested-by: default avatarPhil Schmitt <phillip.j.schmitt@intel.com>
    Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
    9417c464
ixgbe_main.c 214 KB