[ofw] ib_portinfo_record_t padding history?
Hal Rosenstock
hal.rosenstock at gmail.com
Tue May 18 19:18:48 PDT 2010
On Tue, May 18, 2010 at 2:50 PM, Smith, Stan <stan.smith at intel.com> wrote:
>
> Hello,
> Does anyone know the history as to why the OFED for Windows 'struct _ib_portinfo_record' has 6 bytes of padding while the OFED for Linux version does not?
>
> With padding sizeof ib_portinfo_record_t == 70, without padding sizeof ib_portinfo_record_t == 64.
>
> I'd like to remove the padding to be compatible, along with the fact 'osmtest -f c' produces a correct fabric inventory file.
>
> Thoughts?
In Linux, the 6 bytes of padding were removed in PortInfoRecord
shortly after MaxCreditHint and LinkRtLatency added to PortInfo. Do
the latter appear in the Windows version for PortInfo ?
-- Hal
>
> thanks.
>
> #include <complib/cl_packon.h>
> typedef struct _ib_portinfo_record
> {
> ib_net16_t lid;
> uint8_t port_num;
> uint8_t resv;
> ib_port_info_t port_info;
> uint8_t pad[6]; <-- ??
>
> } PACK_SUFFIX ib_portinfo_record_t;
> #include <complib/cl_packoff.h>
> _______________________________________________
> ofw mailing list
> ofw at lists.openfabrics.org
> http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ofw
>
More information about the ofw
mailing list