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 CE90DA04B7; Sun, 4 Oct 2020 09:50:58 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9FD771BE8C; Sun, 4 Oct 2020 09:50:57 +0200 (CEST) Received: from hqnvemgate25.nvidia.com (hqnvemgate25.nvidia.com [216.228.121.64]) by dpdk.org (Postfix) with ESMTP id 3B5471BDD8 for ; Sun, 4 Oct 2020 09:50:55 +0200 (CEST) Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Sun, 04 Oct 2020 00:50:00 -0700 Received: from HQMAIL107.nvidia.com (172.20.187.13) by HQMAIL111.nvidia.com (172.20.187.18) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Sun, 4 Oct 2020 07:50:52 +0000 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.108) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Sun, 4 Oct 2020 07:50:52 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UvHZgpRLwItkYuwndGEs2H+Fzo66YkS/7cGqm5cAkThbvUyQSp3cfsFZzduYDSloV0RJMpwz5tYvQRQvMiPuORKofLpwRmloR4fFNdVuApC0YD+TIEYZ1omgAKi8u6pcRtcTt4rY9tcTlIyUCIMJ45CNcLVhsNdv9xeh6wc6kGpjjYXWVIMhpwTB8kXJUhO82BltqVjSGMrUKjFWtHDssMdVwfDK3JrrKMmJOHBFkSKM2mwCxB3TXMvYPikwXTYQJsw+mUgz6SRsddxE04vPcYT4Sp+1UiM9HcElzQxgH0bCcw1T5LbnJw8Di+9Seg/hZ+mlOsDjHvRmqy5s3Hy+HA== 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=xZDa5vpX1Sw4n61S896iNowE2/bTEI9JwtAXE9SXm6s=; b=KswYCq3DXHozT4sAOUwS9HZo7wVWs16+8XXOvAQxakoAabXRuJRB+xSJUW+splAyUqaoWGOV8/GzKiaQkD23m4dvq23ngNb7bu6Ahl21ZHr1c8j2HbcVvPb37wqnD3xdQI7TZZwvD9LjnLfPtg8dc9vV5ozcBxC6CGsIoiNTTqfM9d4yW3l+BoXDR5YivFvL46BzXNJyNhubX6iAQOzyywmBFqxBUzPj0dfWyIkz59pV6zjSWrrCDDA9VmOLnzGFW7H4EUSjE2Z8DTQ9EGZJYknhAyQtDdjSdYM855WiExZY1xgqdC0SXWIL5rDAHah5t0b/R+DpwzfJ+lLwBUdeDw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none Received: from DM6PR12MB2748.namprd12.prod.outlook.com (2603:10b6:5:43::28) by DM5PR12MB1595.namprd12.prod.outlook.com (2603:10b6:4:3::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.32; Sun, 4 Oct 2020 07:50:51 +0000 Received: from DM6PR12MB2748.namprd12.prod.outlook.com ([fe80::f506:4af8:281b:cdeb]) by DM6PR12MB2748.namprd12.prod.outlook.com ([fe80::f506:4af8:281b:cdeb%7]) with mapi id 15.20.3433.043; Sun, 4 Oct 2020 07:50:51 +0000 From: Raslan Darawsheh To: Cristian Dumitrescu , "dev@dpdk.org" CC: NBU-Contact-Thomas Monjalon , "david.marchand@redhat.com" Thread-Topic: [dpdk-dev] [PATCH v7 32/42] pipeline: add SWX pipeline specification file Thread-Index: AQHWl95bALmGGAxSe0+ZoG38bErA5amHFjnw Date: Sun, 4 Oct 2020 07:50:51 +0000 Message-ID: References: <20200930063416.68428-2-cristian.dumitrescu@intel.com> <20201001102010.36861-1-cristian.dumitrescu@intel.com> <20201001102010.36861-33-cristian.dumitrescu@intel.com> In-Reply-To: <20201001102010.36861-33-cristian.dumitrescu@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=nvidia.com; x-originating-ip: [212.29.221.74] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: a0d1ccd0-d0fd-4291-a5a0-08d8683a3713 x-ms-traffictypediagnostic: DM5PR12MB1595: x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:451; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: oUNDP5k+roCzIwuME3G9J8501XpNPCi3XukmxBno/Dhb6pu/lFm2n3sNO1USkz7xNce6SZf+NzylU2ikKswAr3PT5eioursbvedZzjAsic3r+Nt+Jn4i0zqBnHi4WW62tIGA/CAevxWqIAwvd3eO1sC1UrVwyVOwZtgFlOJp25z1h47Mv5iZ28RiOerwku5L5NwKuK/ZaI4TWaeV4PxQn8ngfnYmG/kwYUasYYNt92D/ezUeACaRuDvK+GBALMZrdoh4uxb4IlVNyKENS1x6H3CKwycnJ3tIv9chjBf+u9gVaOp1HrQOk85vah662xHLvYUntf+Ww5schqHOSMLkVQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR12MB2748.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39850400004)(366004)(396003)(136003)(376002)(346002)(2906002)(8936002)(9686003)(76116006)(33656002)(66946007)(66446008)(64756008)(66556008)(66476007)(186003)(55016002)(83380400001)(52536014)(26005)(5660300002)(71200400001)(478600001)(7696005)(316002)(54906003)(110136005)(86362001)(6506007)(53546011)(4326008); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: U8Oed6DT5//i1mT+q2SLp4HQIJVQvvUUkFyoB8ogG4SohWKn3VddHbI6J/pFY3R2dEGyHw9nUy8tI53cRP8BwQheTza6mZBL3NygJ92QY04zW/NtNwk/hpb5GY5crrzj4iG4RzswxAQCiuh25JLcJaoQY3Iorw8ud9HshdM33njdCJqrICxmBvGMqsIEDauEVODxfGBrETuIAOrySeEHVNsfcVuRILL4IcsJTTnzDOXrVSmYDdJ7e2HhwJxihtz6uVnxWun0b4l8bQrvUGdnldmyzeaiE1xHJmY0l26JhLMoagKHPDsvjffup62RSy1k9icVOLhU8WnmYQCjd86YELNn4R21IlLHPsWutrlpl7PJip38m3PJ3PrKEY713iRZ0JCKLQEB6EaKq/Jb151RPPz4TQwX7TCopcxO/NO2FIpSL0GTl/0rVvbUDIPPH+Ic/HIKJ9Q34Nckx1PxD00R15qIDvwu0rLzB7I1hWS7ysZVND70SFkoVl2A8TtRFXQtgAOtLuRCQfV9R1zjUw/OQUqzMyvaf/OWRDtLzd+XB+dtmeupxNT5hyvRHdBXmYVdeFfFfm0biHVpzzEFgS6JFrox66r/Mqdg53VgjtPtb43/GzhBTcF+t6WTVXyKNqrR7BpZLR3LUOHQ6zs2LQP3Zw== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR12MB2748.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a0d1ccd0-d0fd-4291-a5a0-08d8683a3713 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Oct 2020 07:50:51.3192 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 9kYxK4gNcqtjQqEJhTbCE31qBH/GsjONLgMlKOXQkTVUVin8Xg+b0bHX4ebEz23DFXnEoOsSsCsqSzYqPB86eA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1595 X-OriginatorOrg: Nvidia.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1601797800; bh=xZDa5vpX1Sw4n61S896iNowE2/bTEI9JwtAXE9SXm6s=; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:From:To: CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References: In-Reply-To:Accept-Language:Content-Language:X-MS-Has-Attach: X-MS-TNEF-Correlator:authentication-results:x-originating-ip: x-ms-publictraffictype:x-ms-office365-filtering-correlation-id: x-ms-traffictypediagnostic:x-ld-processed: x-microsoft-antispam-prvs:x-ms-oob-tlc-oobclassifiers: x-ms-exchange-senderadcheck:x-microsoft-antispam: x-microsoft-antispam-message-info:x-forefront-antispam-report: x-ms-exchange-antispam-messagedata:x-ms-exchange-transport-forked: Content-Type:Content-Transfer-Encoding:MIME-Version: X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-AuthSource: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-originalarrivaltime: X-MS-Exchange-CrossTenant-fromentityheader: X-MS-Exchange-CrossTenant-id:X-MS-Exchange-CrossTenant-mailboxtype: X-MS-Exchange-CrossTenant-userprincipalname: X-MS-Exchange-Transport-CrossTenantHeadersStamped:X-OriginatorOrg; b=pokT2ZTOmumrWGnzRRuMrb3nZIYVntVXaB2xTDeB3DGZi2vE4OO/WIu54c1+chTqN uXkq3SmegHeTIEMT4T7cqM4GSpvg7Sh7Pi/UJKhhgzhNtKGPQpC6sh4VGm4bSzh4mc heGcga48+vtDu1Ml58W12kOjMFaOhvQYBniMgGroynT1s9GEDGdO5KW2kGJdS7IkpM EfjxNbsosBrnv+ZUtM1o/3gu+KHVGizBQJX2PQx9lKvoR4jZnj/wNfrrRpyGMwfdlj mjxw9OXsTp2coJsun1dhiy5i1pPZCCQQ3VshFVsWRBaQjxBwDS+haPD9Xi07+bfvPw VYVWP35Jg0ABw== Subject: Re: [dpdk-dev] [PATCH v7 32/42] pipeline: add SWX pipeline specification file 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" Hi, Resending to reply on the correct version,=20 > -----Original Message----- > From: dev On Behalf Of Cristian Dumitrescu > Sent: Wednesday, September 30, 2020 9:34 AM > To: dev@dpdk.org > Cc: NBU-Contact-Thomas Monjalon ; > david.marchand@redhat.com > Subject: [dpdk-dev] [PATCH v6 32/42] pipeline: add SWX pipeline > specification file >=20 > Add support for building the SWX pipeline based on specification file > with syntax aligned to the P4 language. The specification file may be > generated by the P4C compiler in the future. >=20 > Signed-off-by: Cristian Dumitrescu > --- > lib/librte_pipeline/meson.build | 1 + > lib/librte_pipeline/rte_pipeline_version.map | 1 + > lib/librte_pipeline/rte_swx_pipeline.h | 26 + > lib/librte_pipeline/rte_swx_pipeline_spec.c | 1439 ++++++++++++++++++ > 4 files changed, 1467 insertions(+) > create mode 100644 lib/librte_pipeline/rte_swx_pipeline_spec.c >=20 > diff --git a/lib/librte_pipeline/meson.build b/lib/librte_pipeline/meson.= build > index be1d9c3a4..65c1a8d6a 100644 > --- a/lib/librte_pipeline/meson.build > +++ b/lib/librte_pipeline/meson.build Seems like this patch introduced a new failure in compilation as following: ./../root/dpdk/lib/librte_pipeline/rte_swx_pipeline_spec.c:216:15: error: i= mplicit declaration of function 'reallocarray'; did you mean 'realloc'? [-W= error=3Dimplicit-function-declaration] new_fields =3D reallocarray(s->fields, ^~~~~~~~~~~~ realloc ../../root/dpdk/lib/librte_pipeline/rte_swx_pipeline_spec.c:216:15: error: = nested extern declaration of 'reallocarray' [-Werror=3Dnested-externs] ../../root/dpdk/lib/librte_pipeline/rte_swx_pipeline_spec.c:216:13: error: = assignment makes pointer from integer without a cast [-Werror=3Dint-convers= ion] new_fields =3D reallocarray(s->fields, ^ ../../root/dpdk/lib/librte_pipeline/rte_swx_pipeline_spec.c: In function 'a= ction_block_parse': ../../root/dpdk/lib/librte_pipeline/rte_swx_pipeline_spec.c:455:19: error: = assignment makes pointer from integer without a cast [-Werror=3Dint-convers= ion] new_instructions =3D reallocarray(s->instructions, ^ ../../root/dpdk/lib/librte_pipeline/rte_swx_pipeline_spec.c: In function 't= able_key_block_parse': ../../root/dpdk/lib/librte_pipeline/rte_swx_pipeline_spec.c:623:13: error: = assignment makes pointer from integer without a cast [-Werror=3Dint-convers= ion] new_fields =3D reallocarray(s->params.fields, ^ ../../root/dpdk/lib/librte_pipeline/rte_swx_pipeline_spec.c: In function 't= able_actions_block_parse': ../../root/dpdk/lib/librte_pipeline/rte_swx_pipeline_spec.c:703:19: error: = assignment makes pointer from integer without a cast [-Werror=3Dint-convers= ion] new_action_names =3D reallocarray(s->params.action_names, ^ ../../root/dpdk/lib/librte_pipeline/rte_swx_pipeline_spec.c: In function 'a= pply_block_parse': ../../root/dpdk/lib/librte_pipeline/rte_swx_pipeline_spec.c:1022:19: error:= assignment makes pointer from integer without a cast [-Werror=3Dint-conver= sion] new_instructions =3D reallocarray(s->instructions, ^ cc1: all warnings being treated as errors [502/2328] Compiling C object lib/librte_vhost.a.p/librte_vhost_vhost_crypt= o.c.o ninja: build stopped: subcommand failed. This is reproducible in the following environment: ARCH: aarch64 CC: gcc OS: Fedora 32 (Container Image) Kernel: 4.4.0-104-generic GCC(aarch64): aarch64-linux-gnu-gcc (Linaro GCC 7.1-2017.08) 7.1.1 = 20170707 Can you kindly help with providing a fix for it ? Kindest regards Raslan Darawsheh [Raslan Darawsheh] =