be2net: don't call vid_config() when there's no vlan config

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>
This commit is contained in:
Sathya Perla 2012-06-05 19:37:17 +00:00 committed by David S. Miller
parent cbfc60717b
commit 1d1e9a467c

View file

@ -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);