[openib-general] Re: ipoib: question
Michael S. Tsirkin
mst at mellanox.co.il
Wed Dec 14 13:25:16 PST 2005
Quoting r. Roland Dreier <rdreier at cisco.com>:
> 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
More information about the general
mailing list