> The size is 3*64 + 1*32 so there is a 32 bit pad, thus we can rewrite
> it as:
>
> union {
> struct {
> uint64_t remote_addr;
> uint32_t rkey;
> uint32_t xrc_remote_qpn;
> } rdma;
> struct {
> uint64_t remote_addr;
> uint64_t compare_add;
> uint64_t swap;
> uint32_t rkey;
> uint32_t xrc_remote_qpn;
> } atomic;
> struct {
> struct ibv_ah *ah;
> uint32_t remote_qpn;
> uint32_t remote_qkey;
> } ud;
> } wr;
>
> Without changing the size at all.
You need it in the normal send case as well, either outside of the union, or
part of a new struct within the union.
- Sean
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html