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 55C7142B42; Fri, 19 May 2023 05:00:37 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9630342D3F; Fri, 19 May 2023 05:00:21 +0200 (CEST) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2098.outbound.protection.outlook.com [40.107.92.98]) by mails.dpdk.org (Postfix) with ESMTP id 53FF942D35 for ; Fri, 19 May 2023 05:00:19 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=chcHL0Px/TarkMLlPMh0dWa36ikbLWszfqoR2Gue5Mhy+Rp/8exWJBvyXV4/tVRQQh3gKqy8MPJoMy646w7g6KvbzPdVxYa9WnS2W+olmsi1G0R6AOGD+lVkqgXidSwtt+vw5Swi64W4eSAvlLIl/B15Mn/JS7KZrsU8mlue8Zrwbjr7+eMuecuwo6IENbrnUOXEqE65aIVZu0Y4u6gHOP/BXdWN6WYwll3HcJspt8V3isLvQw0e0i1EJAI2pgkAGwfrptLeTARYMFpd03HClgV0MinASmR1KBOAlj3GmFQUWlhOf9j63ovFjOQqMOcVK9YEqS5c2WcwBjyvateQEA== 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=jiefXhLxuClTw+jsf6oF+LRuUstyrE+cJ8dAUmaCipQ=; b=oGG3IVLOyhbrIT8GiPhcXXk8F/2Xt6B9YrmH1s/wzwDqQjOCcEIuvXhicmuR6yuUcrh8nCl1gHI2pPpnguSl0hl01HhBWlJLXo96m9u+tHWSxkLHQauK3GPOv/S0IDf4DC/5Sfs9XdqozNpPk0XsQKlITqGJTWOQOX4+ZPyIE4C3Hwl5GVgik/Ow4XIzNU17/UokNp7uRbl/WGe3gpYQ2+eBgVErlgW1G1Oz5MIAWsxrXTY0119zDh6G0IVP8TqGHvkAxORTzatcmaQ8qZcXdegdYZg70UFe3849DHMpj0lHLV5vIvIgGeme17qF56ZsqUu27z3eQuHCl+k7RJ+xuA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=corigine.com; dmarc=pass action=none header.from=corigine.com; dkim=pass header.d=corigine.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=corigine.onmicrosoft.com; s=selector2-corigine-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jiefXhLxuClTw+jsf6oF+LRuUstyrE+cJ8dAUmaCipQ=; b=HoheCaoSG8ea9TC32/Px/o5KkJ3WEV4LSfb4jWz4Dtpy/UM71/+d27cvZRj+2OWM4Sd49kP+kJTNex75AFbF1QavdkSKTG0kXJ8TXyQg4ZzQUmtUV+Ec8kP0AmgUijukiWZpU8db6lpAcHfwkwG9GJv1th9kxtQ+/439srG9FUg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=corigine.com; Received: from SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) by SJ0PR13MB5769.namprd13.prod.outlook.com (2603:10b6:a03:40c::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6387.30; Fri, 19 May 2023 03:00:17 +0000 Received: from SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::ac2e:52b6:82ec:4994]) by SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::ac2e:52b6:82ec:4994%3]) with mapi id 15.20.6411.017; Fri, 19 May 2023 03:00:17 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, niklas.soderlund@corigine.com, Chaoyong He Subject: [PATCH 3/8] net/nfp: modify the Rx descriptor struct Date: Fri, 19 May 2023 10:59:45 +0800 Message-Id: <20230519025950.1642943-4-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230519025950.1642943-1-chaoyong.he@corigine.com> References: <20230519025950.1642943-1-chaoyong.he@corigine.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: SI2PR01CA0005.apcprd01.prod.exchangelabs.com (2603:1096:4:191::23) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|SJ0PR13MB5769:EE_ X-MS-Office365-Filtering-Correlation-Id: ff7cb1e0-2943-414f-a6f8-08db58152cd3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: z+QoabkD9shPZNJPbUsheS5pkJfGaYI2+mFPCOfb5/I2kCw+GX3Y/s518D+tr+GN6efrlbY1cknVkgNBr2UuhTK2W8B3FZhwW6uVycXa8aLe2qEYsk5e4Pv5gqbpebOG6qibgPK2QsbhcOqEBsI2ikenWuUndPQZ8JNJB/keM1H1iedLB4c97HBovdWW1ELe/OgA6iZIE3pGwXhCu32KSTAaei7cih5bK0sTBby4xX0Hv2nDzLGSCF433eowqJbtvAj1Kcaqd0j95xRdGxTcGeh+E+uOVsnaVGrsnxhDIPFrfVYwpdF1AgLGO4sagMFTfFJsBeUDujwNti0x/C/1hkCPGxSMxTu1XzakxERvA6HwSonR0s1nudBE3gyRfztMM4f4XD5W1BIXJ3CuiUt50CYB8L6IsRI3oZxEw3bpv+rJ6GtreugeeHzWiZD3sj5QvLV2MbePxbr5HXGzVd1Gr0hf6C8caP0FGrpfUb5aohivcWwIo+dbdEgJTb9ZtJQypvO658DXeirmke6bdVkalq6Iooz0MMpY3pdx/HKkaM2dYvuz6Gml0QSJWE8RYh77GdcA4WAv1TPIV3bMp0aqSjgqUEA0gp32lw3PASHxr8G24PvMounliF12tclIbUds X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR13MB5545.namprd13.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(366004)(346002)(136003)(376002)(39840400004)(396003)(451199021)(6916009)(66476007)(2616005)(6666004)(6512007)(41300700001)(2906002)(6486002)(4744005)(83380400001)(478600001)(66556008)(107886003)(52116002)(66946007)(26005)(6506007)(1076003)(186003)(5660300002)(4326008)(316002)(8676002)(8936002)(44832011)(86362001)(38100700002)(36756003)(38350700002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?aUNBUWtuZ1Z6M0s4dUVDMjIvVUVFdU5RMUpXYXlhOG5wR2lUY0ozTTFhajl4?= =?utf-8?B?c1dDRUdxZmNFYThrU21yaG5tczgwb01NQnhkY01GcXRNcjZmMnE0WjB0K210?= =?utf-8?B?M3A3LytuNjhDZ3N6akpRU3pOSzRKT3V3eThvakh5b1RoMU9PcStzamExZ3M5?= =?utf-8?B?Y3JOYnQ2OWphbEpRL0l3Q3J3YjNWNUk3WTFLZ2NNT2luYUt3MWIrSjVwTEZh?= =?utf-8?B?UFc2dHZFdGFaMkJzZGM5MnJ2VVFZYnlNV0dOL3V6WFgzL3Z5OEg2RHR0SmY3?= =?utf-8?B?elUvZkNBZnFGSEZPcjB2cVB2N0hvK1ZzOHovVm9PZ2E4NEZVbms5OXZNVWcr?= =?utf-8?B?NU1WTDBsYnM5emZhZUhtVS9BSGg3NWpRZDUxTTM1dzJyWkxkUUpnMDNEak9M?= =?utf-8?B?Zk44T1VncGZTQ0VzVStNcnRvZHUyalkrWEN0S1l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change-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 May 2023 03:00:17.6192 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: fe128f2c-073b-4c20-818e-7246a585940c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: k49Z8edrZEsoREFZIngIFNNETzPUjo4jFFpMxZLzjWUS0l/lhvxblXtCVts5TAeI6hNxZ0oKvpglXEo82Ohj2U/d0Okvq++m9dtZHMyzufM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR13MB5769 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 Modify the struct nfp_net_rx_desc, change the type of the fields, make it meet the DPDK coding style. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- drivers/net/nfp/nfp_rxtx.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/net/nfp/nfp_rxtx.h b/drivers/net/nfp/nfp_rxtx.h index c433e084c5..83dc9960e8 100644 --- a/drivers/net/nfp/nfp_rxtx.h +++ b/drivers/net/nfp/nfp_rxtx.h @@ -191,24 +191,24 @@ struct nfp_net_rx_desc { union { /* Freelist descriptor */ struct { - __le16 dma_addr_hi; + uint16_t dma_addr_hi; uint8_t spare; uint8_t dd; - __le32 dma_addr_lo; + uint32_t dma_addr_lo; } __rte_packed fld; /* RX descriptor */ struct { - __le16 data_len; + uint16_t data_len; uint8_t reserved; uint8_t meta_len_dd; - __le16 flags; - __le16 vlan; + uint16_t flags; + uint16_t vlan; } __rte_packed rxd; - __le32 vals[2]; + uint32_t vals[2]; }; }; -- 2.39.1