Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1d1e9a46 authored by Sathya Perla's avatar Sathya Perla Committed by David S. Miller
Browse files

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: default avatarSathya Perla <sathya.perla@emulex.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent cbfc6071
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2762,6 +2762,7 @@ static int be_setup(struct be_adapter *adapter)

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

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

	be_set_rx_mode(adapter->netdev);