X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fcommon%2Fcpt%2Fcpt_hw_types.h;h=4c2893bc2aa7fae6de261b93b6887b8fe8763498;hb=7b6b3886defc3549190d4fc963705b88d219820c;hp=cff59c793f730cd040d521c1c586f6199dc87543;hpb=0961348fdf52693e016f33a56e77e4383b8576f5;p=dpdk.git diff --git a/drivers/common/cpt/cpt_hw_types.h b/drivers/common/cpt/cpt_hw_types.h index cff59c793f..4c2893bc2a 100644 --- a/drivers/common/cpt/cpt_hw_types.h +++ b/drivers/common/cpt/cpt_hw_types.h @@ -30,10 +30,17 @@ typedef union { uint64_t u64; struct { +#if RTE_BYTE_ORDER == RTE_BIG_ENDIAN uint16_t opcode; uint16_t param1; uint16_t param2; uint16_t dlen; +#else + uint16_t dlen; + uint16_t param2; + uint16_t param1; + uint16_t opcode; +#endif } s; } vq_cmd_word0_t;