Skip to content

Commit

Permalink
be2net: call ENABLE_VF cmd for Skyhawk-R too
Browse files Browse the repository at this point in the history
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: Vasundhara Volam <vasundhara.volam@emulex.com>
Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Vasundhara Volam authored and David S. Miller committed Oct 1, 2013
1 parent 30f3fe4 commit 0599863
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/emulex/benet/be_cmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -3511,7 +3511,7 @@ int be_cmd_enable_vf(struct be_adapter *adapter, u8 domain)
struct be_cmd_enable_disable_vf *req;
int status;

if (!lancer_chip(adapter))
if (BEx_chip(adapter))
return 0;

spin_lock_bh(&adapter->mcc_lock);
Expand Down
3 changes: 2 additions & 1 deletion drivers/net/ethernet/emulex/benet/be_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2923,7 +2923,8 @@ static int be_vf_setup(struct be_adapter *adapter)
goto err;
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) {
Expand Down

0 comments on commit 0599863

Please sign in to comment.