From e253c33dee10eef8124097222c0c79d02bc5e86f Mon Sep 17 00:00:00 2001 From: Tal Shnaiderman Date: Mon, 28 Dec 2020 11:54:20 +0200 Subject: [PATCH] common/mlx5: add Windows exports file 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 Signed-off-by: Ophir Munk Acked-by: Matan Azrad --- devtools/check-symbol-maps.sh | 3 + .../common/mlx5/rte_common_mlx5_exports.def | 61 +++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 drivers/common/mlx5/rte_common_mlx5_exports.def diff --git a/devtools/check-symbol-maps.sh b/devtools/check-symbol-maps.sh index 0e097eed89..c3cbcaf720 100755 --- a/devtools/check-symbol-maps.sh +++ b/devtools/check-symbol-maps.sh @@ -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 index 0000000000..be68f97d5a --- /dev/null +++ b/drivers/common/mlx5/rte_common_mlx5_exports.def @@ -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 -- 2.20.1