lkml.org 
[lkml]   [2004]   [Nov]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [openib-general] Re: [PATCH][RFC/v1][4/12] Add InfiniBand SA(Subnet Administration) query support
Date
> From: Greg KH [mailto:greg@kroah.com]
> Sent: Monday, November 22, 2004 2:25 PM
>
> > +struct ib_sa_hdr {
> > + u64 sm_key;
> > + u16 attr_offset;
> > + u16 reserved;
> > + ib_sa_comp_mask comp_mask;
> > +} __attribute__ ((packed));
>
> Why is this packed?
>
> > +struct ib_sa_mad {
> > + struct ib_mad_hdr mad_hdr;
> > + struct ib_rmpp_hdr rmpp_hdr;
> > + struct ib_sa_hdr sa_hdr;
> > + u8 data[200];
> > +} __attribute__ ((packed));
>
> Same here?

These describe on-the-wire IB structures, and their definition matches the
IB spec (Version 1.1, Volume 1)

struct ib_mad_hdr matches "Standard MAD Header", Figure 144
struct ib_rmpp_hdr matches "RMPP MAD Header", Figure 168
struct ib_sa_hdr and struct ib_sa_mad match "SA Header", Figure 193

Hope that answers your question - let us know if it doesn't.

Cheers,

- Fab

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:08    [W:0.046 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site