]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: add handling of two bits in MAC tunnel interrupts
authorWeihang Li <liweihang@hisilicon.com>
Mon, 3 Jun 2019 02:09:19 +0000 (10:09 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Jun 2019 22:32:50 +0000 (15:32 -0700)
commite9cab164e74d5f9865ccc623092d1068822c34c6
tree701d4af34cdbfe8877ba2c0b2586026b4a770e80
parent8eed0dd3b60c0c16729591d8e156fadfaf7ace5b
net: hns3: add handling of two bits in MAC tunnel interrupts

LINK_UP and LINK_DOWN are two bits of MAC tunnel interrupts, but previous
HNS3 driver didn't handle them. If they were enabled, value of these two
bits will change during link down and link up, which will cause HNS3
driver keep receiving IRQ but can't handle them.

This patch adds handling of these two bits of interrupts, we will record
and clear them as what we do to other MAC tunnel interrupts.

Signed-off-by: Weihang Li <liweihang@hisilicon.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.h