From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 31BC6A034E; Fri, 21 Jan 2022 11:04:10 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B6DA94273D; Fri, 21 Jan 2022 11:04:09 +0100 (CET) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id 1A6EC40042 for ; Fri, 21 Jan 2022 11:04:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1642759448; x=1674295448; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=jIvS6UNRAr5m8TLFnYFnS1q8AvYaEFYB129y00ufabg=; b=feZTxnSL2BTuz6vUq6HxWKJA2cXEV7ayvG0y+9tMhy1Sz1n8/taKGi69 41tv5QpriB+ODa0zmrsLFSJt7foK9aJ+Dj6AeFWaeWRPO1MI7vEkOWjUl +1zebRW4ePTqvoYAnFi0IZXB9bOnMXoYCjP+0xKwfY5dPQM22/jfW80g8 H1L36lohYlNfEbo1AcbZ/uF6CtzDx7Pqtb4A3K/1LkFJvoqyPIqrX9ezq laeXDiXGd0ZDBtFLSSrYMm+rxKkrgz0TA45me7/qdBCuPtY9uiP7nHSQ3 cmoY6FDCpkUyR1K4JwbHniLGA3gvpi13uWdzgEnwHc1RQSXv5xYYF0m9w g==; X-IronPort-AV: E=McAfee;i="6200,9189,10233"; a="308947903" X-IronPort-AV: E=Sophos;i="5.88,304,1635231600"; d="scan'208";a="308947903" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jan 2022 02:04:03 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,304,1635231600"; d="scan'208";a="765659688" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by fmsmga006.fm.intel.com with ESMTP; 21 Jan 2022 02:04:03 -0800 Received: from fmsmsx609.amr.corp.intel.com (10.18.126.89) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Fri, 21 Jan 2022 02:04:02 -0800 Received: from fmsmsx608.amr.corp.intel.com (10.18.126.88) by fmsmsx609.amr.corp.intel.com (10.18.126.89) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Fri, 21 Jan 2022 02:04:02 -0800 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx608.amr.corp.intel.com (10.18.126.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20 via Frontend Transport; Fri, 21 Jan 2022 02:04:02 -0800 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.172) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.20; Fri, 21 Jan 2022 02:04:00 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kfy15k7RTS3TLKpboN/8gGhnuwtLK9iQ9tMjATgCHJyheykFVTEo1RfJ+Pypvhv5KPb9slQbhXn/5TzMHdSZMik8bCtba6lrjkQEVnS1JGRDLd+KMlYlsqT8O/lgMjKRHG+KZ1PbMGFED3mWEB8vVLrfhrZMSdn4D/WXpcJl1ozgd45DUg+uuThRxLyScibIqdJ9dpUD7avX+JJWUzhFLxJ2IFSOVibCL3xaYnZDmK6zS6MYvoHk5agfZ9BZJuHPmdAib+sikdX/1CHdEVRI+jD1BCSZ0ramTblzM6Wy31wE5Th9YQfOSuOKV9tDvsS7uAbvbubfasNexW/HnTWDLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=R7FjUwBJwTsUxTonbvfaumLr8tau7lKS7EV1WlL58VQ=; b=elg1SO5BRjHjCcbYX8eo396KGGlcRZ0ZEVD8J4l+x3q3uMRS/05r0M1hejJ6oXdgY2Qh18I6XD9Hel8jAra/t62dKjW7xbnmDMSAuLcoH4c1Pfw5TNnp8EnLhtN9AHgFLsHBMoGWG7TBjVuytuT8uTmUNfkBKST1dEt0Tw1ubWzN4FmK3WkYT9S+XKhfmlthIH9RjqdBjS+mKIf8QlQHYNOYbm71WdoSUmE8iOGkgNJOkGrKsTSdeGTdsAzp+h7wQtr2XPS75m5CuYQbwUV1eR/fYjuNpaOfIzCvIC1ReHxmkxjWGdxgfs1xxaPnxJ3zEJxZe6v8kWBH/o/ydt9QVA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) by MWHPR11MB1966.namprd11.prod.outlook.com (2603:10b6:300:10f::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4888.11; Fri, 21 Jan 2022 10:03:59 +0000 Received: from PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::5046:8550:928d:850e]) by PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::5046:8550:928d:850e%7]) with mapi id 15.20.4909.010; Fri, 21 Jan 2022 10:03:59 +0000 Message-ID: Date: Fri, 21 Jan 2022 10:03:53 +0000 Subject: Re: [PATCH 3/8] common/cnxk: change order of frag sizes and infos Content-Language: en-US To: Nithin Dabilpuram , , "Kiran Kumar K" , Sunil Kumar Kori , Satha Rao CC: , Vidya Sagar Velumuri References: <20211209091342.27017-1-ndabilpuram@marvell.com> <20211209091342.27017-3-ndabilpuram@marvell.com> From: Ferruh Yigit X-User: ferruhy In-Reply-To: <20211209091342.27017-3-ndabilpuram@marvell.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P123CA0366.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:18e::11) To PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4410b730-d704-4605-5a7a-08d9dcc557f4 X-MS-TrafficTypeDiagnostic: MWHPR11MB1966:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:295; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: dwT10ZVKhdb6++F79MQqksZh+u0Xr7BjyL82XOdQpEZjw7tcs0nXVR2RHqsMufM9HDoPhwS+rE3bceHK4r9XP9cUr67xk/MBBGXIXy6xGdkE7m8EChB5KaqXLzP9rfu9LK4l2/DgXj4ZcnikonmPpzTm1ZITESxerS+s7cLekSJqB82L3IKLyxw6Ci+UG93FgjVZnlxmA2P5wjdzAHe4TVP71CD9WUmu/sT3/IgY5UbEhpWiWBSEVudQSqIvOXJLEIC+gztkR6W1mhop0xpqxrUMBSRLtbuc77zLjigsV0I90w1+GgMKa3beEJJ0Ks1p+g7LCt3+Mad1M6gfsL9abnQxW6ZeO05NVddCbj9fl++eW4yRJ7T9V89bPF8iHFbyEUpBzWTboRioOPLvcyWwxAKgCgQ3wsftE2KCLTh+c5daFnm9j/Etjck+o9kS8vLLxQHvAMaV6OOGDqqt68bT3PdFxvrIZgrXKTYT+DIkfksNOQTkE5ilvfAc4SYBwKQTB2FixHjKLS2t/TzfO40rzkAyC9b1n4WCWG78fwXWLF1cmI4+aZoh8Ac6UibbxjY3wkAQeYrJQlRRnmnwUOFdj+xz0kXETYjjH4OOXSRQcb5FdJA2dtdRg4WOuPg8QS+X/7s4i2gArNT3ZQovnnOJMpng1bOk42G55w1QJbgsPdbOZdVdjU92kwBoBmJsgN1gLPy9iaDhT2X/CU7kpmRRAQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR11MB5000.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(44832011)(38100700002)(6486002)(110136005)(31686004)(316002)(2906002)(53546011)(6666004)(2616005)(83380400001)(8936002)(186003)(508600001)(6512007)(36756003)(66946007)(66476007)(8676002)(5660300002)(4326008)(31696002)(26005)(82960400001)(86362001)(6506007)(66556008)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?U1I4Z0J4bXRsZzJLQmpsQjNHd09UMWhyalRxc05yUjlhU1EyU1VYUktKV1BD?= =?utf-8?B?TytCZ1lsREVmR2FuS2NkaGVXaXdLQXJrT0NFVFhBYmZpSGdEMUNBUjJUYTV6?= =?utf-8?B?anFia2liMS9IM0t4TEVqTW9DTnVKaGl3Rk1FTEk2M01QdVUrd0dPSDdvazBM?= =?utf-8?B?Y1kvc1lzeUVjWnY5K09WUzdaUjBiWW1VcW14OEZkS0ZqNzlucnZ5Z1g0Rlh5?= =?utf-8?B?WC80V3pWeU9pOVdqZld1WjZ6VGlyd3JsWHprdTJHN0FUa1IxcGYydU1KOXh1?= =?utf-8?B?Q0l4MGlPQ3UzenZpRVFBdWJzc2RpbjlDY2dPOGREL2RmMGQ1QTlLRVVTWTFE?= =?utf-8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mUzNZWkRPMElUYys2RnFvRHMwN2Fm?= =?utf-8?Q?P5bCZ00PCzO+5dO/EQyXUUc=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 4410b730-d704-4605-5a7a-08d9dcc557f4 X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5000.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jan 2022 10:03:59.4904 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Ez0BRHv4PZPTVNqBwOuahomt07nWma9cZA8qfFoV1sPtoSwibK2K19uMOyxjdWsy/Symh/5erbA8wAL13Raxiw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR11MB1966 X-OriginatorOrg: intel.com X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On 12/9/2021 9:13 AM, Nithin Dabilpuram wrote: > Change the order of frag sizes and infos to match HW > implementation. > > Signed-off-by: Nithin Dabilpuram > Signed-off-by: Vidya Sagar Velumuri > --- > 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; If this is related to the endianness requirement of the HW, it can be good to comment this in the code. > }; > } w1; > };