Skip to content

Commit 6bbcea0

Browse files
Hoang-Nam NguyenRoland Dreier
authored andcommitted
IB/ehca: Change query_port() to return LINK_UP instead UNKNOWN
Set the port phys state as returned from ehca_query_port() to LINK_UP. ehca actually represents a logical HCA, whose phys/link state always is LINK_UP. Signed-off-by: Hoang-Nam Nguyen <hnguyen@de.ibm.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
1 parent 4fd3006 commit 6bbcea0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/infiniband/hw/ehca/ehca_hca.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,9 @@ int ehca_query_port(struct ib_device *ibdev,
162162
props->active_width = IB_WIDTH_12X;
163163
props->active_speed = 0x1;
164164

165+
/* at the moment (logical) link state is always LINK_UP */
166+
props->phys_state = 0x5;
167+
165168
query_port1:
166169
ehca_free_fw_ctrlblock(rblock);
167170

0 commit comments

Comments
 (0)