[openib-general] [RFC] [PATCH] user_mad: Support RMPP on send side

Roland Dreier roland at topspin.com
Wed May 11 16:15:31 PDT 2005


    Hal> Initially the user_mad header, MAD header, and RMPP header
    Hal> are copied from user space. Later on, if it is a normal MAD,
    Hal> the MAD is copied from user space. If it is an RMPP MAD, the
    Hal> MAD header is mem copied from where it was put and the rest
    Hal> of the MAD is copied from user space.

This seems fine to me.  I doubt you could even measure the difference
between this and only making one call to copy_from_user().

BTW I still haven't had a chance to really read the patch but I will
comment soon.

 - R.



More information about the general mailing list