提交 8943807c 编写于 作者: A Ajit Khaparde 提交者: David S. Miller

be2net: supress printing error when mac query fails for VF

When a virtual function driver in initialized, the network mac
query command can fail. Skip display of error message in that case.
Signed-off-by: NAjit Khaparde <ajitk@serverengines.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 e1d18735
...@@ -76,7 +76,8 @@ static int be_mcc_compl_process(struct be_adapter *adapter, ...@@ -76,7 +76,8 @@ static int be_mcc_compl_process(struct be_adapter *adapter,
sizeof(resp->hw_stats)); sizeof(resp->hw_stats));
netdev_stats_update(adapter); netdev_stats_update(adapter);
} }
} else if (compl_status != MCC_STATUS_NOT_SUPPORTED) { } else if ((compl_status != MCC_STATUS_NOT_SUPPORTED) &&
(compl->tag0 != OPCODE_COMMON_NTWK_MAC_QUERY)) {
extd_status = (compl->status >> CQE_STATUS_EXTD_SHIFT) & extd_status = (compl->status >> CQE_STATUS_EXTD_SHIFT) &
CQE_STATUS_EXTD_MASK; CQE_STATUS_EXTD_MASK;
dev_warn(&adapter->pdev->dev, dev_warn(&adapter->pdev->dev,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册