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)
commit3903328ec799222a83e91c71c8eafdab85666ba5
tree6446a6017b5d1093e789013103c860a6f7c717a9
parent5b01617c9c2668e4aa42056e347d4877b794bf84
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/trunk@2366 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
core/winverbs/kernel/wv_device.c
hw/mlx4/kernel/hca/data.c
hw/mthca/kernel/hca_data.c
inc/iba/ib_types.h