ixgbe: only allow WOL for 82599 KX4 NIC
authorAlexander Duyck <alexander.h.duyck@intel.com>
Wed, 8 Apr 2009 13:20:50 +0000 (13:20 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Apr 2009 08:43:14 +0000 (01:43 -0700)
commitd6c519e12984d26d96b91e4482280acbba0e0a22
tree2a2aa35b91803502c55d105021c6dc9f397cb25b
parent87c1201708381c2791caa78a2caf217778633277
ixgbe: only allow WOL for 82599 KX4 NIC

All NICs were reporting WOL support when only the KX4 NIC is capable of
supporting WOL.  This patch adds a function to check for and exclude all
non-WOL capable nics from enabling WOL in ethtool.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Acked-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ixgbe/ixgbe_ethtool.c