get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 124125,
    "url": "http://patches.dpdk.org/api/patches/124125/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230217154759.2484937-1-ed.czeck@atomicrules.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": "<20230217154759.2484937-1-ed.czeck@atomicrules.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230217154759.2484937-1-ed.czeck@atomicrules.com",
    "date": "2023-02-17T15:47:56",
    "name": "[1/3] net/ark: support secondary process",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "7b2f08d368ca598603e6b0c11a0b6da6babd89ad",
    "submitter": {
        "id": 699,
        "url": "http://patches.dpdk.org/api/people/699/?format=api",
        "name": "Ed Czeck",
        "email": "ed.czeck@atomicrules.com"
    },
    "delegate": {
        "id": 319,
        "url": "http://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20230217154759.2484937-1-ed.czeck@atomicrules.com/mbox/",
    "series": [
        {
            "id": 27062,
            "url": "http://patches.dpdk.org/api/series/27062/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=27062",
            "date": "2023-02-17T15:47:56",
            "name": "[1/3] net/ark: support secondary process",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/27062/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/124125/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/124125/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 mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id C05D241CC1;\n\tFri, 17 Feb 2023 16:48:08 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 5835340EE3;\n\tFri, 17 Feb 2023 16:48:08 +0100 (CET)",
            "from mail-qv1-f42.google.com (mail-qv1-f42.google.com\n [209.85.219.42]) by mails.dpdk.org (Postfix) with ESMTP id D1EA440EE1\n for <dev@dpdk.org>; Fri, 17 Feb 2023 16:48:07 +0100 (CET)",
            "by mail-qv1-f42.google.com with SMTP id fn4so776000qvb.12\n for <dev@dpdk.org>; Fri, 17 Feb 2023 07:48:07 -0800 (PST)",
            "from z690.czeck.local (pool-173-48-111-149.bstnma.fios.verizon.net.\n [173.48.111.149]) by smtp.gmail.com with ESMTPSA id\n o73-20020a37414c000000b007195af894e7sm3440904qka.76.2023.02.17.07.48.05\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Fri, 17 Feb 2023 07:48:05 -0800 (PST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=atomicrules-com.20210112.gappssmtp.com; s=20210112;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:from:to:cc:subject:date:message-id:reply-to;\n bh=FqQjCru+Men6Cl9eZ9QW3zP7vhgpg2FxEGvPPXFQMLU=;\n b=1uxxPHrQ1GROKOV4IDYpg97hIWELgAIB/j29GttXC1S9c8J0j8NowwdSE4OO2+2g6P\n z8Ux11P1bOxlQUjv8lTHSXQ+TZ7+52ThbeHkmAhmYNa8/gSonDafVLCFBrlIZEG/lLa0\n F5eKHH3+VRAJpWQquGe8jRxFIV2RPj1rbOQYL1ycr0xJ+zM0aVvJRYdPJqpWuaZtils8\n 50L98+2oYJrGJDXiNYzAVATRHBJWfwJ4/2H5OMqDfJBvvl1523h+/0NTpHbcE8OxjAjg\n woKuAmXcsFoEd+Q+evHEYyv7P4t4HZkMzgA5Qe0gYSX9P/Y5K7bFAgosC+hAqL5edehP\n DZUA==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20210112;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:x-gm-message-state:from:to:cc:subject:date:message-id\n :reply-to;\n bh=FqQjCru+Men6Cl9eZ9QW3zP7vhgpg2FxEGvPPXFQMLU=;\n b=rj4ZUq9tVZFmzP5taZoRo0TfuIl539fke/hWjdsmNRHmiGNTfNpmp/yat/H2k4JJGc\n uyzBJUtVkWNLQNqqVSimUC4uSiSiqxJt/Gaw4tp1Jfazn2EaoHXuHjCESyqyupG2GM3r\n 1CAc+0lRY0eheV2Pqy0alkk42YEUjDyIW+JlnV1czspdWwGQ4G9lJ9TlIdBaysfvr8Nr\n axRbPmRq3LsOREYGjamC229DywFUH4IRXH5Ke4gufUpTkz3mcBTlJRRUDkamW+Phe2+N\n 0jfqQUV/2tO3GLwNaOvHf+x/GErW4W4nIdKUqMMg1ORuJYPYX9Y1cudAYZ8b+Lb8uQyz\n MrkA==",
        "X-Gm-Message-State": "AO0yUKWCCduBPTXGSA1DKQoX8n169XuvbA6MMcFrERObZLz2u8+Ck2P8\n Nd4DciK4wBQom2tENKek6Ipv6n6aDEAgUVxk",
        "X-Google-Smtp-Source": "\n AK7set9Ecx6E0lyMv9KGkUvTGbepoYdjfdm98tpkFkGaKU3qDnU6vqoJ5FW4PPkBM0cTPErMcYc5BQ==",
        "X-Received": "by 2002:a05:6214:5091:b0:56c:4c11:553 with SMTP id\n kk17-20020a056214509100b0056c4c110553mr9127528qvb.19.1676648886606;\n Fri, 17 Feb 2023 07:48:06 -0800 (PST)",
        "From": "Ed Czeck <ed.czeck@atomicrules.com>",
        "To": "dev@dpdk.org,\n\tferruh.yigit@amd.com",
        "Cc": "John Miller <john.miller@atomicrules.com>,\n Shepard Siegel <shepard.siegel@atomicrules.com>,\n Anatoly Burakov <anatoly.burakov@intel.com>",
        "Subject": "[PATCH 1/3] net/ark: support secondary process",
        "Date": "Fri, 17 Feb 2023 10:47:56 -0500",
        "Message-Id": "<20230217154759.2484937-1-ed.czeck@atomicrules.com>",
        "X-Mailer": "git-send-email 2.34.1",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "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"
    },
    "content": "From: John Miller <john.miller@atomicrules.com>\n\ndisable device configuration for secondary processes\n\nSigned-off-by: John Miller <john.miller@atomicrules.com>\n---\n drivers/net/ark/ark_ethdev.c | 11 ++++++++---\n 1 file changed, 8 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/drivers/net/ark/ark_ethdev.c b/drivers/net/ark/ark_ethdev.c\nindex b2995427c8..f96722551e 100644\n--- a/drivers/net/ark/ark_ethdev.c\n+++ b/drivers/net/ark/ark_ethdev.c\n@@ -147,6 +147,9 @@ eth_ark_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,\n \tstruct rte_eth_dev *eth_dev;\n \tint ret;\n \n+\tif (rte_eal_process_type() == RTE_PROC_SECONDARY)\n+\t\tfprintf(stderr, \"ARK probed by secondary process\\n\");\n+\n \teth_dev = rte_eth_dev_pci_allocate(pci_dev, sizeof(struct ark_adapter));\n \n \tif (eth_dev == NULL)\n@@ -385,9 +388,11 @@ eth_ark_dev_init(struct rte_eth_dev *dev)\n \t\t    0xcafef00d, ark->sysctrl.t32[4], __func__);\n \n \t/* We are a single function multi-port device. */\n-\tret = ark_config_device(dev);\n-\tif (ret)\n-\t\treturn -1;\n+\tif (rte_eal_process_type() == RTE_PROC_PRIMARY) {\n+\t\tret = ark_config_device(dev);\n+\t\tif (ret)\n+\t\t\treturn -1;\n+\t}\n \n \tdev->dev_ops = &ark_eth_dev_ops;\n \tdev->rx_queue_count = eth_ark_dev_rx_queue_count;\n",
    "prefixes": [
        "1/3"
    ]
}