get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 57179,
    "url": "https://patches.dpdk.org/api/patches/57179/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20190726163617.29701-2-stephen@networkplumber.org/",
    "project": {
        "id": 1,
        "url": "https://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": "<20190726163617.29701-2-stephen@networkplumber.org>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190726163617.29701-2-stephen@networkplumber.org",
    "date": "2019-07-26T16:36:16",
    "name": "[v2,1/2] bus: fix missing pci bus with shared library build",
    "commit_ref": null,
    "pull_url": null,
    "state": "not-applicable",
    "archived": true,
    "hash": "689a29d21ab49bfad40a3f842430f8454009f493",
    "submitter": {
        "id": 27,
        "url": "https://patches.dpdk.org/api/people/27/?format=api",
        "name": "Stephen Hemminger",
        "email": "stephen@networkplumber.org"
    },
    "delegate": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20190726163617.29701-2-stephen@networkplumber.org/mbox/",
    "series": [
        {
            "id": 5787,
            "url": "https://patches.dpdk.org/api/series/5787/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=5787",
            "date": "2019-07-26T16:36:15",
            "name": "mk: fix build with shared library",
            "version": 2,
            "mbox": "https://patches.dpdk.org/series/5787/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/57179/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/57179/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 D87681C4CF;\n\tFri, 26 Jul 2019 18:36:24 +0200 (CEST)",
            "from mail-pg1-f195.google.com (mail-pg1-f195.google.com\n\t[209.85.215.195]) by dpdk.org (Postfix) with ESMTP id 7DF121C4C7\n\tfor <dev@dpdk.org>; Fri, 26 Jul 2019 18:36:22 +0200 (CEST)",
            "by mail-pg1-f195.google.com with SMTP id f5so16207318pgu.5\n\tfor <dev@dpdk.org>; Fri, 26 Jul 2019 09:36:22 -0700 (PDT)",
            "from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127])\n\tby smtp.gmail.com with ESMTPSA id\n\tm101sm42691781pjb.7.2019.07.26.09.36.19\n\t(version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256);\n\tFri, 26 Jul 2019 09:36:20 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=networkplumber-org.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references\n\t:mime-version:content-transfer-encoding;\n\tbh=g8MpBF8semt6kcRCtP6Vo4lAPv6x3WeGpB6MeTxzd1I=;\n\tb=HaO++NL4b9U6pGwf6b4CZretZ/wpQrBEI8n8TFKjrNElDBG1ZzwUTukRXTgFRQeH8q\n\tGS+Zwbx58YFiTqOCM7IXLoyyLvKs6K5Skx6JQBu1KgYkd2v+xKNZIl08i4Vn/aCGRI58\n\taOIlO1hbK7lFYk24POdIVNHEuZ72FfE0SG0NFWLnRYwgWo4qUeNUQISoAyITZ9tIo08y\n\t4oiNXMCwb8jiWx+Z4nsV4eUf9402QJRfKOAf8it4zCVJTbblly0B+ikMgAfXuUZZBnhA\n\tkGKBuukcWiPLfAVgAWoLIwCCS0QvHRiu6tjhhrfLhqlojPNpuT6ZKSjbwfI3yUdN0jLz\n\t3BgQ==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references:mime-version:content-transfer-encoding;\n\tbh=g8MpBF8semt6kcRCtP6Vo4lAPv6x3WeGpB6MeTxzd1I=;\n\tb=iBO3ojFvjRHnnfLE9rj4vTEHxobkYz9FYtCShouzcBp78yF+RFToRB5nyn9DTm45I4\n\txlrtlQLuypdOy3m6kF+fl1gN+vs0kzhLNBy6e4fOfoWRPgpej9jdNog0vUbV2Oixn/im\n\tV6Xfnoj2pHvBCV0hni8adHLOErteMUJd2hPPy2ZHd/fqFMpA+0tCROoGcH9rsKfG8dBO\n\tDoeyWA9mZ69s77fRuWN/7gAQ6j8cmCVPy90BEc9n+rL5FiNtqHrhbEdvcObOhEtWmwCP\n\t1tGt3uKZDjjJ2giuuJFyB63hdG9OFoQWeLPIxjRjj3yWvy34Wg2NDRQ2DcuuuaRwaweB\n\tVvaw==",
        "X-Gm-Message-State": "APjAAAV4+cBni4nvQIA5MacUGc1wZGloV2hob7N3PfsfkeJbKVO12ifU\n\te5FjuzH2aeho1BYGKl2eqKuIuxzI",
        "X-Google-Smtp-Source": "APXvYqz9IVCZQBhaV2RjSIR1lIGtAD7mhJ7KmrPvy2gJ5uQ+15kQSrVx0Z9c27cZxMseDxf1uzE3Pg==",
        "X-Received": "by 2002:a63:1b66:: with SMTP id\n\tb38mr91821804pgm.54.1564158981144; \n\tFri, 26 Jul 2019 09:36:21 -0700 (PDT)",
        "From": "Stephen Hemminger <stephen@networkplumber.org>",
        "To": "dev@dpdk.org",
        "Cc": "Stephen Hemminger <stephen@networkplumber.org>,\n\tstable@dpdk.org",
        "Date": "Fri, 26 Jul 2019 09:36:16 -0700",
        "Message-Id": "<20190726163617.29701-2-stephen@networkplumber.org>",
        "X-Mailer": "git-send-email 2.20.1",
        "In-Reply-To": "<20190726163617.29701-1-stephen@networkplumber.org>",
        "References": "<20190726163617.29701-1-stephen@networkplumber.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v2 1/2] bus: fix missing pci bus with shared\n\tlibrary 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": "If DPDK is built as a shared library, then any application linked\nwith rte.app.mk will not find any buses (including PCI devices).\n\nThis is because the linker will not call the initializers\nof the bus libraries since they are not directly called by\napplication or EAL.\n\nBugzilla ID: 333\nFixes: c752998b5e2e (\"pci: introduce library and driver\")\nCc: stable@dpdk.org\nSigned-off-by: Stephen Hemminger <stephen@networkplumber.org>\n---\n mk/rte.app.mk | 7 +++++++\n 1 file changed, 7 insertions(+)",
    "diff": "diff --git a/mk/rte.app.mk b/mk/rte.app.mk\nindex a277c808ed8e..3b3156bfcf09 100644\n--- a/mk/rte.app.mk\n+++ b/mk/rte.app.mk\n@@ -123,6 +123,10 @@ ifneq (,$(findstring y,$(MVEP-y)))\n _LDLIBS-y += -lrte_common_mvep -L$(LIBMUSDK_PATH)/lib -lmusdk\n endif\n \n+# Bus devices use constructors to register and therefore\n+# need to be always linked in (--whole-archive already enabled)\n+_LDLIBS-y += --no-as-needed\n+\n ifeq ($(CONFIG_RTE_LIBRTE_DPAA_BUS),y)\n _LDLIBS-$(CONFIG_RTE_LIBRTE_COMMON_DPAAX)   += -lrte_common_dpaax\n endif\n@@ -137,6 +141,9 @@ ifeq ($(CONFIG_RTE_EAL_VFIO),y)\n _LDLIBS-$(CONFIG_RTE_LIBRTE_FSLMC_BUS)      += -lrte_bus_fslmc\n endif\n \n+# drivers are as-needed\n+_LDLIBS-y += --as-needed\n+\n ifeq ($(CONFIG_RTE_BUILD_SHARED_LIB),n)\n # plugins (link only if static libraries)\n \n",
    "prefixes": [
        "v2",
        "1/2"
    ]
}