aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/benet/be_cmds.c
diff options
context:
space:
mode:
authorAjit Khaparde <ajitk@serverengines.com>2010-07-23 12:42:40 -0700
committerDavid S. Miller <davem@davemloft.net>2010-07-23 12:42:40 -0700
commit8943807c214535c079bd30469562d1126b70bc2a (patch)
tree336f6f262e7df368706faa9d02ab464ce23d74ae /drivers/net/benet/be_cmds.c
parente1d187353fc0597d24cf3169b1bbc1776058e883 (diff)
downloadkernel_samsung_crespo-8943807c214535c079bd30469562d1126b70bc2a.zip
kernel_samsung_crespo-8943807c214535c079bd30469562d1126b70bc2a.tar.gz
kernel_samsung_crespo-8943807c214535c079bd30469562d1126b70bc2a.tar.bz2
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: Ajit Khaparde <ajitk@serverengines.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/benet/be_cmds.c')
-rw-r--r--drivers/net/benet/be_cmds.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/benet/be_cmds.c b/drivers/net/benet/be_cmds.c
index 408e1f2..45b6f90 100644
--- a/drivers/net/benet/be_cmds.c
+++ b/drivers/net/benet/be_cmds.c
@@ -76,7 +76,8 @@ static int be_mcc_compl_process(struct be_adapter *adapter,
sizeof(resp->hw_stats));
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) &
CQE_STATUS_EXTD_MASK;
dev_warn(&adapter->pdev->dev,