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

Roland Dreier
Tue Oct 5 13:04:53 PDT 2004


    Hal> Can you explain why using bus_to_virt() is broken ?

See Documentation/DMA-mapping.txt:

    "It is planned to completely remove virt_to_bus() and bus_to_virt() as
     they are entirely deprecated.  Some ports already do not provide these
     as it is impossible to correctly support them."

(for example ppc64 does not have bus_to_virt).

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

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

I don't see a way around adding a TID parameter to ib_post_send_mad or
adding a TID member to the ib_send_wr.wr.ud union.

 - R.


More information about the openib-general mailing list