diff options
author | Peng Li <lipeng321@huawei.com> | 2018-09-19 20:29:53 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-09-20 07:20:22 +0300 |
commit | 582d37bbb613b8ad86bf82845d3a74a02a5a0fa1 (patch) | |
tree | 8682a25b8ceb4ab0c61addf8b3c13aee61b7aeb7 /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | 2f7e489611bc685b8e00aba436032a8aac6cac57 (diff) | |
download | linux-582d37bbb613b8ad86bf82845d3a74a02a5a0fa1.tar.xz |
net: hns3: Check hdev state when getting link status
By default, HW link status is up. If hclge_update_link_status is called
before net up, driver will print "link up". It is not suitable. hdev
state check is needed when getting link status.
Fixes: 46a3df9f9718 ("net: hns3: Add HNS3 Acceleration Engine & Compatibility Layer Support")
Fixes: e2cb1dec9779 ("net: hns3: Add HNS3 VF HCL(Hardware Compatibility Layer) Support")
Signed-off-by: Fuyun Liang <liangfuyun1@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>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions