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 0f7b6a3a2e68240e7aa4d287ce5e22aa6ee5069a..2a978008fd6efb780e05a64cbad4ef8f877bb19f 100644 (file)
@@ -1830,7 +1830,6 @@ static int ixgbe_wol_exclusion(struct ixgbe_adapter *adapter,
                break;
        default:
                wol->supported = 0;
-               retval = 0;
        }
 
        return retval;