]> Pileus Git - ~andy/linux/blobdiff - drivers/net/bnx2x/bnx2x_ethtool.c
ethtool: allow custom interval for physical identification
[~andy/linux] / drivers / net / bnx2x / bnx2x_ethtool.c
index ad7d91e499f4522eba9b6c1467e14cc0d1d61f27..0a5e88d6ba2c14ea9f31cf99d84f8c3495dbc922 100644 (file)
@@ -2025,7 +2025,7 @@ static int bnx2x_set_phys_id(struct net_device *dev,
 
        switch (state) {
        case ETHTOOL_ID_ACTIVE:
-               return -EINVAL;
+               return 1;       /* cycle on/off once per second */
 
        case ETHTOOL_ID_ON:
                bnx2x_set_led(&bp->link_params, &bp->link_vars,