From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 38CB0A00BE; Tue, 7 Jul 2020 04:43:54 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9DBC21DD05; Tue, 7 Jul 2020 04:43:53 +0200 (CEST) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140088.outbound.protection.outlook.com [40.107.14.88]) by dpdk.org (Postfix) with ESMTP id E4DB61DD02 for ; Tue, 7 Jul 2020 04:43:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gbOjBE56OW/l4CHEagL8T8IPu+oPZuw+gQR/RWtQUfA=; b=2J3GpzFMq5hVgfmSeEN4s64MhuRB+P00KUH99x6pjq42i+nLl24Nzo3ozDvsMpsI4oIfAI5/IPyd5d4NuNq9Al6PryK1cuPQBmLcQDVvOWkkjszeqGfoQxL1cZF6zj66u0CUWrEqzA70161n1owYeYwnnQ7uQl3HPokEwrcMEoM= Received: from MR2P264CA0144.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:30::36) by AM0PR08MB4196.eurprd08.prod.outlook.com (2603:10a6:208:129::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3153.21; Tue, 7 Jul 2020 02:43:50 +0000 Received: from VE1EUR03FT029.eop-EUR03.prod.protection.outlook.com (2603:10a6:500:30:cafe::63) by MR2P264CA0144.outlook.office365.com (2603:10a6:500:30::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3153.20 via Frontend Transport; Tue, 7 Jul 2020 02:43:50 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dpdk.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dpdk.org; dmarc=bestguesspass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by VE1EUR03FT029.mail.protection.outlook.com (10.152.18.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3153.24 via Frontend Transport; Tue, 7 Jul 2020 02:43:49 +0000 Received: ("Tessian outbound 4e683f4039d5:v62"); Tue, 07 Jul 2020 02:43:49 +0000 X-CR-MTA-TID: 64aa7808 Received: from b618d94c573f.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id A0EF1E1F-A30A-4760-93C5-B64135BDDF07.1; Tue, 07 Jul 2020 02:43:44 +0000 Received: from EUR04-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id b618d94c573f.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 07 Jul 2020 02:43:44 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QF4o8PijoSn43Cl9B1u4TXf6EJ8+MT44yQH+LJS7klz1G6c+VXHNBVgONRZOT4kABKqlPZOd2n21/V7gwdKR2UpY6yOKdnT/OlH02RQZA68/6jyZh/P/SMe29ewzK1dIytHwGIbfSZZrV57eC2hzy72qqAo6yxMxgbseQ048awFhy9RD5H4yTw3XWbYcHGt1k9b7imlCkb/qAZ4uGnbWFKr29WRFASWJCnDePwWFDXUmcaqpGy9QvA6KDtKxz5TB6qRGd03Xt/kaJtxAsEksaYaHCrceH1BN6vl+G9Wpk0Dk1T2Xgb4uAySPmKwhDVWs5hAtVyeXfmm4BOVWd/nG4g== 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-SenderADCheck; bh=gbOjBE56OW/l4CHEagL8T8IPu+oPZuw+gQR/RWtQUfA=; b=IYju+fWsdrWvZsgSA6Fq7mC8hOyg2lhtRTwXWcvru1YszvlKvBnjIoKLUdC1U12+rwwbENW4GXmklBOAUVBwuYpj2OV2WLBjyXfCETJJ055G1UiwsB8ldS9m17xLl+7tTaSNlbcucWdb+WUG0L++loIToTDQk5bfXQcF8YKFjVY/zscbveLrLcc7TB7aIjZ74S75fB31rkpiLQPa07X1W47905U2AaxnoQeYUlE4nhvG+PMKtablRRkCE/QvCk4yjpvoKJSJqtrL3xjVBjNsz8ajZ1cp+l6PLOMQvlx1qmr+jcoL6vtSEt2/4pEyk0/cxpDb5IqFlR+zeBRVf3VEAw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gbOjBE56OW/l4CHEagL8T8IPu+oPZuw+gQR/RWtQUfA=; b=2J3GpzFMq5hVgfmSeEN4s64MhuRB+P00KUH99x6pjq42i+nLl24Nzo3ozDvsMpsI4oIfAI5/IPyd5d4NuNq9Al6PryK1cuPQBmLcQDVvOWkkjszeqGfoQxL1cZF6zj66u0CUWrEqzA70161n1owYeYwnnQ7uQl3HPokEwrcMEoM= Received: from HE1PR0801MB2025.eurprd08.prod.outlook.com (2603:10a6:3:50::14) by HE1PR0802MB2204.eurprd08.prod.outlook.com (2603:10a6:3:c7::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3153.29; Tue, 7 Jul 2020 02:43:40 +0000 Received: from HE1PR0801MB2025.eurprd08.prod.outlook.com ([fe80::e863:15c9:b803:6533]) by HE1PR0801MB2025.eurprd08.prod.outlook.com ([fe80::e863:15c9:b803:6533%7]) with mapi id 15.20.3153.029; Tue, 7 Jul 2020 02:43:40 +0000 From: Ruifeng Wang To: Joyce Kong , "maxime.coquelin@redhat.com" , "jerinj@marvell.com" , "zhihong.wang@intel.com" , "xiaolong.ye@intel.com" , "beilei.xing@intel.com" , "jia.guo@intel.com" , "john.mcnamara@intel.com" , "matan@mellanox.com" , "shahafs@mellanox.com" , "viacheslavo@mellanox.com" , Honnappa Nagarahalli , Phil Yang CC: "dev@dpdk.org" , nd , nd Thread-Topic: [PATCH v2 4/6] net/i40e: replace restrict with rte restrict Thread-Index: AQHWU2oU4606Dmm4P0Kb6Nt0+m7SFqj7afBw Date: Tue, 7 Jul 2020 02:43:40 +0000 Message-ID: References: <20200611033248.39049-1-joyce.kong@arm.com> <20200706074930.54299-1-joyce.kong@arm.com> <20200706074930.54299-5-joyce.kong@arm.com> In-Reply-To: <20200706074930.54299-5-joyce.kong@arm.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: 07626b40-ff11-4a29-af3a-dad5444b861d.0 x-checkrecipientchecked: true Authentication-Results-Original: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=arm.com; x-originating-ip: [203.126.0.112] x-ms-publictraffictype: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 5d724bc2-72f6-492c-7c97-08d8221f9423 x-ms-traffictypediagnostic: HE1PR0802MB2204:|AM0PR08MB4196: x-ld-processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr x-ms-exchange-transport-forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true x-ms-oob-tlc-oobclassifiers: OLM:1923;OLM:1923; x-forefront-prvs: 0457F11EAF X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: BQcJXYsiYKcQvtsnkYW+1oxOFUqlqlRO7vkH0ShMzIqBZfTXpuvXr/dr0t9iorBFtdEDLuSIYe/er2X7K3r8RHAtaeaigMDwhZF1W4h7SzHQMjOOsLb/Mfej5u3m2BQB6O+KM2i3fpCOy9pCUvtoxbRoxd1KBui7CbvBxCH8QwHrc9OqdL0oOgGuNB7gm7YURr8XWHEgua2Ad5Wxglt2oSbe0sC6IpPbqLq0uRO1m/x8jKL/JuXCspW1npIejVvR6+o6fXa66TUNMWq86HbGHpGlpRpGsYXayz0gG8GBy1jFvQN8FPxA/zFkAEQtWUIMkveNxH7R97ZE/HnHjqHMtF49tCS3LJ05dThueWhOFq45JuK9HNzIQp1HbrHnFD+g X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:HE1PR0801MB2025.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(366004)(39860400002)(136003)(346002)(376002)(396003)(26005)(53546011)(83380400001)(186003)(66946007)(66476007)(76116006)(8676002)(52536014)(66446008)(64756008)(66556008)(55016002)(4326008)(8936002)(6636002)(7416002)(6506007)(478600001)(110136005)(54906003)(33656002)(71200400001)(86362001)(2906002)(7696005)(5660300002)(316002)(9686003)(921003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: JmL6Nwb7pR4MYDzmAkTAGNYCq03mGuS3GGtSy1EdnL4M3BubN3UsrdyjRHraoYSbdojyZN0uxmaXjHr4Kz1PW+0B20Z9/z4Bdedw3RBm4bxofS6ydE4/u/fgMy0o2kfiXNAA/5XsboJbuSUsK4vzNCIoHQMNImh/qeYF8T/EqjAM/WKkVk8s/nJnOGI0yW6V7DPqttWO4ovT7G4DK4i0X6jgRH6KnUAMe5BCpgzhN39xajPt80kttqTUHBfzmJv2kdRo771LeEhf5fPvAEoQEG3nyRGB3zLEiIeieOu8fgomW2S3DzdRP5EX0vnP5MhyJZ1TD0xQvK8eYKtdCVrhDthmDdYDPmSOkqOEbY3S7yHaSMhqg6q5wm9TbBQ0GHqnjFSpzGQR+lGWl9L44YcMUlDEa2FY57a63svA6BMz69EgUXQsjs29BZBPdEyCceUy64eAO2G2lcI7UQIHt3w+qnC+vMylHOOAfxQWcqnbhJI= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0802MB2204 Original-Authentication-Results: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT029.eop-EUR03.prod.protection.outlook.com X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFTY:; SFS:(4636009)(136003)(376002)(346002)(396003)(39860400002)(46966005)(47076004)(186003)(5660300002)(2906002)(336012)(52536014)(9686003)(55016002)(54906003)(8676002)(33656002)(53546011)(70206006)(82310400002)(83380400001)(6636002)(26005)(70586007)(6506007)(82740400003)(110136005)(4326008)(7696005)(356005)(8936002)(81166007)(86362001)(36906005)(478600001)(316002)(921003); DIR:OUT; SFP:1101; X-MS-Office365-Filtering-Correlation-Id-Prvs: 44dbcc3d-21cf-4ac9-dedd-08d8221f8ecd X-Forefront-PRVS: 0457F11EAF X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xSHbHKJuH9yVUJkIOL3VcAPQ6fvvbQlivMFzLVx51clGbTv/2e7Pk0S2wOEwiwLbG2WQn6QNvs0GRGjM+KUYeMJMiRd+y4m4tdYnkEH/Em2rE1DtUrroef01hqTril9OMUMx7c7YQQcC5pfmLFaM67U2RY/kpu+q+kam99NREZO6s+5NH+P4jT+a3EXcI1Ppv42Xrro8BBwdTP1FXLFxyiM/+Mw4eXrD9Q4deUxjYUQtatkwNl0gcEXphpbhVnQACLPyXFXjDshlvDDOcUhs/qsGOODlPkllzuQ3e8xXfpPuamWS7kpi6zQTQCwp3xLucT6sBkuz1iUlvwY5t0+5Prz3uR+AH/aCMjxX6DEEEtRpL0iU1KmQvAZHal1nKoHEP3Z3JLiXpecA8GcnNoSLVaJx6THHd8JM1yBaM6Fl36s= X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jul 2020 02:43:49.6491 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5d724bc2-72f6-492c-7c97-08d8221f9423 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: VE1EUR03FT029.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB4196 Subject: Re: [dpdk-dev] [PATCH v2 4/6] net/i40e: replace restrict with rte restrict X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > -----Original Message----- > From: Joyce Kong > Sent: Monday, July 6, 2020 3:49 PM > To: maxime.coquelin@redhat.com; jerinj@marvell.com; > zhihong.wang@intel.com; xiaolong.ye@intel.com; beilei.xing@intel.com; > jia.guo@intel.com; john.mcnamara@intel.com; matan@mellanox.com; > shahafs@mellanox.com; viacheslavo@mellanox.com; Honnappa Nagarahalli > ; Phil Yang ; > Ruifeng Wang > Cc: dev@dpdk.org; nd > Subject: [PATCH v2 4/6] net/i40e: replace restrict with rte restrict >=20 > '__rte_restrict' is a common wrapper for restricted pointers which can be > supported by all compilers. Use '__rte_restrict' instead of '__restrict' = for > code consistency. >=20 > Signed-off-by: Joyce Kong > --- > drivers/net/i40e/i40e_rxtx_vec_neon.c | 17 +++++++++-------- > 1 file changed, 9 insertions(+), 8 deletions(-) >=20 > diff --git a/drivers/net/i40e/i40e_rxtx_vec_neon.c > b/drivers/net/i40e/i40e_rxtx_vec_neon.c > index 1dfd0478b..4574139d5 100644 > --- a/drivers/net/i40e/i40e_rxtx_vec_neon.c > +++ b/drivers/net/i40e/i40e_rxtx_vec_neon.c > @@ -172,8 +172,8 @@ desc_to_olflags_v(struct i40e_rx_queue *rxq, > uint64x2_t descs[4], #define I40E_UINT16_BIT (CHAR_BIT * sizeof(uint16_t= )) >=20 > static inline void > -desc_to_ptype_v(uint64x2_t descs[4], struct rte_mbuf **__restrict rx_pkt= s, > - uint32_t *__restrict ptype_tbl) > +desc_to_ptype_v(uint64x2_t descs[4], struct rte_mbuf **__rte_restrict > rx_pkts, > + uint32_t *__rte_restrict ptype_tbl) > { > int i; > uint8_t ptype; > @@ -194,8 +194,9 @@ desc_to_ptype_v(uint64x2_t descs[4], struct > rte_mbuf **__restrict rx_pkts, > * numbers of DD bits > */ > static inline uint16_t > -_recv_raw_pkts_vec(struct i40e_rx_queue *__restrict rxq, struct rte_mbuf > - **__restrict rx_pkts, uint16_t nb_pkts, uint8_t *split_packet) > +_recv_raw_pkts_vec(struct i40e_rx_queue *__rte_restrict rxq, > + struct rte_mbuf **__rte_restrict rx_pkts, > + uint16_t nb_pkts, uint8_t *split_packet) > { > volatile union i40e_rx_desc *rxdp; > struct i40e_rx_entry *sw_ring; > @@ -432,8 +433,8 @@ _recv_raw_pkts_vec(struct i40e_rx_queue > *__restrict rxq, struct rte_mbuf > * numbers of DD bits > */ > uint16_t > -i40e_recv_pkts_vec(void *__restrict rx_queue, > - struct rte_mbuf **__restrict rx_pkts, uint16_t nb_pkts) > +i40e_recv_pkts_vec(void *__rte_restrict rx_queue, > + struct rte_mbuf **__rte_restrict rx_pkts, uint16_t nb_pkts) > { > return _recv_raw_pkts_vec(rx_queue, rx_pkts, nb_pkts, NULL); } > @@ -504,8 +505,8 @@ vtx(volatile struct i40e_tx_desc *txdp, struct > rte_mbuf **pkt, } >=20 > uint16_t > -i40e_xmit_fixed_burst_vec(void *__restrict tx_queue, > - struct rte_mbuf **__restrict tx_pkts, uint16_t nb_pkts) > +i40e_xmit_fixed_burst_vec(void *__rte_restrict tx_queue, > + struct rte_mbuf **__rte_restrict tx_pkts, uint16_t nb_pkts) > { > struct i40e_tx_queue *txq =3D (struct i40e_tx_queue *)tx_queue; > volatile struct i40e_tx_desc *txdp; > -- > 2.27.0 Reviewed-by: Ruifeng Wang