net: hns3: set vport alive state to default while resetting
authorHuazhong Tan <[email protected]>
Sat, 6 Apr 2019 07:43:25 +0000 (15:43 +0800)
committerDavid S. Miller <[email protected]>
Mon, 8 Apr 2019 22:30:49 +0000 (15:30 -0700)
When resetting, the vport alive state should be set to default,
otherwise the alive state of the vport whose driver not running
is wrong before the timer to check it out.

Fixes: a6d818e31d08 ("net: hns3: Add vport alive state checking support")
Signed-off-by: Huazhong Tan <[email protected]>
Signed-off-by: Peng Li <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c

index f51e4c01b67056e03666f1ac90525ef41040349f..62e3436d3921fc5db0a4b242e0d5f06e04f3d247 100644 (file)
@@ -7732,7 +7732,7 @@ static void hclge_reset_vport_state(struct hclge_dev *hdev)
        int i;
 
        for (i = 0; i < hdev->num_alloc_vport; i++) {
-               hclge_vport_start(vport);
+               hclge_vport_stop(vport);
                vport++;
        }
 }