]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: prevent unnecessary MAC TNL interrupt
authorHuazhong Tan <tanhuazhong@huawei.com>
Fri, 16 Aug 2019 08:09:41 +0000 (16:09 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 18 Aug 2019 19:59:13 +0000 (12:59 -0700)
commit7b73bff19176c9660ab44a2197dd6298e6690148
tree60fab02c8c5a6a4429f6adf628a01a8b20436d9f
parentd2b36c04638e1ebc57e2d54a768712191d6e3835
net: hns3: prevent unnecessary MAC TNL interrupt

MAC TNL interrupt is used to collect statistic info about
link status changing suddenly when netdev is running.

But when stopping netdev, the enabled MAC TNL interrupt is
unnecessary, and may add some noises to the statistic info.
So this patch disables it before stopping MAC.

Fixes: 3dcda288c727 ("net: hns3: Add handling of MAC tunnel interruption")
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Reviewed-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c