get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 65769,
    "url": "http://patches.dpdk.org/api/patches/65769/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200212220708.492297-3-thomas@monjalon.net/",
    "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": "<20200212220708.492297-3-thomas@monjalon.net>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200212220708.492297-3-thomas@monjalon.net",
    "date": "2020-02-12T22:07:04",
    "name": "[v5,2/6] net/mlx: add static ibverbs linkage with meson",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "54cb0cbb5999d1e0ef0209bac098a910d48d09d2",
    "submitter": {
        "id": 685,
        "url": "http://patches.dpdk.org/api/people/685/?format=api",
        "name": "Thomas Monjalon",
        "email": "thomas@monjalon.net"
    },
    "delegate": {
        "id": 3268,
        "url": "http://patches.dpdk.org/api/users/3268/?format=api",
        "username": "rasland",
        "first_name": "Raslan",
        "last_name": "Darawsheh",
        "email": "rasland@nvidia.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20200212220708.492297-3-thomas@monjalon.net/mbox/",
    "series": [
        {
            "id": 8518,
            "url": "http://patches.dpdk.org/api/series/8518/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=8518",
            "date": "2020-02-12T22:07:02",
            "name": "mlx ibverbs linking in meson",
            "version": 5,
            "mbox": "http://patches.dpdk.org/series/8518/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/65769/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/65769/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.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 B6A5FA0534;\n\tWed, 12 Feb 2020 23:07:35 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 74B3B1BF9E;\n\tWed, 12 Feb 2020 23:07:19 +0100 (CET)",
            "from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com\n [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id 4B36C1BF7B\n for <dev@dpdk.org>; Wed, 12 Feb 2020 23:07:16 +0100 (CET)",
            "from compute1.internal (compute1.nyi.internal [10.202.2.41])\n by mailout.nyi.internal (Postfix) with ESMTP id CFDBD2201F;\n Wed, 12 Feb 2020 17:07:15 -0500 (EST)",
            "from mailfrontend2 ([10.202.2.163])\n by compute1.internal (MEProxy); Wed, 12 Feb 2020 17:07:15 -0500",
            "from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184])\n by mail.messagingengine.com (Postfix) with ESMTPA id D7FEA30600DC;\n Wed, 12 Feb 2020 17:07:14 -0500 (EST)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h=\n from:to:cc:subject:date:message-id:in-reply-to:references\n :mime-version:content-transfer-encoding; s=mesmtp; bh=bXt+N8Rymh\n j+e/dhGfGgGGxQuj6XQm7RIzyZj3ZL4yk=; b=DJCxChnTbYvAvboz3tqPQdw7d+\n s7k70RZxmOxZItZeCWrL1rgr0X8Q8uSU1VMAO6hagUUFrei7R7quLCRBM23QdQDM\n cCHRpZfFWmqNHFH3xUI/9cHaAcTrQmohbi9rI5mt91rAESOkOBronhiThJxzwquE\n PZy2INjJ7THnY8/3o=",
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=\n messagingengine.com; h=cc:content-transfer-encoding:date:from\n :in-reply-to:message-id:mime-version:references:subject:to\n :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=\n fm2; bh=bXt+N8Rymhj+e/dhGfGgGGxQuj6XQm7RIzyZj3ZL4yk=; b=EIkoUMuP\n hCu2d0TEjUZ2SjDIuGYeHtNjrA7FYoZieQya0izbnhOgnM7w5FURGy5ygloEnRG4\n rbSv2AQ9J9ctYMGUgf60DFkLJSHoddADIv7J3hayqg4ON5bGc8amTgbWy7Sn1WN2\n 8xoUX2dYDG+O9Is1xDk2XPqUHWRapJBtGtpxCRHWqxdt3pVz9t1PqQJuFq/mYusx\n k5MBotmzK39/325j3LVRuu2YjwczsfnF6qg/SAvNLriQHUw6i0jatFMJureAI1mm\n YunXU3h2/KvSrckfgAcx9b0fYm0gHZiOl2GcaTq4lFZleqrvpvVkDq8HK+Vw9mza\n cQMTPqeHw9+Urg=="
        ],
        "X-ME-Sender": "<xms:E3dEXqoiy0JN_2E4YaUbbM1kjeti5Dwa5_PqA59YEMCYaWlN6eSLhQ>",
        "X-ME-Proxy-Cause": "\n gggruggvucftvghtrhhoucdtuddrgedugedrieeigddvvdcutefuodetggdotefrodftvf\n curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu\n uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc\n fjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepvfhhohhmrghs\n ucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenucfkph\n epjeejrddufeegrddvtdefrddukeegnecuvehluhhsthgvrhfuihiivgepudenucfrrghr\n rghmpehmrghilhhfrhhomhepthhhohhmrghssehmohhnjhgrlhhonhdrnhgvth",
        "X-ME-Proxy": "<xmx:E3dEXucVAYIQfN2v2wRGFXKzT59lydK7xLIqJ5H8fbuTTNeKSzwLtw>\n <xmx:E3dEXhTzifwF1mkpstGeP73KfkChAKjLOvIFDH_3D64ROtXC-ZIUXw>\n <xmx:E3dEXieOMdgwuVr1-7oETxllUHqBuFSnUQ6WVLjjHvT71FpD6wy0Hw>\n <xmx:E3dEXvpi-UTT63VAer5JRlROIFz7eM3Lp0SGfZwleAyYJ06vlBenZQ>",
        "From": "Thomas Monjalon <thomas@monjalon.net>",
        "To": "dev@dpdk.org",
        "Cc": "bruce.richardson@intel.com, Matan Azrad <matan@mellanox.com>,\n Shahaf Shuler <shahafs@mellanox.com>,\n John McNamara <john.mcnamara@intel.com>,\n Marko Kovacevic <marko.kovacevic@intel.com>,\n Viacheslav Ovsiienko <viacheslavo@mellanox.com>",
        "Date": "Wed, 12 Feb 2020 23:07:04 +0100",
        "Message-Id": "<20200212220708.492297-3-thomas@monjalon.net>",
        "X-Mailer": "git-send-email 2.25.0",
        "In-Reply-To": "<20200212220708.492297-1-thomas@monjalon.net>",
        "References": "<20200116071656.1663967-1-thomas@monjalon.net>\n <20200212220708.492297-1-thomas@monjalon.net>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v5 2/6] net/mlx: add static ibverbs linkage with\n\tmeson",
        "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 <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 <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "The libibverbs (and libmlx4/5) can be statically embedded\nin the shared PMD library, or in the application with the static PMD.\nIt was supported with make build system in\ncommit 2c0dd7b69fb0 (\"config: add static linkage of mlx dependency\").\n\nThe same feature is enabled with meson when using pkg-config\n(i.e. only if the call to dependency() is successful).\nThe fallback method for searching library with cc.find_library()\nis not supported because the dependencies of the found library\nwould not be linked (no such info in .a file unlike .so).\n\nThe main difference, in meson build system, is the generated .pc file\ngiving arguments to link DPDK with the application.\nUnfortunately the .pc file will not keep memory of the static linkage\noption for libibverbs.\n\nSigned-off-by: Thomas Monjalon <thomas@monjalon.net>\nAcked-by: Bruce Richardson <bruce.richardson@intel.com>\n---\n doc/guides/nics/mlx4.rst        | 4 ++++\n doc/guides/nics/mlx5.rst        | 4 ++++\n drivers/common/mlx5/meson.build | 5 +++--\n drivers/net/mlx4/meson.build    | 5 +++--\n meson_options.txt               | 4 ++--\n 5 files changed, 16 insertions(+), 6 deletions(-)",
    "diff": "diff --git a/doc/guides/nics/mlx4.rst b/doc/guides/nics/mlx4.rst\nindex d0e8a8b2ff..4b1d1aceb2 100644\n--- a/doc/guides/nics/mlx4.rst\n+++ b/doc/guides/nics/mlx4.rst\n@@ -92,6 +92,10 @@ These options can be modified in the ``.config`` file.\n   adds additional run-time checks and debugging messages at the cost of\n   lower performance.\n \n+This option is available in meson:\n+\n+- ``ibverbs_link`` can be ``static``, ``shared``, or ``dlopen``.\n+\n Environment variables\n ~~~~~~~~~~~~~~~~~~~~~\n \ndiff --git a/doc/guides/nics/mlx5.rst b/doc/guides/nics/mlx5.rst\nindex 2411fb3461..ffab34d281 100644\n--- a/doc/guides/nics/mlx5.rst\n+++ b/doc/guides/nics/mlx5.rst\n@@ -278,6 +278,10 @@ These options can be modified in the ``.config`` file.\n    64. Default armv8a configuration of make build and meson build set it to 128\n    then brings performance degradation.\n \n+This option is available in meson:\n+\n+- ``ibverbs_link`` can be ``static``, ``shared``, or ``dlopen``.\n+\n Environment variables\n ~~~~~~~~~~~~~~~~~~~~~\n \ndiff --git a/drivers/common/mlx5/meson.build b/drivers/common/mlx5/meson.build\nindex be57558267..47ae1b65c2 100644\n--- a/drivers/common/mlx5/meson.build\n+++ b/drivers/common/mlx5/meson.build\n@@ -7,6 +7,7 @@ if not is_linux\n \tsubdir_done()\n endif\n \n+static_ibverbs = (get_option('ibverbs_link') == 'static')\n pmd_dlopen = (get_option('ibverbs_link') == 'dlopen')\n LIB_GLUE_BASE = 'librte_pmd_mlx5_glue.so'\n LIB_GLUE_VERSION = '20.02.0'\n@@ -22,8 +23,8 @@ endif\n libnames = [ 'mlx5', 'ibverbs' ]\n libs = []\n foreach libname:libnames\n-\tlib = dependency('lib' + libname, required:false)\n-\tif not lib.found()\n+\tlib = dependency('lib' + libname, static:static_ibverbs, required:false)\n+\tif not lib.found() and not static_ibverbs\n \t\tlib = cc.find_library(libname, required:false)\n \tendif\n \tif lib.found()\ndiff --git a/drivers/net/mlx4/meson.build b/drivers/net/mlx4/meson.build\nindex 6d2397b3cc..7513516764 100644\n--- a/drivers/net/mlx4/meson.build\n+++ b/drivers/net/mlx4/meson.build\n@@ -8,6 +8,7 @@ if not is_linux\n \tsubdir_done()\n endif\n \n+static_ibverbs = (get_option('ibverbs_link') == 'static')\n pmd_dlopen = (get_option('ibverbs_link') == 'dlopen')\n LIB_GLUE_BASE = 'librte_pmd_mlx4_glue.so'\n LIB_GLUE_VERSION = '18.02.0'\n@@ -23,8 +24,8 @@ endif\n libnames = [ 'mlx4', 'ibverbs' ]\n libs = []\n foreach libname:libnames\n-\tlib = dependency('lib' + libname, required:false)\n-\tif not lib.found()\n+\tlib = dependency('lib' + libname, static:static_ibverbs, required:false)\n+\tif not lib.found() and not static_ibverbs\n \t\tlib = cc.find_library(libname, required:false)\n \tendif\n \tif lib.found()\ndiff --git a/meson_options.txt b/meson_options.txt\nindex 20be15fe6b..9e4923a4f1 100644\n--- a/meson_options.txt\n+++ b/meson_options.txt\n@@ -14,8 +14,8 @@ 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('ibverbs_link', type: 'combo', choices : ['static', 'shared', 'dlopen'], value: 'shared',\n+\tdescription: 'Linkage method (static/shared/dlopen) for Mellanox PMDs with ibverbs dependencies.')\n option('include_subdir_arch', type: 'string', value: '',\n \tdescription: 'subdirectory where to install arch-dependent headers')\n option('kernel_dir', type: 'string', value: '',\n",
    "prefixes": [
        "v5",
        "2/6"
    ]
}