ixgbe: Not allow 8259x unsupported wol options change from ethtool
authorMallikarjuna R Chilakala <mallikarjuna.chilakala@intel.com>
Thu, 2 Jul 2009 12:51:10 +0000 (12:51 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 4 Jul 2009 02:11:11 +0000 (19:11 -0700)
Wake-on-lan is currently only supported by 82599 KX4 devices, in all
other cases return a proper value from ixgbe_wol_exclusion function call.
Otherwise from ethtool we will be able to change wol options of
unsupported 8259x devices.

Signed-off-by: Mallikarjuna R Chilakala <mallikarjuna.chilakala@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

index 0f7b6a3..2a97800 100644 (file)
@@ -1830,7 +1830,6 @@ static int ixgbe_wol_exclusion(struct ixgbe_adapter *adapter,
                break;
        default:
                wol->supported = 0;
-               retval = 0;
        }
 
        return retval;