get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 130786,
    "url": "http://patchwork.dpdk.org/api/patches/130786/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/366f5750e01894c56d5d486c75d312e85c404277.1693224396.git.anatoly.burakov@intel.com/",
    "project": {
        "id": 1,
        "url": "http://patchwork.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": "<366f5750e01894c56d5d486c75d312e85c404277.1693224396.git.anatoly.burakov@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/366f5750e01894c56d5d486c75d312e85c404277.1693224396.git.anatoly.burakov@intel.com",
    "date": "2023-08-28T12:06:40",
    "name": "[v1,1/1] eal/random: fix random state initialization for non-eal threads",
    "commit_ref": null,
    "pull_url": null,
    "state": "rejected",
    "archived": true,
    "hash": "8de4b78cc9e2e7ff0e3931a3d26bb74ea2ea0797",
    "submitter": {
        "id": 4,
        "url": "http://patchwork.dpdk.org/api/people/4/?format=api",
        "name": "Burakov, Anatoly",
        "email": "anatoly.burakov@intel.com"
    },
    "delegate": {
        "id": 24651,
        "url": "http://patchwork.dpdk.org/api/users/24651/?format=api",
        "username": "dmarchand",
        "first_name": "David",
        "last_name": "Marchand",
        "email": "david.marchand@redhat.com"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/366f5750e01894c56d5d486c75d312e85c404277.1693224396.git.anatoly.burakov@intel.com/mbox/",
    "series": [
        {
            "id": 29355,
            "url": "http://patchwork.dpdk.org/api/series/29355/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=29355",
            "date": "2023-08-28T12:06:40",
            "name": "[v1,1/1] eal/random: fix random state initialization for non-eal threads",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/29355/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/130786/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/130786/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 36E6C41B43;\n\tMon, 28 Aug 2023 14:06:59 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 6B47D40272;\n\tMon, 28 Aug 2023 14:06:58 +0200 (CEST)",
            "from mgamail.intel.com (mgamail.intel.com [134.134.136.31])\n by mails.dpdk.org (Postfix) with ESMTP id 38B4E4021E;\n Mon, 28 Aug 2023 14:06:50 +0200 (CEST)",
            "from orsmga006.jf.intel.com ([10.7.209.51])\n by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 28 Aug 2023 05:06:48 -0700",
            "from silpixa00401191.ir.intel.com ([10.55.128.139])\n by orsmga006.jf.intel.com with ESMTP; 28 Aug 2023 05:06:43 -0700"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1693224415; x=1724760415;\n h=from:to:cc:subject:date:message-id:mime-version:\n content-transfer-encoding;\n bh=5QvuRLdubnWOsj0heleex1Q0SBOR1Ir7AbC4P/l5dNg=;\n b=Ozgf3iMfZODag1gPlWNjpENOlggVEZsHLPPx0xUSU6AafK8eMMdtNx7O\n gd66tK+d+7nV3f44Z+RzFBKOmZlLq9mmhA9tKTGZEwnEEPCvcOgnpuObw\n rdwiHOIG2qYcxsyF8LSZ9vS6CcuMej6XC1rrJYmShpu2ii2yUFKvCH/mb\n 4SnGaP8WDQFiVq5OvLaDxjlgVYsI+ni6WFJQZ6av24W0SwTsTNit5ZWQR\n j7rnhyxmBgtMdbvNURhTvdHtBK8LYX/qImMHQAnE8p6FpvM1Jgf+sSCeW\n gBp/wmdQFO1O2kXCmurl19KcJYHW9U/HBZ+sA+qxld+xN7UiqQPyawpJy g==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6600,9927,10815\"; a=\"439031228\"",
            "E=Sophos;i=\"6.02,207,1688454000\"; d=\"scan'208\";a=\"439031228\"",
            "E=McAfee;i=\"6600,9927,10815\"; a=\"715089753\"",
            "E=Sophos;i=\"6.02,207,1688454000\"; d=\"scan'208\";a=\"715089753\""
        ],
        "X-ExtLoop1": "1",
        "From": "Anatoly Burakov <anatoly.burakov@intel.com>",
        "To": "dev@dpdk.org,\n =?utf-8?q?Mattias_R=C3=B6nnblom?= <mattias.ronnblom@ericsson.com>,\n Bruce Richardson <bruce.richardson@intel.com>",
        "Cc": "stable@dpdk.org",
        "Subject": "[PATCH v1 1/1] eal/random: fix random state initialization for\n non-eal threads",
        "Date": "Mon, 28 Aug 2023 12:06:40 +0000",
        "Message-Id": "\n <366f5750e01894c56d5d486c75d312e85c404277.1693224396.git.anatoly.burakov@intel.com>",
        "X-Mailer": "git-send-email 2.37.2",
        "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": "Currently, the rte_rand() state is initialized with seed, and each\nrand state is initialized up until RTE_MAX_LCORE'th rand state. However,\nrand state also has one extra rand state reserved for non-EAL threads,\nwhich is not initialized. Fix it by initializing this extra state.\n\nFixes: 3f002f069612 (\"eal: replace libc-based random generation with LFSR\")\nCc: mattias.ronnblom@ericsson.com\nCc: stable@dpdk.org\n\nSigned-off-by: Anatoly Burakov <anatoly.burakov@intel.com>\n---\n lib/eal/common/rte_random.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/lib/eal/common/rte_random.c b/lib/eal/common/rte_random.c\nindex 565f2401ce..e5691813a4 100644\n--- a/lib/eal/common/rte_random.c\n+++ b/lib/eal/common/rte_random.c\n@@ -83,7 +83,7 @@ rte_srand(uint64_t seed)\n \tunsigned int lcore_id;\n \n \t/* add lcore_id to seed to avoid having the same sequence */\n-\tfor (lcore_id = 0; lcore_id < RTE_MAX_LCORE; lcore_id++)\n+\tfor (lcore_id = 0; lcore_id < RTE_MAX_LCORE + 1; lcore_id++)\n \t\t__rte_srand_lfsr258(seed + lcore_id, &rand_states[lcore_id]);\n }\n \n",
    "prefixes": [
        "v1",
        "1/1"
    ]
}