Re: [dpdk-dev] [PATCH v4 04/18] bus/dpaa: solve inconsistent struct alignment

2018-05-11 Thread De Lara Guarch, Pablo
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Andy Green > Sent: Friday, May 11, 2018 2:46 AM > To: dev@dpdk.org > Subject: [dpdk-dev] [PATCH v4 04/18] bus/dpaa: solve inconsistent struct > alignment > > The actual descriptor fo

[dpdk-dev] [PATCH v4 04/18] bus/dpaa: solve inconsistent struct alignment

2018-05-10 Thread Andy Green
The actual descriptor for qm_mr_entry is 64-byte aligned. But the original code plays a trick, and puts a u8 common to the three descriptor subtypes in the union afterwards outside their structure definitions. Unfortunately since they compose a struct qm_fd with alignment 8, this trick destroys t