[openib-general] [PATCH] ib_mad.c: Fix request/response matching

Hal Rosenstock halr at voltaire.com
Tue Oct 5 12:27:14 PDT 2004


On Tue, 2004-10-05 at 15:01, Roland Dreier wrote:
>     +				   bus_to_virt(cur_send_wr->sg_list->addr))->tid.id;
> 
> Didn't notice this before but any use of bus_to_virt() is broken.  We
> need to figure out a different way to do whatever you're trying to do here.

Can you explain why using bus_to_virt() is broken ?

The tid of a requests is needed so responses can be matched.

One way around this would be to pass the TID as a separate parameter in
the ib_post_send_mad call. Maybe there are other less brute force ways.

-- Hal






More information about the general mailing list