[ewg] [PATCH ofed-1.2-beta 4/5] ehca: query_port() returns LINK_UP instead UNKNOWN
Hoang-Nam Nguyen
hnguyen at linux.vnet.ibm.com
Fri Mar 2 00:31:12 PST 2007
set port phys state as a result of ehca_query_port() to LINK_UP.
On pSeries ehca actually represents a logical HCA, whose phys/link state
always is LINK_UP.
Signed-off-by: Hoang-Nam Nguyen <hnguyen at de.ibm.com>
---
ehca_hca.c | 3 +++
1 files changed, 3 insertions(+)
diff --git a/drivers/infiniband/hw/ehca/ehca_hca.c b/drivers/infiniband/hw/ehca/ehca_hca.c
index b7be950..30eb45d 100644
--- a/drivers/infiniband/hw/ehca/ehca_hca.c
+++ b/drivers/infiniband/hw/ehca/ehca_hca.c
@@ -162,6 +162,9 @@ int ehca_query_port(struct ib_device *ib
props->active_width = IB_WIDTH_12X;
props->active_speed = 0x1;
+ /* at the moment (logical) link state is always LINK_UP */
+ props->phys_state = 0x5;
+
query_port1:
ehca_free_fw_ctrlblock(rblock);
More information about the ewg
mailing list