Quoting r. Roland Dreier <[EMAIL PROTECTED]>:
> Subject: Re: ipoib: question
>
> > where exactly does the following math come from?
> >
> > static inline struct ipoib_neigh **to_ipoib_neigh(struct neighbour *neigh)
> > {
> > return (struct ipoib_neigh **) (neigh->ha + 24 -
> > (offsetof(struct neighbour, ha) &
> 4));
> > }
> The idea is that we want to get something aligned to 8 bytes.
Does & 4 do that?
--
MST
_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general
To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general