]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ixgbe: only enable WoL for magic packet by default
authorAndy Gospodarek <andy@greyhouse.net>
Sat, 16 Jul 2011 07:31:33 +0000 (07:31 +0000)
committerJoe Jin <joe.jin@oracle.com>
Fri, 3 Feb 2012 01:21:06 +0000 (09:21 +0800)
commita7526aa2f2358d71a5f755d25b09c9f40951770f
tree6884f9f4e02fa72869c572dd35e5dd08672c1a13
parenta4a0f71488a2c2590b70a2a66a71930d24a42501
ixgbe: only enable WoL for magic packet by default

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: Andy Gospodarek <andy@greyhouse.net>
CC: Martin Wilck <martin.wilck@ts.fujitsu.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
(cherry picked from commit 9417c464ba834ae29982fcd71bc59dc8e734327c)

Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/ixgbe/ixgbe_main.c