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 B0E80A04C1; Tue, 26 Nov 2019 09:35:27 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 83D015681; Tue, 26 Nov 2019 09:35:27 +0100 (CET) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60055.outbound.protection.outlook.com [40.107.6.55]) by dpdk.org (Postfix) with ESMTP id BBAAB5596 for ; Tue, 26 Nov 2019 09:35:25 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kKAdDNzDLTA3FCP7lJQCjuY04NNSXNO6DcRNqe0EBlsL7byYgYb4UwtHaoPBXLbHjg2NStjg8AcFpF0aW+Cb3X9fe1e79rq+4uc3Sl2KEfY+MCsN9z7G25K0sBNRNHZjlUucOWm3YRZNV6K6M/hiraUz5YD9KzAledUVEMwa9C8iWZR6f/CVs9agkAaD8PFzW5Zv2SO2Ki6VOtPw2yCbA3EQtpnmwfdccBYWXCGvqleHy0wndgaQr1eg1EBlNFzt9jaBnoCmpfMKS4faK4bGVU2VFAzyR1Bbijc/goolkawv7fxcSC3fWIzpK6HZa76+VwGmVa+GluZmj7ExXZ8cqA== 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=V9d9MXjWug3nhAowQeDJuQHqB28er2uHDyWoPCJxShg=; b=cK/rxWN+D6X4MNX0U26KpDTsL8SlV97ELa9d8apjoUnSQDxL/3gByR9MSRPTqwI28KyFKoycszloaItYZqKBO6l/ScCfLo47wNkXVmNb6KDiX/axp3dzFkxz9i5gJl3uUdllmb8rJ6E7vPD9vMSiVHZwHTqrDSUgrmtqZOXfecLauD8YIufmxHiIkk5pVn/mWWfIqD49TLosto4KK12lTRUcL+LrQWfo2zCNCHWvTqamyDLdz9cgwVR2aPXAo9PSqrFMlhzFLenJCEaSOQcOoZej+RLoBU+eVk1iZCQhUWW1pzL3dJP7UlE0RLSDpn/KBACwWqmz72undnxe7+RB5Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=V9d9MXjWug3nhAowQeDJuQHqB28er2uHDyWoPCJxShg=; b=aCchpYJ3pSGC234d20c75jnyp45Ga2uLCzfPKssvDyFgf7rM5HJeM4qH5W4+XCEUELvgwG26PlBo/Y32vrJBQWT749nDLSsFehA0D+/90FX+dzbx9Yf+JRGCm5VCCc+zxuuFPbWGYE/xXkwAWKTMyXD/z7IwxGQefqifdHwN8lg= Received: from AM0PR05MB4401.eurprd05.prod.outlook.com (52.134.124.20) by AM0PR05MB4420.eurprd05.prod.outlook.com (52.134.91.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2474.16; Tue, 26 Nov 2019 08:35:24 +0000 Received: from AM0PR05MB4401.eurprd05.prod.outlook.com ([fe80::91f1:9c5c:5b38:284e]) by AM0PR05MB4401.eurprd05.prod.outlook.com ([fe80::91f1:9c5c:5b38:284e%7]) with mapi id 15.20.2474.023; Tue, 26 Nov 2019 08:35:24 +0000 From: Ali Alnubani To: "dev@dpdk.org" Thread-Topic: [PATCH] net/mlx5: fix build with dlopen linkage Thread-Index: AQHVpDRy647emPT2f0m0jLeKILEtJQ== Date: Tue, 26 Nov 2019 08:35:24 +0000 Message-ID: <20191126083503.23498-1-alialnu@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.24.0 x-clientproxiedby: LO2P265CA0433.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:e::13) To AM0PR05MB4401.eurprd05.prod.outlook.com (2603:10a6:208:62::20) authentication-results: spf=none (sender IP is ) smtp.mailfrom=alialnu@mellanox.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [37.142.13.130] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: b3518e2e-9367-4e2c-2fd0-08d7724b94d2 x-ms-traffictypediagnostic: AM0PR05MB4420: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3276; x-forefront-prvs: 0233768B38 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(376002)(136003)(346002)(39860400002)(366004)(396003)(189003)(199004)(36756003)(2616005)(305945005)(7736002)(71190400001)(71200400001)(1730700003)(81166006)(81156014)(66476007)(66556008)(66946007)(64756008)(66446008)(8676002)(86362001)(2351001)(6916009)(66066001)(50226002)(8936002)(14444005)(14454004)(25786009)(256004)(6436002)(478600001)(386003)(6486002)(2906002)(6506007)(102836004)(5640700003)(52116002)(99286004)(26005)(186003)(3846002)(6116002)(5660300002)(1076003)(2501003)(6512007)(316002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR05MB4420; H:AM0PR05MB4401.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: qGfSbupi4wphwm0QX/81QWm0TpOK4KW8VSaZsQzdgNIkLSBaaveILnMJB/nRCfESU8Mfb4Xfe2Vo4Fqn0uqJyswuY7XFqJVrn+FXoVp3+douIn3MrJ+8ipWcDaegIszCQcPeFHKnfbCEjKg1VCv73Yp3Sy0A66BV35EtVNcA15Wyd0JUobFZEkintTeSbXpqhMTf6ydoOHiYH4E0ZrVagKfXRzyFcRWtoDPpmUn/uP4+gfu17ZGtFPWrJcpNsTYdgoiAepSwrv8rgGUZ0FDrRSdo+x5ix17+ZqXC1qVukXU9Qr3LnApJLV0mGh+OqxedCc8hptd3Gp3zMZPhkrilj8GeXoMphn2TuDes5skr9imODLhlpBr29teV3iGjBAsXdz9B8ZU0ljESYwzn7C8W98addHP1FHHNEyilEm9H+DH/fSautCFoKZWau0v6X8aR x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: b3518e2e-9367-4e2c-2fd0-08d7724b94d2 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Nov 2019 08:35:24.4898 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: MYQZQ/6GWFdpudDWcGF1J6t5q5irBDhqFxqZVS+5vu6EWuJPO4Llhn7ox6E7jJ7yZhWGvlIBMGUesmuOs4/+0Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB4420 Subject: [dpdk-dev] [PATCH] net/mlx5: fix build with dlopen linkage 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" The header mlx5_glue.h includes rte_byteorder.h, which isn't pulled by global_inc. This patch adds the missing include directory and fixes the build error: In file included from drivers/net/mlx5/mlx5_glue.c:31: drivers/net/mlx5/mlx5_glue.h:12:10: fatal error: rte_byteorder.h: No such file or directory The build failure can be triggered with: meson -Dibverbs_link=3Ddlopen build && ninja -C build Fixes: 400d985eb586 ("net/mlx5: add VLAN push/pop DR commands to glue") Signed-off-by: Ali Alnubani --- drivers/net/mlx5/meson.build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/net/mlx5/meson.build b/drivers/net/mlx5/meson.build index 05fadf608..d6b32db79 100644 --- a/drivers/net/mlx5/meson.build +++ b/drivers/net/mlx5/meson.build @@ -206,10 +206,14 @@ if pmd_dlopen and build dlopen_so_version =3D LIB_GLUE_VERSION dlopen_sources =3D files('mlx5_glue.c') dlopen_install_dir =3D [ eal_pmd_path + '-glue' ] + dlopen_includes =3D [global_inc] + dlopen_includes +=3D include_directories( + '../../../lib/librte_eal/common/include/generic', + ) shared_lib =3D shared_library( dlopen_lib_name, dlopen_sources, - include_directories: global_inc, + include_directories: dlopen_includes, c_args: cflags, dependencies: libs, link_args: [ --=20 2.24.0