From: Jon Mason Date: Tue, 30 Sep 2008 21:51:19 +0000 (-0700) Subject: RDMA/cxgb3: Set active_mtu in ib_port_attr X-Git-Tag: v2.6.28-rc1~727^2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c752c78275fbf3fcb1d6d0af9b03ac999fe1963d;p=pandora-kernel.git 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 Acked-by: Steve Wise Signed-off-by: Roland Dreier --- Reading git-diff-tree failed