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

Jason Gunthorpe
2011-07-19T20:31:40Z

On Tue, Jul 19, 2011 at 11:22:51PM +0300, Or Gerlitz wrote:
> Jason Gunthorpe <jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org> wrote:
> > Or Gerlitz wrote:
>
> >>> What zeros the field in the current library?
>
> + port_attr->link_layer = IBV_LINK_LAYER_UNSPECIFIED;
> + port_attr->pad = 0;

Where are you getting that hunk from?

libibverbs $ git grep link_layer libibverbs-1.1.5 --
libibverbs $

More clearly: what initializes the memory you've redefined to be
link_layer in libibverbs 1.1.5 ? I see nothing.

Jason