On Thu, Dec 9, 2021 at 2:44 PM Nithin Dabilpuram <ndabilpu...@marvell.com> wrote: > > Change the order of frag sizes and infos to match HW > implementation. > > Signed-off-by: Nithin Dabilpuram <ndabilpu...@marvell.com> > Signed-off-by: Vidya Sagar Velumuri <vvelum...@marvell.com>
Since it a fix, change git log following and Applied to dpdk-next-net-mrvl/for-next-net. Thanks common/cnxk: fix byte order of frag sizes and infos Change the byte order of frag sizes and infos to match HW implementation. Fixes: 64a73ebd87bd ("common/cnxk: add CPT hardware definitions") Cc: sta...@dpdk.org > --- > drivers/common/cnxk/hw/cpt.h | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 deletions(-) > > diff --git a/drivers/common/cnxk/hw/cpt.h b/drivers/common/cnxk/hw/cpt.h > index 919f842..99a900c 100644 > --- a/drivers/common/cnxk/hw/cpt.h > +++ b/drivers/common/cnxk/hw/cpt.h > @@ -286,10 +286,10 @@ struct cpt_frag_info_s { > union { > uint64_t u64; > struct { > - union cpt_frag_info f3; > - union cpt_frag_info f2; > - union cpt_frag_info f1; > union cpt_frag_info f0; > + union cpt_frag_info f1; > + union cpt_frag_info f2; > + union cpt_frag_info f3; > }; > } w0; > > @@ -297,10 +297,10 @@ struct cpt_frag_info_s { > union { > uint64_t u64; > struct { > - uint16_t frag_size3; > - uint16_t frag_size2; > - uint16_t frag_size1; > uint16_t frag_size0; > + uint16_t frag_size1; > + uint16_t frag_size2; > + uint16_t frag_size3; > }; > } w1; > }; > -- > 2.8.4 >