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 8A30AA0524; Sat, 7 Nov 2020 10:00:59 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9CFB42C2E; Sat, 7 Nov 2020 10:00:57 +0100 (CET) Received: from mail-pf1-f193.google.com (mail-pf1-f193.google.com [209.85.210.193]) by dpdk.org (Postfix) with ESMTP id B42B8F90 for ; Sat, 7 Nov 2020 10:00:55 +0100 (CET) Received: by mail-pf1-f193.google.com with SMTP id y7so3892872pfq.11 for ; Sat, 07 Nov 2020 01:00:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9UVC6FtlVjIsIaNs/QEFeHUcyfVa2PN9SfvT29DjUQA=; b=dUmS0DWMyIJOZX+Kz9xbpiM6kN18hbtVszReG/qzxkPm77HZ5ku1kxxdpE1auxvYye 5Or+NK+AN8zBh8h5T+sVKKRF/0gkqsA2uXSKKCo/60cAmLPkZwW8aqJf2OA+q5urKJDd OYXGzBNicCehi4DZ8VFVzM6WYk25RsgFlloJi1NHdIgu+DRyaoJ34cuaxHPWSTTBMHoG Gy2MdlDEMOl/YKqTPA3HvWblIHDupG/I5z1VmHlcIJcTCjzHimy3lNtnQ928UJXwvH3A 5Gyx5j4Ib8GPx8duHdnd2x76MSZR3aCNZd5CXchZ6GQ4kW8ArNLGavyXkp5Qc+hgUvGI MkRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9UVC6FtlVjIsIaNs/QEFeHUcyfVa2PN9SfvT29DjUQA=; b=SCJuP3Awg6yZ2L9QbUe5nvDUM/n5yyaCD/sgwrueE3PDuylbS8w0BXwA3FpSSx7LQk +6wTgIc9LP6akaNRBoRmHWgRfzKEzd0ptH2HcPOYBY1TiWUqIskN6g5avGbdv9c3tUHt jvFgp3A0dzYM2wZY8Nu8CS4moVhqiVG4NBOJ45Ve5YtUkHnLRlxmkNmmPsF83o01NEqL XdWpkVQ+n6LFd/ftYfga4e6HkMz75MoIaJyb+mvHWf85MGp0LBXWYmWJwXu20AUE9oH4 nMtIiCU1oUwNnkNyxHADWAgGk/hF94D/KHi2Wt1pldhEl9dznIdaPThSyvnly121Sbvv 4X/A== X-Gm-Message-State: AOAM530gLkBxtE4VVu7CaPbGGfchYaqDIboAY4tpOXdbT7KDR1N3bSX2 SHN+zcpjAy9eox6LlyrbA48= X-Google-Smtp-Source: ABdhPJzZO/l1RmoI1Bf44STdO7yrSWP/Oh5TtfpEytITbJvPpmHxIpJoQM0OgNnrgMRtc4yedUrURg== X-Received: by 2002:a62:5a07:0:b029:155:73a4:d73a with SMTP id o7-20020a625a070000b029015573a4d73amr5508826pfb.22.1604739653690; Sat, 07 Nov 2020 01:00:53 -0800 (PST) Received: from localhost.localdomain ([106.212.128.45]) by smtp.gmail.com with ESMTPSA id hi10sm8497971pjb.0.2020.11.07.01.00.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Nov 2020 01:00:53 -0800 (PST) From: Prateek Agarwal To: jia.guo@intel.com Cc: dev@dpdk.org, Prateek Agarwal Date: Sat, 7 Nov 2020 14:30:38 +0530 Message-Id: <20201107090038.12802-1-pratekag@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] Made i40 header CPP compatible using extern "C". Library headers work directly in cpp code. Linking errors thrown due to the absence of this change in i40e pmd header does not help in resolving the problem. I needed this header directly to use DDP feature present in the NIC. 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" Signed-off-by: Prateek Agarwal --- drivers/net/i40e/rte_pmd_i40e.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/net/i40e/rte_pmd_i40e.h b/drivers/net/i40e/rte_pmd_i40e.h index fc3560c28..4cb21c371 100644 --- a/drivers/net/i40e/rte_pmd_i40e.h +++ b/drivers/net/i40e/rte_pmd_i40e.h @@ -14,6 +14,10 @@ * */ +#ifdef __cplusplus +extern "C" { +#endif + #include #include #include @@ -1130,4 +1134,8 @@ __rte_experimental int rte_pmd_i40e_set_switch_dev(uint16_t port_id, struct rte_eth_dev *switch_dev); +#ifdef __cplusplus +} +#endif + #endif /* _PMD_I40E_H_ */ -- 2.25.1