Skip to contentSkip to conversation

net/mlx5: adding extern C to rte_pmd_mlx5.h

PATCH In review [email protected] 3 participants 3 messages Dec 16, 2021 – Feb 2, 2022 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/mlx5: adding extern C to rte_pmd_mlx5.h

From: Elena Agostini <[email protected]>

The support for linking rte_pmd_mlx5.h functions with C++ applications was missing.

---
 drivers/net/mlx5/rte_pmd_mlx5.h | 8 ++++++++
 1 file changed, 8 insertions(+)
drivers/net/mlx5/rte_pmd_mlx5.h +8 -0
index e531e527b6..fc37a386db 100644
@@ -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
Signature · 1 line
2.17.1
Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines

-----Original Message-----
From: [email protected] <[email protected]>
Sent: Friday, December 17, 2021 1:39
To: [email protected]
Cc: Elena Agostini <[email protected]>
Subject: [PATCH v1] net/mlx5: adding extern C to rte_pmd_mlx5.h

Quoted 6 lines

From: Elena Agostini <[email protected]>

The support for linking rte_pmd_mlx5.h functions with C++ applications was missing.

#2 lore raw
In reply to [email protected]

Hi,

Quoted 7 lines

-----Original Message-----
From: [email protected] <[email protected]>
Sent: Friday, December 17, 2021 1:39 AM
To: [email protected]
Cc: Elena Agostini <[email protected]>
Subject: [PATCH v1] net/mlx5: adding extern C to rte_pmd_mlx5.h

Quoted 6 lines

From: Elena Agostini <[email protected]>

The support for linking rte_pmd_mlx5.h functions with C++ applications was missing.

Patch applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh