From: Sucheta Chakraborty Date: Fri, 28 Oct 2011 12:57:12 +0000 (+0000) Subject: qlcnic: reset loopback mode if promiscous mode setting fails. X-Git-Tag: v3.2-rc1~113^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ad567b8f1d1e39bdf622866a910f1d52d2be3a0a;p=profile%2Fcommon%2Fplatform%2Fkernel%2Flinux-artik7.git 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 Signed-off-by: Anirban Chakraborty Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c index 74e9d7b..bcb81e4 100644 --- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c +++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c @@ -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; }