mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Fab Tillier" <ftillier@infiniconsys.com>
To: "'Greg KH'" <greg@kroah.com>, "Roland Dreier" <roland@topspin.com>
Cc: <linux-kernel@vger.kernel.org>, <openib-general@openib.org>
Subject: RE: [openib-general] Re: [PATCH][RFC/v1][4/12] Add InfiniBand SA(Subnet Administration) query support
Date: Mon, 22 Nov 2004 14:40:45 -0800	[thread overview]
Message-ID: <000401c4d0e4$4edb43d0$655aa8c0@infiniconsys.com> (raw)
In-Reply-To: <20041122222507.GB15634@kroah.com>

> 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


  reply	other threads:[~2004-11-22 22:45 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20041122713.SDrx8l5Z4XR5FsjB@topspin.com>
2004-11-22 15:13 ` [PATCH][RFC/v1][4/12] Add InfiniBand SA (Subnet " Roland Dreier
2004-11-22 19:33   ` Sam Ravnborg
2004-11-22 21:28     ` Roland Dreier
2004-11-22 22:25   ` Greg KH
2004-11-22 22:40     ` Fab Tillier [this message]
2004-11-22 23:34     ` Roland Dreier
2004-11-23  6:41       ` Greg KH
2004-11-23  6:47         ` Roland Dreier
2004-11-23  7:29           ` Greg KH
2004-11-23 17:52             ` [openib-general] " Johannes Erdfelt
2004-11-23 18:38               ` Greg KH
2004-11-23 18:56                 ` Roland Dreier
2004-11-23 19:01                   ` Greg KH
2004-11-23 19:13                 ` Johannes Erdfelt
2004-11-23 19:30                 ` linux-os
2004-11-23 19:42                   ` Greg KH
2004-11-24 19:23                 ` Roland Dreier
2004-11-24 19:29                   ` Greg KH
2004-11-23 15:27         ` Randy.Dunlap

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000401c4d0e4$4edb43d0$655aa8c0@infiniconsys.com' \
    --to=ftillier@infiniconsys.com \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=openib-general@openib.org \
    --cc=roland@topspin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®