]> git.openfabrics.org - ~shefty/rdma-win.git/commit
ib/port_attr: report active width as part of port attributes
authorshefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 18 Aug 2009 19:22:47 +0000 (19:22 +0000)
committershefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 18 Aug 2009 19:22:47 +0000 (19:22 +0000)
commit79ccbcbf866e0bcd1da0fba08c919ad72878666f
tree0b09b1d73597473d55edf5cec3806bcfe4fa72bc
parentbd3f650d10e7b5cbde498cebf6039f0e1de8bc72
ib/port_attr: report active width as part of port attributes

Return the active width in the port attributes reported by the HCA.
Because the kernel and user space share the same source
files, to avoid breaking the ABI, rename link_width_supported
field to active_width and use that field to return the value.
link_width_supported is currently uninitialized and in the
svn tree unused, so repurposing the field should have minimal
impact.  However, this change will break the API.
Applications that reference the link_width_supported field
from struct _ib_port_attr will require a minor update if recompiled.

Update winverbs to report this value and fill in other
missing fields from the port attribute structure.  This fix
allows reporting the correct values through the libibverbs
port and ibv_devinfo example utility.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@2366 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
trunk/core/winverbs/kernel/wv_device.c
trunk/hw/mlx4/kernel/hca/data.c
trunk/hw/mthca/kernel/hca_data.c
trunk/inc/iba/ib_types.h