[openib-general] [PATCH] ib_mad: Fix return posted receive MAD routine

Sean Hefty
Tue Oct 5 13:50:47 PDT 2004


On Tue, 5 Oct 2004 13:42:54 -0700
Sean Hefty <mshefty at ichips.intel.com> wrote:

> On Tue, 05 Oct 2004 15:03:12 -0400
> Hal Rosenstock <halr at voltaire.com> wrote:
> 
> > +                      rbuf = list_entry(&port_priv->recv_posted_mad_list[i],
> > +                                         struct ib_mad_recv_buf, list);
> > +                      rbuf = (struct ib_mad_recv_buf *)rbuf->list.next;
> 
> Can we change this, and similar occurrences, to use "->next" in the list_entry macro call itself?  Currently, after the execution of the first statement, rbuf does not reference struct ib_mad_recv_buf.  It references the port_priv routine.
- 
Er... structure that is, not routine...  too much multitasking on my brain at the moment.


More information about the openib-general mailing list