]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: Remove packet statistics in the range of 8192~12287
authorXi Wang <wangxi11@huawei.com>
Tue, 1 May 2018 18:56:05 +0000 (19:56 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 May 2018 19:08:38 +0000 (15:08 -0400)
commitaf8a57987add4a9f10501c4aa1232715a262d8e5
tree29afaba32a525f9fa46ec0a5aeb394b3100a5159
parentd9cac08b3a13d565fd758dadbd4f0f74e304e2c8
net: hns3: Remove packet statistics in the range of 8192~12287

Because the current statistics for size 8192~12287 are only valid for GE,
the ranges of 8192~9216 and 9217~12287 are valid only for LGE/CGE, and are
always 0 for GE interfaces. it is easy to cause confusion when viewing the
packet statistics using the command ethtool -S.

This patch removes the 8192~12287 range of packet statistics and uses the
8192~9216 and 9217~12287 ranges for statistics. This change depends on the
firmware upgrade.

Signed-off-by: Xi Wang <wangxi11@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h