]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: extract macro to simplify ring stats update code
authorPeng Li <lipeng321@huawei.com>
Thu, 2 Dec 2021 08:35:55 +0000 (16:35 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Dec 2021 11:53:42 +0000 (11:53 +0000)
commit95fdb8f32baf1a6cef75703a2577545ef465d977
tree11c2987a519316df0abd1828a5cd3bcae79afce6
parent1589e5506c9650c770277c20d6e81247e94031c8
net: hns3: extract macro to simplify ring stats update code

As the code to update ring stats is alike for different ring stats
type, this patch extract macro to simplify ring stats update code.

Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@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