DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH v1] net/mlx5: adding extern C to rte_pmd_mlx5.h
@ 2021-12-16 23:38 eagostini
  2022-01-25  9:34 ` Slava Ovsiienko
  2022-02-02 13:26 ` Raslan Darawsheh
  0 siblings, 2 replies; 3+ messages in thread
From: eagostini @ 2021-12-16 23:38 UTC (permalink / raw)
  To: dev; +Cc: Elena Agostini

From: Elena Agostini <eagostini@nvidia.com>

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

Signed-off-by: Elena Agostini <eagostini@nvidia.com>
---
 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-02-02 13:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-16 23:38 [PATCH v1] net/mlx5: adding extern C to rte_pmd_mlx5.h eagostini
2022-01-25  9:34 ` Slava Ovsiienko
2022-02-02 13:26 ` Raslan Darawsheh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).