mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 12:42:02 +00:00
qlcnic: reset loopback mode if promiscous mode setting fails.
If promiscous mode setting fails, reset loopback mode setting in firmware. Signed-off-by: Sucheta Chakraborty <sucheta.chakraborty@qlogic.com> Signed-off-by: Anirban Chakraborty <anirban.chakraborty@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
16e3cf73be
commit
ad567b8f1d
@ -566,7 +566,7 @@ int qlcnic_set_lb_mode(struct qlcnic_adapter *adapter, u8 mode)
|
||||
return -EIO;
|
||||
|
||||
if (qlcnic_nic_set_promisc(adapter, VPORT_MISS_MODE_ACCEPT_ALL)) {
|
||||
qlcnic_set_fw_loopback(adapter, mode);
|
||||
qlcnic_set_fw_loopback(adapter, 0);
|
||||
return -EIO;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user