common/mlx5: add Windows exports file
authorTal Shnaiderman <talshn@nvidia.com>
Mon, 28 Dec 2020 09:54:20 +0000 (11:54 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Jan 2021 15:03:07 +0000 (16:03 +0100)
File drivers/common/mlx5/rte_common_mlx5_exports.def contains mlx5
Windows exported symbols under common/mlx5 directory (DLL file
name librte_common_mlx5*.dll). It is the equivalent of Linux map
file version.map but the list of symbols may be
different between the two operating systems.

Signed-off-by: Tal Shnaiderman <talshn@nvidia.com>
Signed-off-by: Ophir Munk <ophirmu@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
devtools/check-symbol-maps.sh
drivers/common/mlx5/rte_common_mlx5_exports.def [new file with mode: 0644]

index 0e097ee..c3cbcaf 100755 (executable)
@@ -38,6 +38,9 @@ fi
 find_orphan_windows_symbols ()
 {
     for def in $(find lib drivers -name '*_exports.def') ; do
+        if echo $def | grep -q 'common_mlx5' ; then
+            continue # mlx5 exports different symbols per OS
+        fi
         map=$(dirname $def)/version.map
         for sym in $(grep -v ^EXPORTS $def); do
             grep -q $sym $map || echo $sym
diff --git a/drivers/common/mlx5/rte_common_mlx5_exports.def b/drivers/common/mlx5/rte_common_mlx5_exports.def
new file mode 100644 (file)
index 0000000..be68f97
--- /dev/null
@@ -0,0 +1,61 @@
+EXPORTS
+       haswell_broadwell_cpu
+
+       mlx5_common_init
+
+       mlx5_create_mr_ext
+
+       mlx5_devx_cmd_create_cq
+       mlx5_devx_cmd_create_flex_parser
+       mlx5_devx_cmd_create_qp
+       mlx5_devx_cmd_create_rq
+       mlx5_devx_cmd_create_rqt
+       mlx5_devx_cmd_create_sq
+       mlx5_devx_cmd_create_tir
+       mlx5_devx_cmd_create_td
+       mlx5_devx_cmd_create_tis
+       mlx5_devx_cmd_create_virtq
+       mlx5_devx_cmd_destroy
+       mlx5_devx_cmd_flow_counter_alloc
+       mlx5_devx_cmd_flow_counter_query
+       mlx5_devx_cmd_flow_dump
+       mlx5_devx_cmd_mkey_create
+       mlx5_devx_cmd_modify_qp_state
+       mlx5_devx_cmd_modify_rq
+       mlx5_devx_cmd_modify_rqt
+       mlx5_devx_cmd_modify_sq
+       mlx5_devx_cmd_modify_tir
+       mlx5_devx_cmd_modify_virtq
+       mlx5_devx_cmd_qp_query_tis_td
+       mlx5_devx_cmd_query_hca_attr
+       mlx5_devx_cmd_query_parse_samples
+       mlx5_devx_cmd_query_virtq
+       mlx5_devx_cmd_register_read
+       mlx5_devx_get_out_command_status
+       mlx5_devx_cmd_create_flow_hit_aso_obj
+
+       mlx5_get_dbr
+
+       mlx5_malloc_mem_select
+       mlx5_mr_btree_init
+       mlx5_mr_btree_free
+       mlx5_mr_btree_dump
+       mlx5_mr_addr2mr_bh
+       mlx5_mr_release_cache
+       mlx5_mr_dump_cache
+       mlx5_mr_rebuild_cache
+       mlx5_mr_insert_cache
+       mlx5_mr_lookup_cache
+       mlx5_mr_lookup_list
+       mlx5_mr_create_primary
+       mlx5_mr_flush_local_cache
+       mlx5_mp_req_queue_state_modify
+       mlx5_mr_free
+
+       mlx5_pci_driver_register
+
+       mlx5_release_dbr
+
+       mlx5_malloc
+       mlx5_realloc
+       mlx5_free