[ofw] ib_portinfo_record_t padding history?

Smith, Stan stan.smith at intel.com
Tue May 18 11:50:27 PDT 2010


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?

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>



More information about the ofw mailing list