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 5806DA0032; Thu, 16 Dec 2021 16:28:36 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 121F740696; Thu, 16 Dec 2021 16:28:36 +0100 (CET) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1anam02on2041.outbound.protection.outlook.com [40.107.96.41]) by mails.dpdk.org (Postfix) with ESMTP id 3061640143 for ; Thu, 16 Dec 2021 16:28:35 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ENXEBwYPwARuTibxov/9VBjYRMS5LYsG2yWPWENX1I5g+d8NiPM65jwRtrHWKPgH/LGnx38HQxkTwOw9zpyN1sbyAC7cL+KTKTYqNYNZ5nMMerlIiul5p7K+6cnx86WKaHMacyjEW5TaSLPVIL9Zp5ZiLVC9i1PLSZYXIBfFBVCDTuJqOsqeu6vDdaDWEf3kajwytoQkFP/nc1rSim5D4wZJsUu1gBrcJbd008D7VNNKdAuCgRe/IW9qdgH15V+pjna8lOBf2SiFQWYFv2jk9qBbHYzfOVtTNQnFFsPtATGdLZ2l9dXfVa3N8Fq9AUObEWtYW377sOdw5BlofANLfQ== 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=M3lhP0uSq0xJ8z58dfPBaaU8TQye9LFIFdDvootDPiw=; b=mAdqWIDTuw/QNfhz4caZ+8NUnxvraVdW2SEjLhviORzwERlGjEoXF77NK4D7XaBv5q66UPqSDkJwQp7hB4DRQEW5h4OmjpscNhuZKDhRi0eoSqQo2KySO09L4KV2mxqp8DKUYjAHpMMph+Qp4ur3FIcVv+XuIGn4pOAWBQC0HxWXC7wSfvXRft01FJDNsuf9HGMDgluE4Zs9AsjR629Xq7IPbpAB+ZGgd9+FH3R83Iims7kvC5px7tIr6+5lmcIiVvz3uM9Al4hRFhwHiGX4LEsDyo8Lpu0Ssfu7QhwtAZXBqxhnBnuer2h1Er7WWv4DSbEmOv9jOjssUeFLr9copA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 12.22.5.236) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=M3lhP0uSq0xJ8z58dfPBaaU8TQye9LFIFdDvootDPiw=; b=tg8ZCAhlJ40rTEaHP5CwLuHqVfhhFNpt60wwVOX/A09lUA/x4RWCS2ktk5Bel4BjsOgP6Boe+2Gnu55LSczh2YQm+7KNizi29Wdqw4JvLesOF+G0l+qQVQxyofYeEqA/Nt4Zx1b9D3sCf9Yf3EaYv/28BZaEkE26yU+PbbwpXqt+0oNO59eqn1BozYDXj3e8lw3bqIkrbpEpAlLJsTMdu4ChS8GToqR/TFESkX560C9yGjC8gkeQizrmeMZpORdHPKjNMDBNvrIqYQCeAtMl/pQBvkO4xDT0i2Q21mjmnPwU7pJ/oLu3XcI3ffi9G4J2HisC7Ky8HZFv10AHLlQHGA== Received: from BN9PR03CA0895.namprd03.prod.outlook.com (2603:10b6:408:13c::30) by MN2PR12MB3613.namprd12.prod.outlook.com (2603:10b6:208:c1::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4778.17; Thu, 16 Dec 2021 15:28:31 +0000 Received: from BN8NAM11FT013.eop-nam11.prod.protection.outlook.com (2603:10b6:408:13c:cafe::4c) by BN9PR03CA0895.outlook.office365.com (2603:10b6:408:13c::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4801.14 via Frontend Transport; Thu, 16 Dec 2021 15:28:31 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 12.22.5.236) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 12.22.5.236 as permitted sender) receiver=protection.outlook.com; client-ip=12.22.5.236; helo=mail.nvidia.com; Received: from mail.nvidia.com (12.22.5.236) by BN8NAM11FT013.mail.protection.outlook.com (10.13.176.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4801.14 via Frontend Transport; Thu, 16 Dec 2021 15:28:30 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by DRHQMAIL109.nvidia.com (10.27.9.19) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Thu, 16 Dec 2021 15:28:29 +0000 Received: from nvidia.com (172.20.187.5) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.986.9; Thu, 16 Dec 2021 07:28:29 -0800 From: To: CC: Elena Agostini Subject: [PATCH v1] net/mlx5: adding extern C to rte_pmd_mlx5.h Date: Thu, 16 Dec 2021 23:38:40 +0000 Message-ID: <20211216233840.16797-1-eagostini@nvidia.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.20.187.5] X-ClientProxiedBy: HQMAIL111.nvidia.com (172.20.187.18) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: cbf5d5d9-be28-4ce4-86a8-08d9c0a8b744 X-MS-TrafficTypeDiagnostic: MN2PR12MB3613:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1850; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: uy9y+sSTlGyIM6IIqFYDVemy+GYAM5j+wHr3yJafo0vA4z/rfxAYVaSTdFbZs/+xwJoPtnVB+TcHgeEYSCyjIF1RJpKqXlToON76IsbPQRdDtogLFI3nQUKGU1QwXHa0Qr0PtrrOffuaqf/SyVkntKJiulXmW5oQN1FwY3g0C5viI/taedNy7nNZ4nv49BX5A5XSxh5gsgsV/jglRNqPNwIcw1RyPllbfYWLjNW9ESu7t6WbQ8i9wFfTif91WQM6WZ73X7hP5shqZgqCOCh5onWLwp/NDDcXQ4FhU/Td5nLlXpwHEPosxR3fBglmqClWWtomyL5jhitfpybLNLeDlBJ+g0i99IS0ilq+Ph3CSaLH6tucOKvsT4cVrE/dJhOueD/To37Fl6Ghj7EaJvkrOoixNx1gwGIIah8rvc2uyw1IT1e1YMiDqs4T7RVouWN7CpLc41jrSfmkB54qtr6MO2rokQXUyy5CGCySpUWP5vGGBbQvDpj+PE4ClAefCE5K6Own5lryk9miMbyxG4rWjUPUTtZWhQ9qb39jjRmtVrKk8WwO5M/1rlkXlPH18bPsAgFcPyiUY8seGNu+1OQSpCB0HjrKuHYIsRv+01XW0NJu0Q8NZws5GEmUBNetJ0zgo6W737UHgsi2AA4pwDxJVmEWFX4OEAHeYmO3VLRo5Pj4UaM1P8CHYh0zyv2HkykZ/OjIvfRRfo8iF2tU3kp70ic4P0pL0JYQWFpEdyjHFZ/mVJflJTnYlhA7+P+Gdhj9qcYrFoe2a9fnfpjdpVGuhS/AIXSbbAy0w6ReoURYVVlc8fXY/yhv9Wp48AoNDHrxGjJYPDL9dfXSj/3QXHCHtg== X-Forefront-Antispam-Report: CIP:12.22.5.236; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:mail.nvidia.com; PTR:InfoNoRecords; CAT:NONE; SFS:(4636009)(36840700001)(46966006)(40470700001)(508600001)(16526019)(6666004)(186003)(70586007)(316002)(86362001)(36860700001)(4744005)(7696005)(107886003)(26005)(70206006)(2906002)(47076005)(8676002)(2876002)(6286002)(6916009)(36756003)(34020700004)(356005)(81166007)(4326008)(336012)(40460700001)(2616005)(5660300002)(82310400004)(55016003)(426003)(8936002)(1076003)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Dec 2021 15:28:30.9689 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cbf5d5d9-be28-4ce4-86a8-08d9c0a8b744 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[12.22.5.236]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT013.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB3613 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 From: Elena Agostini The support for linking rte_pmd_mlx5.h functions with C++ applications was missing. Signed-off-by: Elena Agostini --- drivers/net/mlx5/rte_pmd_mlx5.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/net/mlx5/rte_pmd_mlx5.h b/drivers/net/mlx5/rte_pmd_mlx5.h index e531e527b6..fc37a386db 100644 --- a/drivers/net/mlx5/rte_pmd_mlx5.h +++ b/drivers/net/mlx5/rte_pmd_mlx5.h @@ -13,6 +13,10 @@ * dynamic flags. */ +#ifdef __cplusplus +extern "C" { +#endif + #define RTE_PMD_MLX5_FINE_GRANULARITY_INLINE "mlx5_fine_granularity_inline" /** @@ -57,4 +61,8 @@ int rte_pmd_mlx5_get_dyn_flag_names(char *names[], unsigned int n); __rte_experimental int rte_pmd_mlx5_sync_flow(uint16_t port_id, uint32_t domains); +#ifdef __cplusplus +} +#endif + #endif -- 2.17.1