]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: hns3: Fix an error of total drop packet statistics
authorJian Shen <shenjian15@huawei.com>
Fri, 5 Jan 2018 10:18:12 +0000 (18:18 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Apr 2018 10:31:09 +0000 (12:31 +0200)
commit4434e6f5820f38c37c58fcb4e1b6a6858e4c847e
tree4cba838aab4e8554796ae33c5e05ee26b4d00bcb
parentc8de98d55dc4bdcba4161d0163376929e9c03918
net: hns3: Fix an error of total drop packet statistics

[ Upstream commit d2a5dca8404871be683c6bbc175ebf9c56dd2865 ]

The dropped tx/rx packets number of each tqp should also
be counted into the total drop tx/rx packets numbers.

Fixes: 76ad4f0ee74 ("net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC")
Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c