Show a patch.

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

{
    "id": 74584,
    "url": "https://patches.dpdk.org/api/patches/74584/",
    "web_url": "https://patches.dpdk.org/patch/74584/",
    "project": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/projects/1/",
        "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"
    },
    "msgid": "<20200721174712.48625-1-ajit.khaparde@broadcom.com>",
    "date": "2020-07-21T17:47:11",
    "name": "[1/2] net/bnxt: add meson build option",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": true,
    "hash": "6f9d5bc538135c9e3c88c224110cb66dd47e0152",
    "submitter": {
        "id": 501,
        "url": "https://patches.dpdk.org/api/people/501/",
        "name": "Ajit Khaparde",
        "email": "ajit.khaparde@broadcom.com"
    },
    "delegate": {
        "id": 1766,
        "url": "https://patches.dpdk.org/api/users/1766/",
        "username": "ajitkhaparde",
        "first_name": "Ajit",
        "last_name": "Khaparde",
        "email": "ajit.khaparde@broadcom.com"
    },
    "mbox": "https://patches.dpdk.org/patch/74584/mbox/",
    "series": [
        {
            "id": 11221,
            "url": "https://patches.dpdk.org/api/series/11221/",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=11221",
            "date": "2020-07-21T17:47:11",
            "name": "[1/2] net/bnxt: add meson build option",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/11221/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/74584/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/74584/checks/",
    "tags": {},
    "headers": {
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "X-Gm-Message-State": "AOAM5318pLIUk/eoo/zqIVUMg5d8Hb+p3veyDahE5/+KuT2KozkMHp1z\n war65C6HP8Taelrz4l6oNxyJj2v74TslDSQJILJ2bQxXjO9RKiRL+fheTGw1YWOYAGkHUIk7zca\n 0cbUelVBIl4sZ2mmd5bI584tmmEj/DNIKlTLTDG85wgvOcBfVtXwHaoDm9d++i7jE3/fbgaUId7\n ehOQ==",
        "X-Google-Smtp-Source": "\n ABdhPJypvbANQwM6xve1LsuKqGj77AZWuzf0NxPjVrP1bxTLx/ZcipoNXHi7WrZSWpCiWtqvWwmQUuM9RZdh",
        "List-Post": "<mailto:dev@dpdk.org>",
        "MIME-Version": "1.0",
        "X-BeenThere": "dev@dpdk.org",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "Subject": "[dpdk-dev] [PATCH 1/2] net/bnxt: add meson build option",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 878ECA0526;\n\tTue, 21 Jul 2020 19:47:32 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 1946F1C039;\n\tTue, 21 Jul 2020 19:47:24 +0200 (CEST)",
            "from mail-wr1-f99.google.com (mail-wr1-f99.google.com\n [209.85.221.99]) by dpdk.org (Postfix) with ESMTP id E216A1C02C\n for <dev@dpdk.org>; Tue, 21 Jul 2020 19:47:21 +0200 (CEST)",
            "by mail-wr1-f99.google.com with SMTP id a14so7182456wra.5\n for <dev@dpdk.org>; Tue, 21 Jul 2020 10:47:21 -0700 (PDT)",
            "from localhost.localdomain ([192.19.223.252])\n by smtp-relay.gmail.com with ESMTPS id y6sm71632wmb.38.2020.07.21.10.47.20\n for <dev@dpdk.org>\n (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);\n Tue, 21 Jul 2020 10:47:21 -0700 (PDT)"
        ],
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "X-Mailer": "git-send-email 2.21.1 (Apple Git-122.3)",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20161025;\n h=x-gm-message-state:from:to:subject:date:message-id:mime-version\n :content-transfer-encoding;\n bh=OSm/+31hDTjS0JDXwg4akIGnsSTGtq6U57BK5Tcqoa8=;\n b=ZeBE037MKkxnvccAcC60HDeKHBIa3vux8S1bGI1IIBoHA42Kkaa37uobqqIybksGbd\n 8jx9kz8plUW3fUKjyaZeKc9MGC9I+AC/xPuRo4MqkKCNbi09NuYoDudy5l5DH9cF5nLy\n 20CJCbkF5uCeA1dWRl1O73PfaEYOOtlKgON3hnxcxIQFyeYSvsajW8fB8LiIMklyuBig\n Ngw+DWRKp2Ug20XhfIW7XqM3lyASx4VAZB9/TrANesVpBaAyy23BhXi9l2WYoqGavFCv\n LlKN12mfoCz51F+rYGtx9Jq8JN3IIZ+YmWdI5PnBbr99KXvwCek0YkQXB4K3iUEDW4TS\n tbFw==",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com;\n s=google;\n h=from:to:subject:date:message-id:mime-version\n :content-transfer-encoding;\n bh=OSm/+31hDTjS0JDXwg4akIGnsSTGtq6U57BK5Tcqoa8=;\n b=JOGv2D067DzgNXxVOAypgpD0SJo0rduhC++Xc/GS08R5S+PfrZGHeSST4ofbHsdQmq\n x4BO+2EfZLqDTna8ZMnS9aKIXdVsVwk2H+Zrqpv4o+iS8koaTERN9DUp5enKCqpRp/Zq\n SvvtK+esX7tLL3BP+BwPfYpWYxTTWJKqBgWvc=",
        "Date": "Tue, 21 Jul 2020 10:47:11 -0700",
        "Content-Transfer-Encoding": "8bit",
        "X-Received": "by 2002:a05:6000:1288:: with SMTP id\n f8mr19376786wrx.62.1595353641253;\n Tue, 21 Jul 2020 10:47:21 -0700 (PDT)",
        "To": "dev@dpdk.org",
        "X-Relaying-Domain": "broadcom.com",
        "From": "Ajit Khaparde <ajit.khaparde@broadcom.com>",
        "Errors-To": "dev-bounces@dpdk.org",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "Message-Id": "<20200721174712.48625-1-ajit.khaparde@broadcom.com>",
        "Return-Path": "<dev-bounces@dpdk.org>"
    },
    "content": "Add an option in meson build to indicate the memory management scheme.\nbnxt_eem_system is set to false by default.\n\nSigned-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>\n---\n doc/guides/nics/bnxt.rst     |  9 +++++++++\n drivers/net/bnxt/meson.build | 16 ++++++++++++++--\n meson_options.txt            |  2 ++\n 3 files changed, 25 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/doc/guides/nics/bnxt.rst b/doc/guides/nics/bnxt.rst\nindex 6ff75d0a2..dcb4309d2 100644\n--- a/doc/guides/nics/bnxt.rst\n+++ b/doc/guides/nics/bnxt.rst\n@@ -809,6 +809,15 @@ is stopped.\n Note that TX (or RX) vector mode can be enabled independently from RX (or TX)\n vector mode.\n \n+Configuration\n+-------------\n+\n+Compilation options\n+~~~~~~~~~~~~~~~~~~~\n+\n+- ``bnxt_eem_system``\t(default **false**)\n+This option allows to select the flow table memory management scheme.\n+\n Appendix\n --------\n \ndiff --git a/drivers/net/bnxt/meson.build b/drivers/net/bnxt/meson.build\nindex 8529b333c..21a1df915 100644\n--- a/drivers/net/bnxt/meson.build\n+++ b/drivers/net/bnxt/meson.build\n@@ -4,6 +4,14 @@\n \n install_headers('rte_pmd_bnxt.h')\n \n+bnxt_eem_sys = (get_option('bnxt_eem_system'))\n+if bnxt_eem_sys\n+\tdpdk_conf.set('RTE_LIBRTE_BNXT_PMD_SYSTEM', true)\n+\tcflags += [\n+\t\t'-DTF_USE_SYSTEM_MEM'\n+\t]\n+endif\n+\n includes += include_directories('tf_ulp')\n includes += include_directories('tf_core')\n \n@@ -29,7 +37,6 @@ sources = files('bnxt_cpr.c',\n \t'tf_core/rand.c',\n \t'tf_core/stack.c',\n         'tf_core/tf_em_common.c',\n-        'tf_core/tf_em_host.c',\n         'tf_core/tf_em_internal.c',\n \t'tf_core/tf_rm.c',\n \t'tf_core/tf_tbl.c',\n@@ -45,7 +52,6 @@ sources = files('bnxt_cpr.c',\n \t'tf_core/tf_if_tbl.c',\n \t'tf_core/ll.c',\n \t'tf_core/tf_global_cfg.c',\n-\t'tf_core/tf_em_host.c',\n \t'tf_core/tf_shadow_identifier.c',\n \n \t'hcapi/hcapi_cfa_p4.c',\n@@ -67,6 +73,12 @@ sources = files('bnxt_cpr.c',\n \n \t'rte_pmd_bnxt.c')\n \n+if bnxt_eem_sys\n+\tsources += files('tf_core/tf_em_system.c')\n+elif not bnxt_eem_sys\n+\tsources += files('tf_core/tf_em_host.c')\n+endif\n+\n if arch_subdir == 'x86'\n \tsources += files('bnxt_rxtx_vec_sse.c')\n elif arch_subdir == 'arm' and host_machine.cpu_family().startswith('aarch64')\ndiff --git a/meson_options.txt b/meson_options.txt\nindex 9bf18ab6b..24d72fb10 100644\n--- a/meson_options.txt\n+++ b/meson_options.txt\n@@ -2,6 +2,8 @@\n \n option('armv8_crypto_dir', type: 'string', value: '',\n \tdescription: 'path to the armv8_crypto library installation directory')\n+option('bnxt_eem_system', type: 'boolean', value: false,\n+\tdescription: 'EEM system memory support')\n option('disable_drivers', type: 'string', value: '',\n \tdescription: 'Comma-separated list of drivers to explicitly disable.')\n option('drivers_install_subdir', type: 'string', value: 'dpdk/pmds-<VERSION>',\n",
    "prefixes": [
        "1/2"
    ]
}