[PATCH 3/8] common/cnxk: change order of frag sizes and infos

Jerin Jacob jerinjacobk at gmail.com
Wed Jan 19 17:25:01 CET 2022


On Thu, Dec 9, 2021 at 2:44 PM Nithin Dabilpuram
<ndabilpuram at marvell.com> wrote:
>
> Change the order of frag sizes and infos to match HW
> implementation.
>
> Signed-off-by: Nithin Dabilpuram <ndabilpuram at marvell.com>
> Signed-off-by: Vidya Sagar Velumuri <vvelumuri at 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: stable at 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
>


More information about the dev mailing list