summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/sctop.py
diff options
context:
space:
mode:
authorHuazhong Tan <tanhuazhong@huawei.com>2018-11-07 07:06:07 +0300
committerDavid S. Miller <davem@davemloft.net>2018-11-07 22:42:17 +0300
commit814da63c557726e60b06a206ec8c1123f176d392 (patch)
tree4f71a794681cdc1fd664309ba18d348754d3bbf0 /tools/perf/scripts/python/sctop.py
parent7c588c7468ea3f9b2fc8fa6840bed6262b5d1b00 (diff)
downloadlinux-814da63c557726e60b06a206ec8c1123f176d392.tar.xz
net: hns3: use HNS3_NIC_STATE_INITED to indicate the initialization state of enet
Besides of module_init and module_exit, the process of reset will also uninitialize and initialize the enet client. When reset process fails with enet client uninitialized, the module_exit does not need to uninitialize the enet client, otherwise it may cause double uninitialization problem. So we need the HNS3_NIC_STATE_INITED flag to indicate whether the enet client is initialized. Also HNS3_NIC_STATE_REINITING is previously unused, so change it to HNS3_NIC_STATE_INITED. Fixes: bb6b94a896d4 ("net: hns3: Add reset interface implementation in client") Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions