RDMA/cxgb3: Set active_mtu in ib_port_attr
authorJon Mason <jon@opengridcomputing.com>
Tue, 30 Sep 2008 21:51:19 +0000 (14:51 -0700)
committerRoland Dreier <rolandd@cisco.com>
Tue, 30 Sep 2008 21:51:19 +0000 (14:51 -0700)
commitc752c78275fbf3fcb1d6d0af9b03ac999fe1963d
tree85c8332c2197b68e53fff1de31eb8dc912d9da11
parent9824b8f11373b0df806c135a342da9319ef1d893
RDMA/cxgb3: Set active_mtu in ib_port_attr

When running ibv_devinfo, the active_mtu returned is garbage.  This is
due to the field not being populated in the query_port function in the
driver.  The patch below populates the active_mtu field with a MTU of
2k.  It also zeros the struct, so that any new additions to it will
return 0.

Signed-off-by: Jon Mason <jon@opengridcomputing.com>
Acked-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/cxgb3/iwch_provider.c