Skip to content

Commit

Permalink
be2net: don't call vid_config() when there's no vlan config
Browse files Browse the repository at this point in the history
be_vid_config() is called from be_setup() to replay config cmds after
a card reset. Skip calling it when no vlans are configured.

Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Sathya Perla authored and David S. Miller committed Jun 6, 2012
1 parent cbfc607 commit 1d1e9a4
Showing 1 changed file with 2 additions and 1 deletion.
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 @@ -2762,7 +2762,8 @@ static int be_setup(struct be_adapter *adapter)

be_cmd_get_fw_ver(adapter, adapter->fw_ver, NULL);

be_vid_config(adapter, false, 0);
if (adapter->vlans_added)
be_vid_config(adapter, false, 0);

be_set_rx_mode(adapter->netdev);

Expand Down

0 comments on commit 1d1e9a4

Please sign in to comment.