get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/44679/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 44679,
    "url": "http://patches.dpdk.org/api/patches/44679/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/3c634e089dbcc5a6a7fc7cbff91958598f595e57.1536839688.git.shahafs@mellanox.com/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<3c634e089dbcc5a6a7fc7cbff91958598f595e57.1536839688.git.shahafs@mellanox.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/3c634e089dbcc5a6a7fc7cbff91958598f595e57.1536839688.git.shahafs@mellanox.com",
    "date": "2018-09-13T12:11:05",
    "name": "[v6,1/2] net/mlx5: support meson build",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "6e6462666e04195269ca516e9c54f02f41ec7bce",
    "submitter": {
        "id": 634,
        "url": "http://patches.dpdk.org/api/people/634/?format=api",
        "name": "Shahaf Shuler",
        "email": "shahafs@mellanox.com"
    },
    "delegate": {
        "id": 6624,
        "url": "http://patches.dpdk.org/api/users/6624/?format=api",
        "username": "shahafs",
        "first_name": "Shahaf",
        "last_name": "Shuler",
        "email": "shahafs@mellanox.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/3c634e089dbcc5a6a7fc7cbff91958598f595e57.1536839688.git.shahafs@mellanox.com/mbox/",
    "series": [
        {
            "id": 1308,
            "url": "http://patches.dpdk.org/api/series/1308/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=1308",
            "date": "2018-09-13T12:11:05",
            "name": "[v6,1/2] net/mlx5: support meson build",
            "version": 6,
            "mbox": "http://patches.dpdk.org/series/1308/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/44679/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/44679/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 742937CBC;\n\tThu, 13 Sep 2018 14:23:17 +0200 (CEST)",
            "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n\tby dpdk.org (Postfix) with ESMTP id 577CC5F17\n\tfor <dev@dpdk.org>; Thu, 13 Sep 2018 14:23:16 +0200 (CEST)",
            "from Internal Mail-Server by MTLPINE1 (envelope-from\n\tshahafs@mellanox.com)\n\twith ESMTPS (AES256-SHA encrypted); 13 Sep 2018 15:15:32 +0300",
            "from unicorn01.mtl.labs.mlnx. (unicorn01.mtl.labs.mlnx\n\t[10.7.12.62])\n\tby labmailer.mlnx (8.13.8/8.13.8) with ESMTP id w8DCBGrY020457;\n\tThu, 13 Sep 2018 15:11:16 +0300"
        ],
        "From": "Shahaf Shuler <shahafs@mellanox.com>",
        "To": "yskoh@mellanox.com, matan@mellanox.com, nelio.laranjeiro@6wind.com,\n\tbluca@debian.org, bruce.richardson@intel.com",
        "Cc": "dev@dpdk.org",
        "Date": "Thu, 13 Sep 2018 15:11:05 +0300",
        "Message-Id": "<3c634e089dbcc5a6a7fc7cbff91958598f595e57.1536839688.git.shahafs@mellanox.com>",
        "X-Mailer": "git-send-email 2.12.0",
        "In-Reply-To": "<20180905114746.117936-1-shahafs@mellanox.com>",
        "References": "<20180905114746.117936-1-shahafs@mellanox.com>",
        "Subject": "[dpdk-dev] [PATCH v6 1/2] net/mlx5: support meson build",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "From: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>\n\nCompile Mellanox driver when its external dependencies are met.  A\nglue version of the driver can still be requested by using the\n-Denable_driver_mlx_glue=true\n\nTo avoid modifying the whole sources and keep the compatibility with\ncurrent build systems (e.g. make), the mlx5_autoconf.h is still\ngenerated by invoking DPDK scripts though meson's run_command() instead\nof using has_types, has_members, ... commands.\n\nMeson will try to find the required external libraries.  When they are\nnot installed system wide, they can be provided though CFLAGS, LDFLAGS\nand LD_LIBRARY_PATH environment variables, example (considering\nRDMA-Core is installed in /tmp/rdma-core):\n\n # CLFAGS=-I/tmp/rdma-core/build/include \\\n   LDFLAGS=-L/tmp/rdma-core/build/lib \\\n   LD_LIBRARY_PATH=/tmp/rdma-core/build/lib \\\n   meson output\n # LD_LIBRARY_PATH=/tmp/rdma-core/build/lib \\\n   ninja -C output install\n\nNote: LD_LIBRARY_PATH before ninja is necessary when the meson\nconfiguration has changed (e.g. meson configure has been called), in\nsuch situation the LD_LIBRARY_PATH is necessary to invoke the\nautoconfiguration script.\n\nSigned-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>\nAcked-by: Bruce Richardson <bruce.richardson@intel.com>\nSigned-off-by: Shahaf Shuler <shahafs@mellanox.com>\n---\nChanges in v6:\n- split into two patches for mlx5 and mlx4\n- ident with tabs instead of spaces\n- no need to remove the confiugration file, meson will override it\n- split configuration file creation into two loops: symbols and structs\n- rewrite enable_driver_mlx_glue description\n\nChanges in v5:\n\n- use meson tool to generate Mellanox config file instead of DPDK custom scripts.\n\nChanges in v4:\n\n- remove implicit -Wall flag (set by default by meson),\n- add item information in the autoconfiguration failure error message,\n- reword the help for the glue library option,\n\nChanges in v3:\n\nSanitize the build files:\n- remove enable_driver_mlx{4,5} options,\n- test cflags capabilities before using them,\n- remove old autoconfiguration file,\n- use an array for autoconfiguration and put them in the build directory,\n- use dependencies in shared_library for link arguments.\n\nChanges in v2:\n\n- dropped patch https://patches.dpdk.org/patch/43897/\n- remove extra_{cflags,ldflags} as already honored by meson through\nenvironment variables.\n\n---\n drivers/net/meson.build      |   1 +\n drivers/net/mlx5/meson.build | 228 +++++++++++++++++++++++++++++++++++++++++++\n meson_options.txt            |   2 +\n 3 files changed, 231 insertions(+)\n create mode 100644 drivers/net/mlx5/meson.build",
    "diff": "diff --git a/drivers/net/meson.build b/drivers/net/meson.build\nindex 9c28ed4da4..d444c3287f 100644\n--- a/drivers/net/meson.build\n+++ b/drivers/net/meson.build\n@@ -18,6 +18,7 @@ drivers = ['af_packet',\n \t'ixgbe',\n \t'kni',\n \t'liquidio',\n+\t'mlx5',\n \t'mvpp2',\n \t'netvsc',\n \t'nfp',\ndiff --git a/drivers/net/mlx5/meson.build b/drivers/net/mlx5/meson.build\nnew file mode 100644\nindex 0000000000..289c7a4c07\n--- /dev/null\n+++ b/drivers/net/mlx5/meson.build\n@@ -0,0 +1,228 @@\n+# SPDX-License-Identifier: BSD-3-Clause\n+# Copyright 2018 6WIND S.A.\n+# Copyright 2018 Mellanox Technologies, Ltd\n+\n+pmd_dlopen = get_option('enable_driver_mlx_glue')\n+LIB_GLUE_BASE = 'librte_pmd_mlx5_glue.so'\n+LIB_GLUE_VERSION = '18.05.0'\n+LIB_GLUE = LIB_GLUE_BASE + '.' + LIB_GLUE_VERSION\n+if pmd_dlopen\n+\tdpdk_conf.set('RTE_LIBRTE_MLX5_DLOPEN_DEPS', 1)\n+\tcflags += [\n+\t\t'-DMLX5_GLUE=\"@0@\"'.format(LIB_GLUE),\n+\t\t'-DMLX5_GLUE_VERSION=\"@0@\"'.format(LIB_GLUE_VERSION),\n+\t]\n+endif\n+libs = [\n+\tcc.find_library('mnl', required:false),\n+\tcc.find_library('mlx5', required:false),\n+\tcc.find_library('ibverbs', required:false),\n+]\n+build = true\n+foreach lib:libs\n+\tif not lib.found()\n+\t\tbuild = false\n+\tendif\n+endforeach\n+if build\n+\tallow_experimental_apis = true\n+\text_deps += libs\n+\tsources = files(\n+\t\t'mlx5.c',\n+\t\t'mlx5_ethdev.c',\n+\t\t'mlx5_flow.c',\n+\t\t'mlx5_mac.c',\n+\t\t'mlx5_mr.c',\n+\t\t'mlx5_nl.c',\n+\t\t'mlx5_nl_flow.c',\n+\t\t'mlx5_rss.c',\n+\t\t'mlx5_rxmode.c',\n+\t\t'mlx5_rxq.c',\n+\t\t'mlx5_rxtx.c',\n+\t\t'mlx5_socket.c',\n+\t\t'mlx5_stats.c',\n+\t\t'mlx5_trigger.c',\n+\t\t'mlx5_txq.c',\n+\t\t'mlx5_vlan.c',\n+\t)\n+\tif dpdk_conf.has('RTE_ARCH_X86_64') or dpdk_conf.has('RTE_ARCH_ARM64')\n+\t\tsources += files('mlx5_rxtx_vec.c')\n+\tendif\n+\tif not pmd_dlopen\n+\t\tsources += files('mlx5_glue.c')\n+\tendif\n+\tcflags_options = [\n+\t\t'-Wextra',\n+\t\t'-std=c11',\n+\t\t'-Wno-strict-prototypes',\n+\t\t'-D_BSD_SOURCE',\n+\t\t'-D_DEFAULT_SOURCE',\n+\t\t'-D_XOPEN_SOURCE=600'\n+\t]\n+\tforeach option:cflags_options\n+\t\tif cc.has_argument(option)\n+\t\t\tcflags += option\n+\t\tendif\n+\tendforeach\n+\tif get_option('buildtype').contains('debug')\n+\t\tcflags += [ '-pedantic', '-UNDEBUG', '-DPEDANTIC' ]\n+\telse\n+\t\tcflags += [ '-DNDEBUG', '-UPEDANTIC' ]\n+\tendif\n+\t# To maintain the compatibility with the make build system\n+\t# mlx5_autoconf.h file is still generated.\n+\t# input array for meson member search:\n+\t# [ \"MACRO to define if found\", \"header for the search\",\n+\t#   \"symbol to search\", \"struct member to search\" ]\n+\thas_member_args = [\n+\t\t[ 'HAVE_IBV_MLX5_MOD_SWP', 'infiniband/mlx5dv.h',\n+\t\t'struct mlx5dv_sw_parsing_caps', 'sw_parsing_offloads' ],\n+\t\t[ 'HAVE_IBV_DEVICE_COUNTERS_SET_SUPPORT', 'infiniband/verbs.h',\n+\t\t'struct ibv_counter_set_init_attr', 'counter_set_id' ],\n+\t]\n+\t# input array for meson symbol search:\n+\t# [ \"MACRO to define if found\", \"header for the search\",\n+\t#   \"symbol to search\" ]\n+\thas_sym_args = [\n+\t\t[ 'HAVE_IBV_DEVICE_STRIDING_RQ_SUPPORT', 'infiniband/mlx5dv.h',\n+\t\t'MLX5DV_CQE_RES_FORMAT_CSUM_STRIDX' ],\n+\t\t[ 'HAVE_IBV_DEVICE_TUNNEL_SUPPORT', 'infiniband/mlx5dv.h',\n+\t\t'MLX5DV_CONTEXT_MASK_TUNNEL_OFFLOADS' ],\n+\t\t[ 'HAVE_IBV_MLX5_MOD_MPW', 'infiniband/mlx5dv.h',\n+\t\t'MLX5DV_CONTEXT_FLAGS_MPW_ALLOWED' ],\n+\t\t[ 'HAVE_IBV_MLX5_MOD_CQE_128B_COMP', 'infiniband/mlx5dv.h',\n+\t\t'MLX5DV_CONTEXT_FLAGS_CQE_128B_COMP' ],\n+\t\t[ 'HAVE_IBV_DEVICE_MPLS_SUPPORT', 'infiniband/verbs.h',\n+\t\t'IBV_FLOW_SPEC_MPLS' ],\n+\t\t[ 'HAVE_IBV_WQ_FLAG_RX_END_PADDING', 'infiniband/verbs.h',\n+\t\t'IBV_WQ_FLAG_RX_END_PADDING' ],\n+\t\t[ 'HAVE_SUPPORTED_40000baseKR4_Full', 'linux/ethtool.h',\n+\t\t'SUPPORTED_40000baseKR4_Full' ],\n+\t\t[ 'HAVE_SUPPORTED_40000baseCR4_Full', 'linux/ethtool.h',\n+\t\t'SUPPORTED_40000baseCR4_Full' ],\n+\t\t[ 'HAVE_SUPPORTED_40000baseSR4_Full', 'linux/ethtool.h',\n+\t\t'SUPPORTED_40000baseSR4_Full' ],\n+\t\t[ 'HAVE_SUPPORTED_40000baseLR4_Full', 'linux/ethtool.h',\n+\t\t'SUPPORTED_40000baseLR4_Full' ],\n+\t\t[ 'HAVE_SUPPORTED_56000baseKR4_Full', 'linux/ethtool.h',\n+\t\t'SUPPORTED_56000baseKR4_Full' ],\n+\t\t[ 'HAVE_SUPPORTED_56000baseCR4_Full', 'linux/ethtool.h',\n+\t\t'SUPPORTED_56000baseCR4_Full' ],\n+\t\t[ 'HAVE_SUPPORTED_56000baseSR4_Full', 'linux/ethtool.h',\n+\t\t'SUPPORTED_56000baseSR4_Full' ],\n+\t\t[ 'HAVE_SUPPORTED_56000baseLR4_Full', 'linux/ethtool.h',\n+\t\t'SUPPORTED_56000baseLR4_Full' ],\n+\t\t[ 'HAVE_ETHTOOL_LINK_MODE_25G', 'linux/ethtool.h',\n+\t\t'ETHTOOL_LINK_MODE_25000baseCR_Full_BIT' ],\n+\t\t[ 'HAVE_ETHTOOL_LINK_MODE_50G', 'linux/ethtool.h',\n+\t\t'ETHTOOL_LINK_MODE_50000baseCR2_Full_BIT' ],\n+\t\t[ 'HAVE_ETHTOOL_LINK_MODE_100G', 'linux/ethtool.h',\n+\t\t'ETHTOOL_LINK_MODE_100000baseKR4_Full_BIT' ],\n+\t\t[ 'HAVE_IFLA_PHYS_SWITCH_ID', 'linux/if_link.h',\n+\t\t'IFLA_PHYS_SWITCH_ID' ],\n+\t\t[ 'HAVE_IFLA_PHYS_PORT_NAME', 'linux/if_link.h',\n+\t\t'IFLA_PHYS_PORT_NAME' ],\n+\t\t[ 'HAVE_TCA_FLOWER_ACT', 'linux/pkt_cls.h',\n+\t\t'TCA_FLOWER_ACT' ],\n+\t\t[ 'HAVE_TCA_FLOWER_FLAGS', 'linux/pkt_cls.h',\n+\t\t'TCA_FLOWER_FLAGS' ],\n+\t\t[ 'HAVE_TCA_FLOWER_KEY_ETH_TYPE', 'linux/pkt_cls.h',\n+\t\t'TCA_FLOWER_KEY_ETH_TYPE' ],\n+\t\t[ 'HAVE_TCA_FLOWER_KEY_ETH_DST', 'linux/pkt_cls.h',\n+\t\t'TCA_FLOWER_KEY_ETH_DST' ],\n+\t\t[ 'HAVE_TCA_FLOWER_KEY_ETH_DST_MASK', 'linux/pkt_cls.h',\n+\t\t'TCA_FLOWER_KEY_ETH_DST_MASK' ],\n+\t\t[ 'HAVE_TCA_FLOWER_KEY_ETH_SRC', 'linux/pkt_cls.h',\n+\t\t'TCA_FLOWER_KEY_ETH_SRC' ],\n+\t\t[ 'HAVE_TCA_FLOWER_KEY_ETH_SRC_MASK', 'linux/pkt_cls.h',\n+\t\t'TCA_FLOWER_KEY_ETH_SRC_MASK' ],\n+\t\t[ 'HAVE_TCA_FLOWER_KEY_IP_PROTO', 'linux/pkt_cls.h',\n+\t\t'TCA_FLOWER_KEY_IP_PROTO' ],\n+\t\t[ 'HAVE_TCA_FLOWER_KEY_IPV4_SRC', 'linux/pkt_cls.h',\n+\t\t'TCA_FLOWER_KEY_IPV4_SRC' ],\n+\t\t[ 'HAVE_TCA_FLOWER_KEY_IPV4_SRC_MASK', 'linux/pkt_cls.h',\n+\t\t'TCA_FLOWER_KEY_IPV4_SRC_MASK' ],\n+\t\t[ 'HAVE_TCA_FLOWER_KEY_IPV4_DST', 'linux/pkt_cls.h',\n+\t\t'TCA_FLOWER_KEY_IPV4_DST' ],\n+\t\t[ 'HAVE_TCA_FLOWER_KEY_IPV4_DST_MASK', 'linux/pkt_cls.h',\n+\t\t'TCA_FLOWER_KEY_IPV4_DST_MASK' ],\n+\t\t[ 'HAVE_TCA_FLOWER_KEY_IPV6_SRC', 'linux/pkt_cls.h',\n+\t\t'TCA_FLOWER_KEY_IPV6_SRC' ],\n+\t\t[ 'HAVE_TCA_FLOWER_KEY_IPV6_SRC_MASK', 'linux/pkt_cls.h',\n+\t\t'TCA_FLOWER_KEY_IPV6_SRC_MASK' ],\n+\t\t[ 'HAVE_TCA_FLOWER_KEY_IPV6_DST', 'linux/pkt_cls.h',\n+\t\t'TCA_FLOWER_KEY_IPV6_DST' ],\n+\t\t[ 'HAVE_TCA_FLOWER_KEY_IPV6_DST_MASK', 'linux/pkt_cls.h',\n+\t\t'TCA_FLOWER_KEY_IPV6_DST_MASK' ],\n+\t\t[ 'HAVE_TCA_FLOWER_KEY_TCP_SRC', 'linux/pkt_cls.h',\n+\t\t'TCA_FLOWER_KEY_TCP_SRC' ],\n+\t\t[ 'HAVE_TCA_FLOWER_KEY_TCP_SRC_MASK', 'linux/pkt_cls.h',\n+\t\t'TCA_FLOWER_KEY_TCP_SRC_MASK' ],\n+\t\t[ 'HAVE_TCA_FLOWER_KEY_TCP_DST', 'linux/pkt_cls.h',\n+\t\t'TCA_FLOWER_KEY_TCP_DST' ],\n+\t\t[ 'HAVE_TCA_FLOWER_KEY_TCP_DST_MASK', 'linux/pkt_cls.h',\n+\t\t'TCA_FLOWER_KEY_TCP_DST_MASK' ],\n+\t\t[ 'HAVE_TCA_FLOWER_KEY_UDP_SRC', 'linux/pkt_cls.h',\n+\t\t'TCA_FLOWER_KEY_UDP_SRC' ],\n+\t\t[ 'HAVE_TCA_FLOWER_KEY_UDP_SRC_MASK', 'linux/pkt_cls.h',\n+\t\t'TCA_FLOWER_KEY_UDP_SRC_MASK' ],\n+\t\t[ 'HAVE_TCA_FLOWER_KEY_UDP_DST', 'linux/pkt_cls.h',\n+\t\t'TCA_FLOWER_KEY_UDP_DST' ],\n+\t\t[ 'HAVE_TCA_FLOWER_KEY_UDP_DST_MASK', 'linux/pkt_cls.h',\n+\t\t'TCA_FLOWER_KEY_UDP_DST_MASK' ],\n+\t\t[ 'HAVE_TCA_FLOWER_KEY_VLAN_ID', 'linux/pkt_cls.h',\n+\t\t'TCA_FLOWER_KEY_VLAN_ID' ],\n+\t\t[ 'HAVE_TCA_FLOWER_KEY_VLAN_PRIO', 'linux/pkt_cls.h',\n+\t\t'TCA_FLOWER_KEY_VLAN_PRIO' ],\n+\t\t[ 'HAVE_TCA_FLOWER_KEY_VLAN_ETH_TYPE', 'linux/pkt_cls.h',\n+\t\t'TCA_FLOWER_KEY_VLAN_ETH_TYPE' ],\n+\t\t[ 'HAVE_TC_ACT_VLAN', 'linux/tc_act/tc_vlan.h',\n+\t\t'TCA_VLAN_PUSH_VLAN_PRIORITY' ],\n+\t\t[ 'HAVE_RDMA_NL_NLDEV', 'rdma/rdma_netlink.h',\n+\t\t'RDMA_NL_NLDEV' ],\n+\t\t[ 'HAVE_RDMA_NLDEV_CMD_GET', 'rdma/rdma_netlink.h',\n+\t\t'RDMA_NLDEV_CMD_GET' ],\n+\t\t[ 'HAVE_RDMA_NLDEV_CMD_PORT_GET', 'rdma/rdma_netlink.h',\n+\t\t'RDMA_NLDEV_CMD_PORT_GET' ],\n+\t\t[ 'HAVE_RDMA_NLDEV_ATTR_DEV_INDEX', 'rdma/rdma_netlink.h',\n+\t\t'RDMA_NLDEV_ATTR_DEV_INDEX' ],\n+\t\t[ 'HAVE_RDMA_NLDEV_ATTR_DEV_NAME', 'rdma/rdma_netlink.h',\n+\t\t'RDMA_NLDEV_ATTR_DEV_NAME' ],\n+\t\t[ 'HAVE_RDMA_NLDEV_ATTR_PORT_INDEX', 'rdma/rdma_netlink.h',\n+\t\t'RDMA_NLDEV_ATTR_PORT_INDEX' ],\n+\t\t[ 'HAVE_RDMA_NLDEV_ATTR_NDEV_INDEX', 'rdma/rdma_netlink.h',\n+\t\t'RDMA_NLDEV_ATTR_NDEV_INDEX' ],\n+\t]\n+\tconfig = configuration_data()\n+\tforeach arg:has_sym_args\n+\t\tconfig.set(arg[0], cc.has_header_symbol(arg[1], arg[2]))\n+\tendforeach\n+\tforeach arg:has_member_args\n+\t\tfile_prefix = '#include<' + arg[1] + '>'\n+\t\tconfig.set(arg[0], cc.has_member(arg[2], arg[3],\n+\t\t\tprefix : file_prefix))\n+\tendforeach\n+\tconfigure_file(output : 'mlx5_autoconf.h', configuration : config)\n+endif\n+# Build Glue Library\n+if pmd_dlopen and build\n+\tdlopen_name = 'mlx5_glue'\n+\tdlopen_lib_name = driver_name_fmt.format(dlopen_name)\n+\tdlopen_so_version = LIB_GLUE_VERSION\n+\tdlopen_sources = files('mlx5_glue.c')\n+\tdlopen_install_dir = [ eal_pmd_path + '-glue' ]\n+\tshared_lib = shared_library(\n+\t\tdlopen_lib_name,\n+\t\tdlopen_sources,\n+\t\tinclude_directories: global_inc,\n+\t\tc_args: cflags,\n+\t\tdependencies: libs,\n+\t\tlink_args: [\n+\t\t'-Wl,-export-dynamic',\n+\t\t'-Wl,-h,@0@'.format(LIB_GLUE),\n+\t\t],\n+\t\tsoversion: dlopen_so_version,\n+\t\tinstall: true,\n+\t\tinstall_dir: dlopen_install_dir,\n+\t)\n+endif\ndiff --git a/meson_options.txt b/meson_options.txt\nindex c843278587..444a380d97 100644\n--- a/meson_options.txt\n+++ b/meson_options.txt\n@@ -1,5 +1,7 @@\n option('allow_invalid_socket_id', type: 'boolean', value: false,\n \tdescription: 'allow out-of-range NUMA socket id\\'s for platforms that don\\'t report the value correctly')\n+option('enable_driver_mlx_glue', type: 'boolean', value: false,\n+\tdescription: 'Enable glue library for Mellanox PMDs')\n option('enable_kmods', type: 'boolean', value: true,\n \tdescription: 'build kernel modules')\n option('examples', type: 'string', value: '',\n",
    "prefixes": [
        "v6",
        "1/2"
    ]
}