get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 55224,
    "url": "http://patches.dpdk.org/api/patches/55224/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1561344776-43990-2-git-send-email-nicolas.chautru@intel.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": "<1561344776-43990-2-git-send-email-nicolas.chautru@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1561344776-43990-2-git-send-email-nicolas.chautru@intel.com",
    "date": "2019-06-24T02:52:47",
    "name": "[v4,01/10] baseband/turbo_sw: baseband/turbo_sw: dependency patch",
    "commit_ref": null,
    "pull_url": null,
    "state": "not-applicable",
    "archived": true,
    "hash": "00899ae395bfd3bdf044f11764306d2d2825eb7f",
    "submitter": {
        "id": 1314,
        "url": "http://patches.dpdk.org/api/people/1314/?format=api",
        "name": "Chautru, Nicolas",
        "email": "nicolas.chautru@intel.com"
    },
    "delegate": {
        "id": 6690,
        "url": "http://patches.dpdk.org/api/users/6690/?format=api",
        "username": "akhil",
        "first_name": "akhil",
        "last_name": "goyal",
        "email": "gakhil@marvell.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1561344776-43990-2-git-send-email-nicolas.chautru@intel.com/mbox/",
    "series": [
        {
            "id": 5127,
            "url": "http://patches.dpdk.org/api/series/5127/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=5127",
            "date": "2019-06-24T02:52:46",
            "name": "bbdev: adding support in BBDEV for 5GNR FEC",
            "version": 4,
            "mbox": "http://patches.dpdk.org/series/5127/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/55224/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/55224/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 041AD1BF6C;\n\tMon, 24 Jun 2019 04:53:07 +0200 (CEST)",
            "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n\tby dpdk.org (Postfix) with ESMTP id 6F1CA1BEAD\n\tfor <dev@dpdk.org>; Mon, 24 Jun 2019 04:53:01 +0200 (CEST)",
            "from fmsmga004.fm.intel.com ([10.253.24.48])\n\tby fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t23 Jun 2019 19:52:59 -0700",
            "from skx-5gnr-sc12-4.sc.intel.com ([172.25.69.210])\n\tby fmsmga004.fm.intel.com with ESMTP; 23 Jun 2019 19:52:59 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.63,410,1557212400\"; d=\"scan'208\";a=\"183991184\"",
        "From": "Nicolas Chautru <nicolas.chautru@intel.com>",
        "To": "akhil.goyal@nxp.com,\n\tdev@dpdk.org",
        "Cc": "thomas@monjalon.net, ferruh.yigit@intel.com, amr.mokhtar@intel.com,\n\tNicolas Chautru <nicolas.chautru@intel.com>",
        "Date": "Sun, 23 Jun 2019 19:52:47 -0700",
        "Message-Id": "<1561344776-43990-2-git-send-email-nicolas.chautru@intel.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1561344776-43990-1-git-send-email-nicolas.chautru@intel.com>",
        "References": "<1561136352-32198-2-git-send-email-nicolas.chautru@intel.com>\n\t<1561344776-43990-1-git-send-email-nicolas.chautru@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v4 01/10] baseband/turbo_sw: baseband/turbo_sw:\n\tdependency patch",
        "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": "Not meant for review, purely for dependency for CI.\nThis is a squash of the related serie which\nis not applied yet:\noption to build turbosw PMD without SDK\nhttps://patches.dpdk.org/project/dpdk/list/?series=5093\n\nSigned-off-by: Nicolas Chautru <nicolas.chautru@intel.com>\n---\n config/common_base                               |  3 +-\n doc/guides/bbdevs/turbo_sw.rst                   | 81 +++++++++++++-----------\n drivers/baseband/meson.build                     |  2 +-\n drivers/baseband/turbo_sw/Makefile               | 13 ++--\n drivers/baseband/turbo_sw/bbdev_turbo_software.c | 51 ++++++++++++++-\n drivers/baseband/turbo_sw/meson.build            | 30 +++++++++\n meson_options.txt                                |  2 +\n mk/rte.app.mk                                    |  3 +\n 8 files changed, 138 insertions(+), 47 deletions(-)\n create mode 100644 drivers/baseband/turbo_sw/meson.build",
    "diff": "diff --git a/config/common_base b/config/common_base\nindex e406e78..21ab606 100644\n--- a/config/common_base\n+++ b/config/common_base\n@@ -528,6 +528,7 @@ CONFIG_RTE_PMD_PACKET_PREFETCH=y\n CONFIG_RTE_LIBRTE_BBDEV=y\n CONFIG_RTE_BBDEV_MAX_DEVS=128\n CONFIG_RTE_BBDEV_OFFLOAD_COST=y\n+CONFIG_RTE_BBDEV_SDK_AVX2=n\n \n #\n # Compile PMD for NULL bbdev device\n@@ -537,7 +538,7 @@ CONFIG_RTE_LIBRTE_PMD_BBDEV_NULL=y\n #\n # Compile PMD for turbo software bbdev device\n #\n-CONFIG_RTE_LIBRTE_PMD_BBDEV_TURBO_SW=n\n+CONFIG_RTE_LIBRTE_PMD_BBDEV_TURBO_SW=y\n \n #\n # Compile generic crypto device library\ndiff --git a/doc/guides/bbdevs/turbo_sw.rst b/doc/guides/bbdevs/turbo_sw.rst\nindex 29f7ec9..455fa1d 100644\n--- a/doc/guides/bbdevs/turbo_sw.rst\n+++ b/doc/guides/bbdevs/turbo_sw.rst\n@@ -4,23 +4,39 @@\n SW Turbo Poll Mode Driver\n =========================\n \n-The SW Turbo PMD (**baseband_turbo_sw**) provides a poll mode bbdev driver that utilizes\n-Intel optimized libraries for LTE Layer 1 workloads acceleration. This PMD\n-supports the functions: Turbo FEC, Rate Matching and CRC functions.\n+The SW Turbo PMD (**baseband_turbo_sw**) provides a software only poll mode bbdev\n+driver that can optionally utilize Intel optimized libraries for LTE Layer 1\n+workloads acceleration.\n+\n+Note that the driver can also be built without any dependency with reduced\n+functionality for maintenance purpose.\n+\n+To enable linking to the SDK libraries see detailed installation section below.\n+One flag can be enabled depending on whether the target machine can support\n+AVX2 instructions sets and the related SDK libraries for vectorized\n+signal processing functions are installed :\n+- CONFIG_RTE_BBDEV_SDK_AVX2\n+\n+By default this flag is disabled. For AVX2 machine and SDK\n+library installed then this flag can be enabled.\n+\n+This PMD supports the functions: FEC, Rate Matching and CRC functions detailed\n+in the Features section.\n \n Features\n --------\n \n-SW Turbo PMD has support for the following capabilities:\n+SW Turbo PMD can support for the following capabilities when the SDK libraries\n+are used:\n \n-For the encode operation:\n+For the LTE encode operation:\n \n * ``RTE_BBDEV_TURBO_CRC_24A_ATTACH``\n * ``RTE_BBDEV_TURBO_CRC_24B_ATTACH``\n * ``RTE_BBDEV_TURBO_RATE_MATCH``\n * ``RTE_BBDEV_TURBO_RV_INDEX_BYPASS``\n \n-For the decode operation:\n+For the LTE decode operation:\n \n * ``RTE_BBDEV_TURBO_SUBBLOCK_DEINTERLEAVE``\n * ``RTE_BBDEV_TURBO_CRC_TYPE_24B``\n@@ -41,14 +57,10 @@ Installation\n FlexRAN SDK Download\n ~~~~~~~~~~~~~~~~~~~~\n \n-To build DPDK with the *baseband_turbo_sw* PMD the user is required to download\n-the export controlled ``FlexRAN SDK`` Libraries. An account at `Intel Resource\n-Design Center <https://www.intel.com/content/www/us/en/design/resource-design-center.html>`_\n-needs to be registered.\n+As an option it is possible to link this driver with FleXRAN SDK libraries\n+which can enable real time signal processing using AVX instructions.\n \n-Once registered, the user needs to log in, and look for\n-*Intel FlexRAN Software Release Package -18-09* to download or directly through\n-this `link <https://cdrdv2.intel.com/v1/dl/getContent/605167>`_.\n+These libraries are available through this link `link <https://software.intel.com/en-us/articles/flexran-lte-and-5g-nr-fec-software-development-kit-modules>`_.\n \n After download is complete, the user needs to unpack and compile on their\n system before building DPDK.\n@@ -57,24 +69,24 @@ The following table maps DPDK versions with past FlexRAN SDK releases:\n \n .. _table_flexran_releases:\n \n-.. table:: DPDK and FlexRAN SDK releases compliance\n+.. table:: DPDK and FlexRAN FEC SDK releases compliance\n \n    =====================  ============================\n-   DPDK version           FlexRAN SDK release\n+   DPDK version           FlexRAN FEC SDK release\n    =====================  ============================\n-   18.02                  1.3.0\n-   18.05                  1.4.0\n-   18.08                  1.6.0\n-   19.02                  18.09\n+   19.08                  19.04\n    =====================  ============================\n \n FlexRAN SDK Installation\n ~~~~~~~~~~~~~~~~~~~~~~~~\n \n+Note that the installation of these libraries is optional.\n+\n The following are pre-requisites for building FlexRAN SDK Libraries:\n- (a) An AVX2 supporting machine\n- (b) CentOS Linux release 7.2.1511 (Core) operating system\n- (c) Intel ICC 18.0.1 20171018 compiler installed\n+ (a) An AVX2 or AVX512 supporting machine\n+ (b) CentOS Linux release 7.2.1511 (Core) operating system is advised\n+ (c) Intel ICC 18.0.1 20171018 compiler or more recent and related libraries\n+     ICC is available with a free community license `link <https://software.intel.com/en-us/system-studio/choose-download#technical>`_.\n \n The following instructions should be followed in this exact order:\n \n@@ -84,25 +96,18 @@ The following instructions should be followed in this exact order:\n \n         source <path-to-icc-compiler-install-folder>/linux/bin/compilervars.sh intel64 -platform linux\n \n-#. Extract the ``605167-flexran-18-09-tar.gz`` package:\n-\n-    .. code-block:: console\n-\n-        mkdir FlexRAN-18.09\n-        tar xvzf 605167-flexran-18-09-tar.gz -C FlexRAN-18.09/\n-\n #. Run the SDK extractor script and accept the license:\n \n     .. code-block:: console\n \n-        cd <path-to-workspace>/FlexRAN-18.09/\n-        ./SDK-18.09.sh\n+        cd <path-to-workspace>\n+        ./FlexRAN-FEC-SDK-19-04.sh\n \n #. Generate makefiles based on system configuration:\n \n     .. code-block:: console\n \n-        cd <path-to-workspace>/FlexRAN-18.09/SDK-18.09/sdk/\n+        cd <path-to-workspace>/FlexRAN-FEC-SDK-19-04/sdk/\n         ./create-makefiles-linux.sh\n \n #. A build folder is generated in this form ``build-<ISA>-<CC>``, enter that\n@@ -129,12 +134,14 @@ Example:\n \n .. code-block:: console\n \n-    export FLEXRAN_SDK=<path-to-workspace>/FlexRAN-18.09/SDK-18.09/sdk/build-avx2-icc/install\n-    export DIR_WIRELESS_SDK=<path-to-workspace>/FlexRAN-18.09/SDK-18.09/sdk/\n-\n+    export FLEXRAN_SDK=<path-to-workspace>/FlexRAN-FEC-SDK-19-04/sdk/build-avx2-icc/install\n+    export DIR_WIRELESS_SDK=<path-to-workspace>/FlexRAN-FEC-SDK-19-04/sdk/build-avx2-icc/\n \n-* Set ``CONFIG_RTE_LIBRTE_PMD_BBDEV_TURBO_SW=y`` in DPDK common configuration\n-  file ``config/common_base``.\n+* Set ``CONFIG_RTE_BBDEV_SDK_AVX2=y``\n+  in DPDK common configuration file ``config/common_base`` to be able to use\n+  the SDK libraries as mentioned above.\n+  If no flag are set the PMD driver will still build but its capabilities\n+  will be limited accordingly.\n \n To use the PMD in an application, user must:\n \ndiff --git a/drivers/baseband/meson.build b/drivers/baseband/meson.build\nindex 52489df..40a87d2 100644\n--- a/drivers/baseband/meson.build\n+++ b/drivers/baseband/meson.build\n@@ -1,7 +1,7 @@\n # SPDX-License-Identifier: BSD-3-Clause\n # Copyright(c) 2018 Luca Boccassi <bluca@debian.org>\n \n-drivers = ['null']\n+drivers = ['null', 'turbo_sw']\n \n config_flag_fmt = 'RTE_LIBRTE_@0@_PMD'\n driver_name_fmt = 'rte_pmd_@0@'\ndiff --git a/drivers/baseband/turbo_sw/Makefile b/drivers/baseband/turbo_sw/Makefile\nindex d364677..414d0d9 100644\n--- a/drivers/baseband/turbo_sw/Makefile\n+++ b/drivers/baseband/turbo_sw/Makefile\n@@ -3,9 +3,6 @@\n \n include $(RTE_SDK)/mk/rte.vars.mk\n \n-ifeq ($(FLEXRAN_SDK),)\n-$(error \"Please define FLEXRAN_SDK environment variable\")\n-endif\n \n # library name\n LIB = librte_pmd_bbdev_turbo_sw.a\n@@ -21,17 +18,21 @@ LDLIBS += -lrte_bus_vdev\n # versioning export map\n EXPORT_MAP := rte_pmd_bbdev_turbo_sw_version.map\n \n-# external library dependencies\n+# external library dependencies if available\n+ifeq ($(CONFIG_RTE_BBDEV_SDK_AVX2),y)\n+ifeq ($(FLEXRAN_SDK),)\n+$(error \"Please define FLEXRAN_SDK environment variable\")\n+endif\n CFLAGS += -I$(FLEXRAN_SDK)/lib_common\n CFLAGS += -I$(FLEXRAN_SDK)/lib_turbo\n CFLAGS += -I$(FLEXRAN_SDK)/lib_crc\n CFLAGS += -I$(FLEXRAN_SDK)/lib_rate_matching\n-\n LDLIBS += -L$(FLEXRAN_SDK)/lib_turbo -lturbo\n LDLIBS += -L$(FLEXRAN_SDK)/lib_crc -lcrc\n LDLIBS += -L$(FLEXRAN_SDK)/lib_rate_matching -lrate_matching\n LDLIBS += -L$(FLEXRAN_SDK)/lib_common -lcommon\n-LDLIBS += -lstdc++ -lirc -limf -lipps\n+LDLIBS += -lstdc++ -lirc -limf -lipps -lsvml\n+endif\n \n # library version\n LIBABIVER := 1\ndiff --git a/drivers/baseband/turbo_sw/bbdev_turbo_software.c b/drivers/baseband/turbo_sw/bbdev_turbo_software.c\nindex 5204a77..94aa536 100644\n--- a/drivers/baseband/turbo_sw/bbdev_turbo_software.c\n+++ b/drivers/baseband/turbo_sw/bbdev_turbo_software.c\n@@ -14,10 +14,11 @@\n #include <rte_bbdev.h>\n #include <rte_bbdev_pmd.h>\n \n+#ifdef RTE_BBDEV_SDK_AVX2\n #include <phy_turbo.h>\n #include <phy_crc.h>\n #include <phy_rate_match.h>\n-#include <divide.h>\n+#endif\n \n #define DRIVER_NAME baseband_turbo_sw\n \n@@ -83,6 +84,7 @@ struct turbo_sw_queue {\n \tenum rte_bbdev_op_type type;\n } __rte_cache_aligned;\n \n+#ifdef RTE_BBDEV_SDK_AVX2\n static inline char *\n mbuf_append(struct rte_mbuf *m_head, struct rte_mbuf *m, uint16_t len)\n {\n@@ -128,6 +130,7 @@ struct turbo_sw_queue {\n \n \treturn result;\n }\n+#endif\n \n /* Read flag value 0/1 from bitmap */\n static inline bool\n@@ -143,6 +146,7 @@ struct turbo_sw_queue {\n \tstruct bbdev_private *internals = dev->data->dev_private;\n \n \tstatic const struct rte_bbdev_op_cap bbdev_capabilities[] = {\n+#ifdef RTE_BBDEV_SDK_AVX2\n \t\t{\n \t\t\t.type = RTE_BBDEV_OP_TURBO_DEC,\n \t\t\t.cap.turbo_dec = {\n@@ -172,6 +176,7 @@ struct turbo_sw_queue {\n \t\t\t\t.num_buffers_dst = RTE_BBDEV_MAX_CODE_BLOCKS,\n \t\t\t}\n \t\t},\n+#endif\n \t\tRTE_BBDEV_END_OF_CAPABILITIES_LIST()\n \t};\n \n@@ -179,7 +184,12 @@ struct turbo_sw_queue {\n \t\t.queue_size = RTE_BBDEV_QUEUE_SIZE_LIMIT,\n \t};\n \n+#ifdef RTE_BBDEV_SDK_AVX2\n \tstatic const enum rte_cpu_flag_t cpu_flag = RTE_CPUFLAG_SSE4_2;\n+\tdev_info->cpu_flag_reqs = &cpu_flag;\n+#else\n+\tdev_info->cpu_flag_reqs = NULL;\n+#endif\n \n \tdefault_queue_conf.socket = dev->data->socket_id;\n \n@@ -191,7 +201,6 @@ struct turbo_sw_queue {\n \tdev_info->max_ul_queue_priority = 0;\n \tdev_info->default_queue_conf = default_queue_conf;\n \tdev_info->capabilities = bbdev_capabilities;\n-\tdev_info->cpu_flag_reqs = &cpu_flag;\n \tdev_info->min_alignment = 64;\n \n \trte_bbdev_log_debug(\"got device info from %u\\n\", dev->data->dev_id);\n@@ -410,6 +419,7 @@ struct turbo_sw_queue {\n \t.queue_release = q_release\n };\n \n+#ifdef RTE_BBDEV_SDK_AVX2\n /* Checks if the encoder input buffer is correct.\n  * Returns 0 if it's valid, -1 otherwise.\n  */\n@@ -464,6 +474,7 @@ struct turbo_sw_queue {\n \n \treturn 0;\n }\n+#endif\n \n static inline void\n process_enc_cb(struct turbo_sw_queue *q, struct rte_bbdev_enc_op *op,\n@@ -472,6 +483,7 @@ struct turbo_sw_queue {\n \t\tstruct rte_mbuf *m_out, uint16_t in_offset, uint16_t out_offset,\n \t\tuint16_t in_length, struct rte_bbdev_stats *q_stats)\n {\n+#ifdef RTE_BBDEV_SDK_AVX2\n \tint ret;\n \tint16_t k_idx;\n \tuint16_t m;\n@@ -724,6 +736,22 @@ struct turbo_sw_queue {\n \t\t}\n \t\t*tmp_out = 0;\n \t}\n+#else\n+\tRTE_SET_USED(q);\n+\tRTE_SET_USED(op);\n+\tRTE_SET_USED(r);\n+\tRTE_SET_USED(c);\n+\tRTE_SET_USED(k);\n+\tRTE_SET_USED(ncb);\n+\tRTE_SET_USED(e);\n+\tRTE_SET_USED(m_in);\n+\tRTE_SET_USED(m_out_head);\n+\tRTE_SET_USED(m_out);\n+\tRTE_SET_USED(in_offset);\n+\tRTE_SET_USED(out_offset);\n+\tRTE_SET_USED(in_length);\n+\tRTE_SET_USED(q_stats);\n+#endif\n }\n \n static inline void\n@@ -835,6 +863,7 @@ struct turbo_sw_queue {\n \t\t\tNULL);\n }\n \n+#ifdef RTE_BBDEV_SDK_AVX2\n static inline void\n move_padding_bytes(const uint8_t *in, uint8_t *out, uint16_t k,\n \t\tuint16_t ncb)\n@@ -847,6 +876,7 @@ struct turbo_sw_queue {\n \trte_memcpy(&out[nd + kpi + 64], &in[kpi], d);\n \trte_memcpy(&out[(nd - 1) + 2 * (kpi + 64)], &in[2 * kpi], d);\n }\n+#endif\n \n static inline void\n process_dec_cb(struct turbo_sw_queue *q, struct rte_bbdev_dec_op *op,\n@@ -856,6 +886,7 @@ struct turbo_sw_queue {\n \t\tuint16_t crc24_overlap, uint16_t in_length,\n \t\tstruct rte_bbdev_stats *q_stats)\n {\n+#ifdef RTE_BBDEV_SDK_AVX2\n \tint ret;\n \tint32_t k_idx;\n \tint32_t iter_cnt;\n@@ -972,6 +1003,22 @@ struct turbo_sw_queue {\n \t\trte_bbdev_log(ERR, \"Turbo Decoder failed\");\n \t\treturn;\n \t}\n+#else\n+\tRTE_SET_USED(q);\n+\tRTE_SET_USED(op);\n+\tRTE_SET_USED(c);\n+\tRTE_SET_USED(k);\n+\tRTE_SET_USED(kw);\n+\tRTE_SET_USED(m_in);\n+\tRTE_SET_USED(m_out_head);\n+\tRTE_SET_USED(m_out);\n+\tRTE_SET_USED(in_offset);\n+\tRTE_SET_USED(out_offset);\n+\tRTE_SET_USED(check_crc_24b);\n+\tRTE_SET_USED(crc24_overlap);\n+\tRTE_SET_USED(in_length);\n+\tRTE_SET_USED(q_stats);\n+#endif\n }\n \n static inline void\ndiff --git a/drivers/baseband/turbo_sw/meson.build b/drivers/baseband/turbo_sw/meson.build\nnew file mode 100644\nindex 0000000..438b5a7\n--- /dev/null\n+++ b/drivers/baseband/turbo_sw/meson.build\n@@ -0,0 +1,30 @@\n+# SPDX-License-Identifier: BSD-3-Clause\n+# Copyright(c) 2019 Intel Corporation\n+\n+path = get_option('flexran_sdk')\n+\n+if dpdk_conf.has('RTE_BBDEV_SDK_AVX2')\n+\tlib = cc.find_library('libturbo', dirs: [path + '/lib_turbo'], required: false)\n+\tif not lib.found()\n+\t\tbuild = false\n+\telse\n+\t\text_deps += cc.find_library('libturbo', dirs: [path + '/lib_turbo'], required: true)\n+\t\text_deps += cc.find_library('libcrc', dirs: [path + '/lib_crc'], required: true)\n+\t\text_deps += cc.find_library('librate_matching', dirs: [path + '/lib_rate_matching'], required: true)\n+\t\text_deps += cc.find_library('libcommon', dirs: [path + '/lib_common'], required: true)\n+\t\text_deps += cc.find_library('libstdc++', required: true)\n+\t\text_deps += cc.find_library('libirc', required: true)\n+\t\text_deps += cc.find_library('libimf', required: true)\n+\t\text_deps += cc.find_library('libipps', required: true)\n+\t\text_deps += cc.find_library('libsvml', required: true)\n+\t\tincludes += include_directories(path + '/lib_turbo')\n+\t\tincludes += include_directories(path + '/lib_crc')\n+\t\tincludes += include_directories(path + '/lib_rate_matching')\n+\t\tincludes += include_directories(path + '/lib_common')\n+\tendif\n+endif\n+\n+deps += ['bbdev', 'bus_vdev', 'ring']\n+name = 'bbdev_turbo_sw'\n+allow_experimental_apis = true\n+sources = files('bbdev_turbo_software.c')\ndiff --git a/meson_options.txt b/meson_options.txt\nindex 16d9f92..92d3e97 100644\n--- a/meson_options.txt\n+++ b/meson_options.txt\n@@ -10,6 +10,8 @@ option('enable_kmods', type: 'boolean', value: true,\n \tdescription: 'build kernel modules')\n option('examples', type: 'string', value: '',\n \tdescription: 'Comma-separated list of examples to build by default')\n+option('flexran_sdk', type: 'string', value: '',\n+\tdescription: 'Path to FlexRAN SDK optional Libraries for BBDEV device')\n option('ibverbs_link', type: 'combo', choices : ['shared', 'dlopen'], value: 'shared',\n \tdescription: 'Linkage method (shared/dlopen) for Mellanox PMDs with ibverbs dependencies.')\n option('include_subdir_arch', type: 'string', value: '',\ndiff --git a/mk/rte.app.mk b/mk/rte.app.mk\nindex d0df0b0..2c3d07a 100644\n--- a/mk/rte.app.mk\n+++ b/mk/rte.app.mk\n@@ -219,11 +219,14 @@ _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_BBDEV_NULL)     += -lrte_pmd_bbdev_null\n \n # TURBO SOFTWARE PMD is dependent on the FLEXRAN library\n _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_BBDEV_TURBO_SW) += -lrte_pmd_bbdev_turbo_sw\n+ifeq ($(CONFIG_RTE_BBDEV_SDK_AVX2),y)\n+# Dependency on the FLEXRAN SDK library if available\n _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_BBDEV_TURBO_SW) += -L$(FLEXRAN_SDK)/lib_crc -lcrc\n _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_BBDEV_TURBO_SW) += -L$(FLEXRAN_SDK)/lib_turbo -lturbo\n _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_BBDEV_TURBO_SW) += -L$(FLEXRAN_SDK)/lib_rate_matching -lrate_matching\n _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_BBDEV_TURBO_SW) += -L$(FLEXRAN_SDK)/lib_common -lcommon\n _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_BBDEV_TURBO_SW) += -lirc -limf -lstdc++ -lipps\n+endif # CONFIG_RTE_BBDEV_SDK_AVX2\n endif # CONFIG_RTE_LIBRTE_BBDEV\n \n ifeq ($(CONFIG_RTE_LIBRTE_CRYPTODEV),y)\n",
    "prefixes": [
        "v4",
        "01/10"
    ]
}