get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 126880,
    "url": "http://patches.dpdk.org/api/patches/126880/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230516110359.479441-1-yasinncaner@gmail.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": "<20230516110359.479441-1-yasinncaner@gmail.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230516110359.479441-1-yasinncaner@gmail.com",
    "date": "2023-05-16T11:03:59",
    "name": "[v2] lib/kni : coding style is fixed",
    "commit_ref": null,
    "pull_url": null,
    "state": "rejected",
    "archived": true,
    "hash": "c10c3427e0d4a25b9d1694bec6b288ad54827d14",
    "submitter": {
        "id": 3068,
        "url": "http://patches.dpdk.org/api/people/3068/?format=api",
        "name": "Yasin CANER",
        "email": "yasinncaner@gmail.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/20230516110359.479441-1-yasinncaner@gmail.com/mbox/",
    "series": [
        {
            "id": 28007,
            "url": "http://patches.dpdk.org/api/series/28007/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=28007",
            "date": "2023-05-16T11:03:59",
            "name": "[v2] lib/kni : coding style is fixed",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/28007/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/126880/comments/",
    "check": "warning",
    "checks": "http://patches.dpdk.org/api/patches/126880/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 3320342B22;\n\tTue, 16 May 2023 13:04:06 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id BBCC840A8B;\n\tTue, 16 May 2023 13:04:05 +0200 (CEST)",
            "from mail-wr1-f53.google.com (mail-wr1-f53.google.com\n [209.85.221.53])\n by mails.dpdk.org (Postfix) with ESMTP id C8BD34068E;\n Tue, 16 May 2023 13:04:04 +0200 (CEST)",
            "by mail-wr1-f53.google.com with SMTP id\n ffacd0b85a97d-3075e802738so12838575f8f.1;\n Tue, 16 May 2023 04:04:04 -0700 (PDT)",
            "from spgw-dpdk.epc.mnc001.mcc001.3gppnetwork.org ([176.236.170.162])\n by smtp.gmail.com with ESMTPSA id\n t1-20020a5d5341000000b002ff2c39d072sm2221245wrv.104.2023.05.16.04.04.02\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 16 May 2023 04:04:03 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20221208; t=1684235044; x=1686827044;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=Lpz7yaEyLLNS1dJvXe880kIp/TWgDicMFSfwZlwlDkQ=;\n b=DjWFM+7+2VvSXFgX9CK6lR0kepFSdoGYbSaX4FsqtCTqgyLrXiiBXKBuO85P2Lq16E\n UOyPFnhjRU4agLDHKorpWNAyVHjevWs1MJchHPgTMHmSrTY+zrlpuPbdLV2vCjkefDhW\n p1U+u/WeLRP56KnpG5icPcNIWs8sVDneEVtaAWa6wh1hnvswloSjtTs2lmJcTwdr/Yvv\n 2VdViTDghmeEzmYmxi9FsIKOY20ZEo4AsQqgnK6CE9rT/grPGQVoSlP7T/xALeJgT15B\n 9L4xunBI5I5eHJM8b7A8TvIgG5FoZ7la7ogA3yV2wbmx1Vesk79Sv7X+IlQfYL/6+ZKB\n /Tcw==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20221208; t=1684235044; x=1686827044;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc\n :subject:date:message-id:reply-to;\n bh=Lpz7yaEyLLNS1dJvXe880kIp/TWgDicMFSfwZlwlDkQ=;\n b=GMIPMiUK97mOr2s+Gk2RIlj2sGbrgKu5dQQQajixtKbmUx/f6QnJ5WPWua3C+J6FoC\n 2Nqkc5jdSETBdqZfGuyAu1qT3w5C7PepUX5H7rNLpTn9Hlj73sLWJyc/ydwRz64h+Q8q\n A082W9wr0QwkTVgvcrYBkxxyTrsyKadJr0gPmbTpq3blXL2h8MrLTU0YHvUk8PXFKN7z\n 0GyqwzcCcJmpJbJN+NCpYjtwnMkGH+YuH03k+lzgwBt2KnTeceVfc+zNyHeq4v4KgC42\n 5XMq+l8hwauWVxEWZznMmz62VgOFCyNA0xcKp9L5c2RB1FtNB5TJ0fwPnhEcEeHoHer4\n OpPg==",
        "X-Gm-Message-State": "AC+VfDxRI7BgcZuCPnpkmbitRxdrl4igFGTVKiv6qnCQzM/IfDKHyLUs\n PJmgt4cyRMMYoP5IIrTuocdgIFFkDnI=",
        "X-Google-Smtp-Source": "\n ACHHUZ67cZ2/vzcbLlLpQEiIq3zt+fBX9JKU98mEUsr6JDcat+sGtqj1Msj8EsJMisRW8uHQLOyycQ==",
        "X-Received": "by 2002:adf:f492:0:b0:307:a36b:e7b1 with SMTP id\n l18-20020adff492000000b00307a36be7b1mr21195277wro.5.1684235043833;\n Tue, 16 May 2023 04:04:03 -0700 (PDT)",
        "From": "Yasin CANER <yasinncaner@gmail.com>",
        "To": "dev@dpdk.org",
        "Cc": "stable@dpdk.org,\n\tstephen@networkplumber.org",
        "Subject": "[PATCH v2] lib/kni : coding style is fixed",
        "Date": "Tue, 16 May 2023 11:03:59 +0000",
        "Message-Id": "<20230516110359.479441-1-yasinncaner@gmail.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20230516104853.479297-1-yasinncaner@gmail.com>",
        "References": "<20230516104853.479297-1-yasinncaner@gmail.com>",
        "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": "Coverity issue:\nBugzilla ID: 1227\nFixes:\nCc: stable@dpdk.org\nCc: stephen@networkplumber.org\n\nCoding style is fixed\n---\n lib/kni/rte_kni.c | 13 +++++++------\n 1 file changed, 7 insertions(+), 6 deletions(-)",
    "diff": "diff --git a/lib/kni/rte_kni.c b/lib/kni/rte_kni.c\nindex 2244892aae..703333c2da 100644\n--- a/lib/kni/rte_kni.c\n+++ b/lib/kni/rte_kni.c\n@@ -683,20 +683,21 @@ kni_allocate_mbufs(struct rte_kni *kni)\n \t\tRTE_LOG(ERR, KNI, \"No valid mempool for allocating mbufs\\n\");\n \t\treturn;\n \t}\n-\t/* First, getting allocation count from alloc_q. alloc_q is allocated in this function \n-\t * and/or kni_alloc function from mempool.\n-\t * If alloc_q is completely removed, it shall be allocated again.\n-\t * */\n+\n+\t/* First, getting allocation count from alloc_q. alloc_q is allocated in this function*/ \n+\t/* and/or kni_alloc function from mempool.*/\n+\t/* If alloc_q is completely removed, it shall be allocated again.*/\n+\n \tallocq = kni_fifo_count(kni->alloc_q);\n \t/* How many free allocation is possible from mempool. */\n \tallocq_free = kni_fifo_free_count(kni->alloc_q);\n \t/* Allocated alloc_q count shall be max MAX_MBUF_BURST_NUM. */\n \tallocq_count = MAX_MBUF_BURST_NUM - (int)allocq;\n \t/* Try to figure out how many allocation is possible. allocq_free is max possible.*/\n-\tallocq_free = (allocq_free > MAX_MBUF_BURST_NUM )? MAX_MBUF_BURST_NUM : allocq_free;\n+\tallocq_free = (allocq_free > MAX_MBUF_BURST_NUM) ? MAX_MBUF_BURST_NUM : allocq_free;\n \t/* Buffer is not removed so no need re-allocate*/\n \n-\tif(!allocq_count) {\n+\tif (!allocq_count) {\n \t\t/* Buffer is not removed so no need re-allocation*/\n \t\treturn;\n \t} else if (allocq_free > allocq_count) {\n",
    "prefixes": [
        "v2"
    ]
}