Re: [PATCH v2 8/8] ib_uverbs: Support for kernel implementation of XRC

From: Jason Gunthorpe
Date: Fri Sep 16 2016 - 16:02:13 EST


On Fri, Sep 16, 2016 at 08:31:19PM +0200, Knut Omang wrote:
> +++ b/include/uapi/rdma/ib_user_verbs.h
> @@ -725,6 +725,8 @@ struct ib_uverbs_send_wr {
> __u32 reserved;
> } ud;
> } wr;
> + __u32 xrc_remote_srq_num;
> + __u32 reserved;
> };

You still need to discuss why this is OK...

Are you doing all this just to be able to use the existing post_send user
space path in the common code? Is there a kernel XRC user planned?

Another approach would be to implement post_send in your driver and
not rely on this common code path.

Jason