be2net: fail VF link config change via ndo_set_vf_link_state() on BE3/Lancer
authorKalesh AP <kalesh.purayil@emulex.com>
Tue, 20 Jan 2015 08:51:45 +0000 (03:51 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sun, 25 Jan 2015 01:22:42 +0000 (17:22 -0800)
The support for this exists only in skyhawk FW.

Signed-off-by: Kalesh AP <kalesh.purayil@emulex.com>
Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_cmds.c

index fead5c6..9772f49 100644 (file)
@@ -4092,7 +4092,7 @@ int be_cmd_set_logical_link_config(struct be_adapter *adapter,
        int status;
 
        if (BEx_chip(adapter) || lancer_chip(adapter))
-               return 0;
+               return -EOPNOTSUPP;
 
        spin_lock_bh(&adapter->mcc_lock);