Commit 646779f1 authored by Sritej Velaga's avatar Sritej Velaga Committed by David S. Miller

qlcnic: Stop pause ctrl frames on fw hang.

When firmware hang is detected, fw should stop sending pause control frames.
Signed-off-by: default avatarSritej Velaga <sritej.velaga@qlogic.com>
Signed-off-by: default avatarSony Chacko <sony.chacko@qlogic.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 34d6fde1
...@@ -2999,8 +2999,18 @@ qlcnic_set_npar_non_operational(struct qlcnic_adapter *adapter) ...@@ -2999,8 +2999,18 @@ qlcnic_set_npar_non_operational(struct qlcnic_adapter *adapter)
void void
qlcnic_dev_request_reset(struct qlcnic_adapter *adapter) qlcnic_dev_request_reset(struct qlcnic_adapter *adapter)
{ {
u32 state; u32 state, xg_val = 0, gb_val = 0;
qlcnic_xg_set_xg0_mask(xg_val);
qlcnic_xg_set_xg1_mask(xg_val);
QLCWR32(adapter, QLCNIC_NIU_XG_PAUSE_CTL, xg_val);
qlcnic_gb_set_gb0_mask(gb_val);
qlcnic_gb_set_gb1_mask(gb_val);
qlcnic_gb_set_gb2_mask(gb_val);
qlcnic_gb_set_gb3_mask(gb_val);
QLCWR32(adapter, QLCNIC_NIU_GB_PAUSE_CTL, gb_val);
dev_info(&adapter->pdev->dev, "Pause control frames disabled"
" on all ports\n");
adapter->need_fw_reset = 1; adapter->need_fw_reset = 1;
if (qlcnic_api_lock(adapter)) if (qlcnic_api_lock(adapter))
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment