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 9E9CCA04B7; Sun, 4 Oct 2020 09:49:05 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EA2011BDD8; Sun, 4 Oct 2020 09:49:03 +0200 (CEST) Received: from nat-hk.nvidia.com (nat-hk.nvidia.com [203.18.50.4]) by dpdk.org (Postfix) with ESMTP id E0CFB1BD16 for ; Sun, 4 Oct 2020 09:49:00 +0200 (CEST) Received: from HKMAIL101.nvidia.com (Not Verified[10.18.92.77]) by nat-hk.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Sun, 04 Oct 2020 15:48:59 +0800 Received: from HKMAIL102.nvidia.com (10.18.16.11) by HKMAIL101.nvidia.com (10.18.16.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Sun, 4 Oct 2020 07:48:54 +0000 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.101) by HKMAIL102.nvidia.com (10.18.16.11) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Sun, 4 Oct 2020 07:48:54 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WRRm0IFMlp4I7yHBxNxhuMFyyv/i5pU93tORJW4m1R0+ge39Qr/ivwshl3J17Ml9QmdcYtPYAo/c7utevi81NCE7Jmb/bLCc/KExrPERnO3bx3bNEiZfHm7B5xfC6Dh5y9DdYWzRJyWVNfq3xtb+rZEuIq4Jja7IaPzbssFcWyJAuKFWKKbDbS7aRvFUfxi0YD/InXm/agdkRoYiDObaew8ubZ1Jb8YV+G8YbSpVn5ZivopX4Jf9oRBUE8xhyPTuW8EZxJp1o5dDonsZEy/3Z89/7Dd0U7ExQh1cmOzIbAfhDc6BhKyIapWzoLVrj46YuS52Sj9Hm88/oEaBW6YWyA== 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=7EZZ5xYDA0JLbFM0aZPKhiLT4TcFOcui0ZLAryNB/EQ=; b=mJTE3EahAdnyaVC953u0VRC0k40+RCQ5fnCI3wOGaZGhZ4AsenanAgtYdA+7CqYmZlRfF7d/j9YkT4vSkiEmQ7G1vLuhZMZYtwto7I1vtrbLNrI/Ko/z2rN7QcaoPMmlhO5QwLbYy5jz3cyHz7eN/AbDnGHqJT7hUXDn+Gw4aheY8N+Gx5uzhJpcx1WwI2HvXIhS6OfwhV6H6PKa7CSaRxaGU5qJ+RUawNbUQK7/UYD1Cw5Ud+E+TbkVJc5u+ftkr5S1JXcRe6muJpexb9Y3kUnIC592C+njHxHx/MiK+karBoF8RsLZScFMzT47n8cbvGPNOz3mUa9XS08o4QSoUQ== 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:48: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:48: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 v6 32/42] pipeline: add SWX pipeline specification file Thread-Index: AQHWlvV3mqAmRwMO2UaQDaZsBBtioKmHFvTw Date: Sun, 4 Oct 2020 07:48:51 +0000 Message-ID: References: <20200923180645.55852-2-cristian.dumitrescu@intel.com> <20200930063416.68428-1-cristian.dumitrescu@intel.com> <20200930063416.68428-33-cristian.dumitrescu@intel.com> In-Reply-To: <20200930063416.68428-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: b104a6e9-4b4d-4e9d-d81e-08d86839ef5c x-ms-traffictypediagnostic: DM5PR12MB1595: x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:381; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: fxyUpwgxG7h09QD8VnHzuRBF1ftgFZbMUwpXT8mMRuIWW6bhPSooJnaoCArCgcBHb1EZ9OobwYGYrhIXs1XftoIUfOiJYNE/rnreFoSHXmEM8xilvFM/EVG2Yo8sovTJbh2loSFhwlQUo9fckIvw3dyJ8E/U79eZgFZZsmxNrFJcdMtndlBxa4SE+6js/eVNwPRiNRlN8apWkWgVLOjH8t3nBCYx0/B3TOENvcVyo4UbHuV/xqR6G7URyanCPNv9lQNGkmkyvP/ggwH+j/UN12uiuNbsutO3Q5I25HC40mdRKIa8n3qFplwXNIwiLL+CtZ2+z4sHvqv46Xg+ugXh5A== 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: rbgk5klpTZYtKQhNIFXZ0sm0sXSIdcrPtKNHiEWbpNC+ijx+8RxquJIhwaqS/Wt9UsdSEfR0YfWf/KvaqR8s5B6IiSlKuQgXibvyhEfKdOhaeCn3TrMgejcQOcN4Fa5GkJx/W74uQw+AP9AhevM6WAGSI13DYrX2gG0kcBkWPCFsuirEXlEowaFXKa6ICZK+Cjo34iiA54Qj0X+W8qTKqefLGOuIz1G0pTJXqUm6Bv+4RXtaPEQSO0SRJANgLBzXhA0bebVUz/XFWS5Pwnn86jW5uDiKoHxLwwdloog9OLnjCwYoBZQHnLvFgkH3+DumS9DwEPwW2ufmCdEVKXnIMLJKwOxVNXgzAdbgHqdPRoBHf3HHNQBf3yUb2fWBk9hC4DyLm890Xd9Q0HtCSXcNCU6Zi4ajuyPvAy7hMnfYQRFcO0akUhcRGqr1zvjYR8M35CDmUGieF2vHmQBV291Chpg5/Y20PEsUPFUmEe37VMuyXi9xeigXV+mfQdyRq3EAUPTvdoWpUv/siYdp0ueWBT/Gh2OF8epUPRKdFVhtceEjif9/lInJq/l7O/Tl8XR4N8IYaNaye9/gCst292RVGdZvfQCZKiZaG/fTd2evA4MwVnZvklN0cT8kuVz/gR45pgeJNegi00V7ooajzOaZvw== 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: b104a6e9-4b4d-4e9d-d81e-08d86839ef5c X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Oct 2020 07:48:51.0379 (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: aBy0uBqNHSYIYciy44ldHPKr8RdQAIOl6BMG1gLmNue/3JYU+Depl5gDzXWpxbU2Dxx+2Xs5M1pATr/KKnx+WQ== 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=1601797739; bh=7EZZ5xYDA0JLbFM0aZPKhiLT4TcFOcui0ZLAryNB/EQ=; 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=MX0Gjx8pUksIYm5wi0B7KnBTkZIjXy6lZ1V11ocaaJS8rdIrTGC3zPseT48iTNqmu DAnCfT0QwOjSoAaZwwGbLP1MZWUGpxVfPmnvXjwjXUhblSeZHTyfd7FTBFcCGXDIy1 JnwSJrVEh9MnY1VYEsU9re2BnZVIinx5kAYf/aYlHuEhZBOxCYAxlx2wnA4cVk4mtg bY2V7rM9AjtcU9s0YvaskIk+19gF2W9hGrDhCGB1w2uHqZqxdOKGVzdn6rccLllMB+ kXXsSLpzg25Mqic49kBM7YMdHUgUGDyFdvF0PoTEPQY6IRhy+xglqHsz9cTqazUD9N 6z04dblentzgA== Subject: Re: [dpdk-dev] [PATCH v6 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, > -----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