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

Jason Gunthorpe
2011-07-19T19:50:20Z

On Tue, Jul 19, 2011 at 10:36:26PM +0300, Or Gerlitz wrote:
> > What zeros the field in the current library?
>
> the kernel uverbs code either zeros it (old kernels) or sets it (new kernels)

ibv_cmd_query_port does a field by field copy of the port_attr, so
what the kernel does is not relevant to this case, and to me it looks
like the new value you added will be left uninitialized on old ibverbs.

Jason