]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: add counter for times RX pages gets allocated
authorYunsheng Lin <linyunsheng@huawei.com>
Mon, 6 May 2019 02:48:43 +0000 (10:48 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 May 2019 17:37:13 +0000 (10:37 -0700)
commitb8927fc113d04df0a444bcf6ff9404ecac14f5a5
tree7a5d5aeae9e51e71e09434b8732b35cc3630e65f
parentc28ea0539023e4b532a6eaeac5602198043eadea
net: hns3: add counter for times RX pages gets allocated

Currently, using "ethtool --statistics" can show how many time RX
page have been reused, but there is no counter for RX page not
being reused.

This patch adds non_reuse_pg counter to better debug the performance
issue, because it is hard to determine when the RX page is reused
or not if there is no such counter.

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
drivers/net/ethernet/hisilicon/hns3/hns3_enet.h
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c