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)
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>

No differences found