Commit 0599863d authored by Vasundhara Volam's avatar Vasundhara Volam Committed by David S. Miller

be2net: call ENABLE_VF cmd for Skyhawk-R too

This cmd needs to be sent to FW when enabling VFs (currently used only
for Lancer.) Also, avoid calling the cmd when driver loads and finds that
VFs are already enabled from a previous load.
Signed-off-by: default avatarVasundhara Volam <vasundhara.volam@emulex.com>
Signed-off-by: default avatarSathya Perla <sathya.perla@emulex.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 30f3fe45
...@@ -3511,7 +3511,7 @@ int be_cmd_enable_vf(struct be_adapter *adapter, u8 domain) ...@@ -3511,7 +3511,7 @@ int be_cmd_enable_vf(struct be_adapter *adapter, u8 domain)
struct be_cmd_enable_disable_vf *req; struct be_cmd_enable_disable_vf *req;
int status; int status;
if (!lancer_chip(adapter)) if (BEx_chip(adapter))
return 0; return 0;
spin_lock_bh(&adapter->mcc_lock); spin_lock_bh(&adapter->mcc_lock);
......
...@@ -2923,7 +2923,8 @@ static int be_vf_setup(struct be_adapter *adapter) ...@@ -2923,7 +2923,8 @@ static int be_vf_setup(struct be_adapter *adapter)
goto err; goto err;
vf_cfg->def_vid = def_vlan; vf_cfg->def_vid = def_vlan;
be_cmd_enable_vf(adapter, vf + 1); if (!old_vfs)
be_cmd_enable_vf(adapter, vf + 1);
} }
if (!old_vfs) { if (!old_vfs) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment