From: Kalesh AP Date: Tue, 20 Jan 2015 08:51:45 +0000 (-0500) Subject: be2net: fail VF link config change via ndo_set_vf_link_state() on BE3/Lancer X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=18fd602564d3827125aa5c7a4eab6b42da3650d1;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git be2net: fail VF link config change via ndo_set_vf_link_state() on BE3/Lancer The support for this exists only in skyhawk FW. Signed-off-by: Kalesh AP Signed-off-by: Sathya Perla Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/emulex/benet/be_cmds.c b/drivers/net/ethernet/emulex/benet/be_cmds.c index fead5c65a4f0..9772f49a4837 100644 --- a/drivers/net/ethernet/emulex/benet/be_cmds.c +++ b/drivers/net/ethernet/emulex/benet/be_cmds.c @@ -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);