Browse Source

[infiniband] Reset port state after closing device

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 13 years ago
parent
commit
18178b087f
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      src/net/infiniband.c

+ 1
- 0
src/net/infiniband.c View File

@@ -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…
Cancel
Save