Re: [PATCH 1/7] libibverbs: Add link layer field port attribute

Jason Gunthorpe
2011-07-19T17:04:54Z

On Tue, Jul 19, 2011 at 12:27:17PM +0300, Or Gerlitz wrote:

> The addition of the new field does not change the size of struct
> ibv_port_attr due to alignment of the preceding fields. As such
> binary compatibility between the library to applications is kept,

What zeros the field in the current library?

It looks like new apps that want to access the link_layer field will
have to explicitly zero port_attr before calling
ibv_cmd_query_port. Should be noted in the documentation - and maybe
also explicitly zero the remaining pad for future.

Jason