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:
parent
cbfc60717b
commit
1d1e9a467c
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue