X-Git-Url: https://gerrit.fd.io/r/gitweb?p=vpp.git;a=blobdiff_plain;f=src%2Fplugins%2Frdma%2Frdma.h;h=016956ee0f2047889208b5c97168bcb366084beb;hp=82f32ec9d010b57aedb19829a826be1fd5b6ac1c;hb=aaa65a12e424574bd795404df273fa5133f57ddd;hpb=dc812d9a71f2f5105e4aaba50fd98ea3b0b50a9b diff --git a/src/plugins/rdma/rdma.h b/src/plugins/rdma/rdma.h index 82f32ec9d01..016956ee0f2 100644 --- a/src/plugins/rdma/rdma.h +++ b/src/plugins/rdma/rdma.h @@ -39,10 +39,24 @@ enum #undef _ }; +#ifndef MLX5_ETH_L2_INLINE_HEADER_SIZE +#define MLX5_ETH_L2_INLINE_HEADER_SIZE 18 +#endif + typedef struct { CLIB_ALIGN_MARK (align0, MLX5_SEND_WQE_BB); - struct mlx5_wqe_ctrl_seg ctrl; + union + { + struct mlx5_wqe_ctrl_seg ctrl; + struct + { + u8 opc_mod; + u8 wqe_index_hi; + u8 wqe_index_lo; + u8 opcode; + }; + }; struct mlx5_wqe_eth_seg eseg; struct mlx5_wqe_data_seg dseg; } rdma_mlx5_wqe_t;