]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
net: hns3: Mask the packet statistics query when NIC is down
authorJian Shen <shenjian15@huawei.com>
Fri, 5 Jan 2018 10:18:11 +0000 (18:18 +0800)
committerSeth Forshee <seth.forshee@canonical.com>
Fri, 16 Mar 2018 15:47:22 +0000 (10:47 -0500)
commita3083abb0f02c0e0883f2028d9d6e579a8a6f493
tree96c4f25d03dfc04e45051dd670cb60d792a460ea
parent7a5d2a397f5a0c7c3cde86409f323bd24ca50b8f
net: hns3: Mask the packet statistics query when NIC is down

BugLink: http://bugs.launchpad.net/bugs/1756097
Update the HNS3_NIC_STATE_DOWN bit when NIC state changes.
When NIC is down, mask the packet statistics for querying
with ifconfig command. It's a common practice.

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>
(cherry picked from commit b875cc379de4cb4bcc7e189998667286baf916b8)
Signed-off-by: Manoj Iyer <manoj.iyer@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c