]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: limit the error logging in the hns3_clean_tx_ring()
authorYunsheng Lin <linyunsheng@huawei.com>
Tue, 21 Jan 2020 08:42:05 +0000 (16:42 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jan 2020 10:46:20 +0000 (11:46 +0100)
commit6d4b0317c6b8860e67b0194ee47468ab34e03c20
tree98ad369da3c9e2d1cf1468555f00713c213d1032
parent7fe4dfeb03fab540f8aa4a5ae46b907297cb24e3
net: hns3: limit the error logging in the hns3_clean_tx_ring()

The error log printed by netdev_err() in the hns3_clean_tx_ring()
may spam the kernel log.

This patch uses hns3_rl_err() to ratelimit the error log in the
hns3_clean_tx_ring().

Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c