瀏覽代碼

[infiniband] Reset port state after closing device

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 13 年之前
父節點
當前提交
18178b087f
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1
    0
      src/net/infiniband.c

+ 1
- 0
src/net/infiniband.c 查看文件

@@ -680,6 +680,7 @@ void ib_close ( struct ib_device *ibdev ) {
680 680
 		ib_destroy_sma ( ibdev, ibdev->smi );
681 681
 		ib_destroy_mi ( ibdev, ibdev->smi );
682 682
 		ibdev->op->close ( ibdev );
683
+		ibdev->port_state = IB_PORT_STATE_DOWN;
683 684
 	}
684 685
 }
685 686
 

Loading…
取消
儲存