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 us
Hi, Agarwal
Quoted 10 lines
-----Original Message-----
From: Prateek Agarwal <[email protected]>
Sent: Saturday, November 7, 2020 5:01 PM
To: Guo, Jia <[email protected]>
Cc: [email protected]; Prateek Agarwal <[email protected]>
Subject: [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...
Obviously that is not you want to merge the title and the commit log. Please separate it and update one new version.
Quoted 31 lines
Signed-off-by Prateek Agarwal <[email protected]>--- drivers/net/i40e/rte_pmd_i40e.h | 8 ++++++++ 1 file changed, 8 insertions(+)(quoted diff) +0
-0
b/drivers/net/i40e/rte_pmd_i40e.hindexfc3560c28..4cb21c371100644drivers/net/i40e/rte_pmd_i40e.h +4
-0@@ -14,6 +14,10 @@* */ +#ifdef __cplusplus +extern "C" { +#endif +#include <rte_compat.h> #include <rte_ethdev.h> #include <rte_ether.h> @@ -1130,4 +1134,8 @@ __rte_experimental int
rte_pmd_i40e_set_switch_dev(uint16_t port_id, struct rte_eth_dev *switch_dev);drivers/net/i40e/rte_pmd_i40e.h +4
-1+#ifdef __cplusplus +} +#endif +#endif /* _PMD_I40E_H_ */ --2.25.1
Zhang, Qi Z
AppliedRe: [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 d...
Quoted 25 lines
-----Original Message-----
From: dev <[email protected]> On Behalf Of Guo, Jia
Sent: Monday, November 9, 2020 2:24 PM
To: Prateek Agarwal <[email protected]>
Cc: [email protected]
Subject: Re: [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 d...Hi, Agarwal
Quoted 10 lines
-----Original Message-----
From: Prateek Agarwal <[email protected]>
Sent: Saturday, November 7, 2020 5:01 PM
To: Guo, Jia <[email protected]>
Cc: [email protected]; Prateek Agarwal <[email protected]>
Subject: [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...
Quoted 2 lines
Obviously that is not you want to merge the title and the commit log. Please separate it and update one new version.
Fixed the format during merge as below
net/i40e: add extern "C" for cpp compile
Add extern "C" in rte_pmd_i40e.h when be compiled with cpp.
Applied to dpdk-next-net-intel.
Thanks
Qi
Quoted 32 lines
Quoted 32 lines
Signed-off-by Prateek Agarwal <[email protected]>--- drivers/net/i40e/rte_pmd_i40e.h | 8 ++++++++ 1 file changed, 8 insertions(+)(quoted diff) +0
-0
b/drivers/net/i40e/rte_pmd_i40e.hindexfc3560c28..4cb21c371100644drivers/net/i40e/rte_pmd_i40e.h +4
-0@@ -14,6 +14,10 @@* */ +#ifdef __cplusplus +extern "C" { +#endif +#include <rte_compat.h> #include <rte_ethdev.h> #include <rte_ether.h> @@ -1130,4 +1134,8 @@ __rte_experimental int
rte_pmd_i40e_set_switch_dev(uint16_t port_id, struct rte_eth_dev *switch_dev);drivers/net/i40e/rte_pmd_i40e.h +4
-1+#ifdef __cplusplus +} +#endif +#endif /* _PMD_I40E_H_ */ --2.25.1
Re: [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 d...
Quoted 29 lines · Qi Z
Quoted 25 lines
-----Original Message-----
From: dev <[email protected]> On Behalf Of Guo, Jia
Sent: Monday, November 9, 2020 2:24 PM
To: Prateek Agarwal <[email protected]>
Cc: [email protected]
Subject: Re: [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 d...Hi, Agarwal
Quoted 10 lines
-----Original Message-----
From: Prateek Agarwal <[email protected]>
Sent: Saturday, November 7, 2020 5:01 PM
To: Guo, Jia <[email protected]>
Cc: [email protected]; Prateek Agarwal <[email protected]>
Subject: [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...Quoted 2 lines
Obviously that is not you want to merge the title and the commit log. Please separate it and update one new version.
Quoted 8 lines
Fixed the format during merge as below
net/i40e: add extern "C" for cpp compile
Add extern "C" in
rte_pmd_i40e.hwhen be compiled with cpp.Applied to dpdk-next-net-intel.
Hi Prateek,
In the git history, we have your name as:
"Prateek Agarwal <[email protected]>"
We are trying to keep authors unique in the git history, as much as possible, will be OK to continue with the one in the git history?
Re: [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 d...
Quoted 39 lines · Ferruh Yigit
Quoted 29 lines · Qi Z
Quoted 25 lines
-----Original Message-----
From: dev <[email protected]> On Behalf Of Guo, Jia
Sent: Monday, November 9, 2020 2:24 PM
To: Prateek Agarwal <[email protected]>
Cc: [email protected]
Subject: Re: [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 d...Hi, Agarwal
Quoted 10 lines
-----Original Message-----
From: Prateek Agarwal <[email protected]>
Sent: Saturday, November 7, 2020 5:01 PM
To: Guo, Jia <[email protected]>
Cc: [email protected]; Prateek Agarwal <[email protected]>
Subject: [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...Quoted 2 lines
Obviously that is not you want to merge the title and the commit log. Please separate it and update one new version.
Quoted 8 lines
Fixed the format during merge as below
net/i40e: add extern "C" for cpp compile
Add extern "C" in
rte_pmd_i40e.hwhen be compiled with cpp.Applied to dpdk-next-net-intel.
Quoted 6 lines
Hi Prateek,
In the git history, we have your name as:
"Prateek Agarwal <[email protected]>"We are trying to keep authors unique in the git history, as much as possible, will be OK to continue with the one in the git history?
Using the one in the git history, thanks.