RE: [RFC] XRC upstream merge reboot

Hefty, Sean
2011-05-18T18:13:54Z

> 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