]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: Remove error log when getting pfc stats fails
authorYunsheng Lin <linyunsheng@huawei.com>
Tue, 1 May 2018 18:55:57 +0000 (19:55 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 May 2018 19:08:36 +0000 (15:08 -0400)
commit9bd3cae82a6fbd1dff0d43cbef7ecb8aa77142e9
tree1a122291e1289df34577df493f57252f7b0d8e3e
parent4e2a273c1244564c2436dee32523ce9400188a5f
net: hns3: Remove error log when getting pfc stats fails

When mac supports DCB, but is in GE mode, it does not support
querying pfc stats, firmware returns error when trying to
query the pfc stats. this creates a lot of noise in the kernel
log when it prints the error log.

This patch fixes it by removing the error log, because it already
return the error to the user space, so the user should be aware of
the error.

Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c