net: hns3: extract macro to simplify ring stats update code
[ Upstream commit e6d72f6a ] 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> Stable-dep-of: 7d89b53c ("net: hns3: fix miss L3E checking for rx packet") Signed-off-by: Sasha Levin <sashal@kernel.org>
parent
7457c5a7
Please register or sign in to comment