OSDN Git Service

net: hns3: refine MAC pause statistics querying function
authorYufeng Mo <moyufeng@huawei.com>
Fri, 9 Aug 2019 02:31:16 +0000 (10:31 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Aug 2019 20:44:33 +0000 (13:44 -0700)
commit615466ce415a8a94d3c2cbd5ac35aa29bd189ebe
treec5e9d5d9728bf187a4b5ff0759c23959bcc009d2
parentdec8466001f740868f01a3cb75b21174197be85e
net: hns3: refine MAC pause statistics querying function

This patch refines the interface for querying MAC pause
statistics, and adds structure hns3_mac_stats to keep the
count of TX & RX.

Signed-off-by: Yufeng Mo <moyufeng@huawei.com>
Reviewed-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hnae3.h
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c