get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 139960,
    "url": "https://patches.dpdk.org/api/patches/139960/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20240507025355.7145-1-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": "<20240507025355.7145-1-stephen@networkplumber.org>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20240507025355.7145-1-stephen@networkplumber.org",
    "date": "2024-05-07T02:53:54",
    "name": "[1/2] lpm: remove unnecessary temporary VLA",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "f390f182899898d434e9bd1d1aaf10f6e52c0206",
    "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/20240507025355.7145-1-stephen@networkplumber.org/mbox/",
    "series": [
        {
            "id": 31888,
            "url": "https://patches.dpdk.org/api/series/31888/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=31888",
            "date": "2024-05-07T02:53:54",
            "name": "[1/2] lpm: remove unnecessary temporary VLA",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/31888/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/139960/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/139960/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 3ECC143FAA;\n\tTue,  7 May 2024 04:54:10 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 03CAC42E3F;\n\tTue,  7 May 2024 04:54:10 +0200 (CEST)",
            "from mail-pf1-f180.google.com (mail-pf1-f180.google.com\n [209.85.210.180])\n by mails.dpdk.org (Postfix) with ESMTP id 9AC464027B\n for <dev@dpdk.org>; Tue,  7 May 2024 04:54:08 +0200 (CEST)",
            "by mail-pf1-f180.google.com with SMTP id\n d2e1a72fcca58-6f44a2d1e3dso2228158b3a.3\n for <dev@dpdk.org>; Mon, 06 May 2024 19:54:08 -0700 (PDT)",
            "from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226])\n by smtp.gmail.com with ESMTPSA id\n v8-20020aa78508000000b006ead792b6f2sm8466108pfn.1.2024.05.06.19.54.06\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Mon, 06 May 2024 19:54:07 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1715050447;\n x=1715655247; darn=dpdk.org;\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=odpbCbPKJbNy9lq8M2bkJamESlxScMlSEJ/CG3ThLpM=;\n b=gR2QI5WYInlT0BCDH+IpyKC65PFvVXxzfWD+LRlMfFGwITNOKbEEldXeKK8q99xArq\n mLZD1kSVI1Ajp3jJF7NH9cSAj6nIM9g1x+RbbsjqiGXLjZgujggmr+I5rR0dU+68GleG\n ahlgehUopjGPg+Nk8+N6kADBlosMbEurVL+J4JUikQ8FLeRHYxfHufO3nK9+py4qfqVG\n hMIaN29n8+YDO58+7zmrDUX3PhQd3oCVe4wmauzeIqjzQ7QN0NcuGfN6rq4QEGLsg30b\n EoAPTJmwDsIEYKPBq4A0RoxXx2O3mb9UBEOWUMHOk8NLtUhFObYj/SAJqikxZmCHLV+V\n l8VQ==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1715050447; x=1715655247;\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=odpbCbPKJbNy9lq8M2bkJamESlxScMlSEJ/CG3ThLpM=;\n b=CUsm/6PsWprwh6RkFR8zBTprBpslSza60ZQgBKsU3+BLPbb1zpSShFfHfhPKi2Z/xr\n pGShZUX8uzOzF69EaGWBxTIPpLU6iCc0oYmetPu/HHbVACaOXDX9zZ2BB8hlqwVEvbTQ\n 0g0FQmeHCWBIj7U3Y/wRBKsgX/VKHPJ7TI7u8fZpWMN8oI54/Utbig1a4PwVqTlrQkpY\n CQwP9Z6CCsKvuhnsbQshIaG3ixaWVgnXf53GffQdTo2SdPIdaIbQaccRbvPLXMzgsjMg\n JRO+zhYXTLr9lEfzTMRtMs7tJeduI9LIMFUSDZzpEvmhP5QVbiJX/dM2vhZ+W2hwKwK8\n t9OA==",
        "X-Gm-Message-State": "AOJu0Yw0rrpLKWKiuVLMbKEMx85pOwFmvaOh3MNyZ11msihMi2oXsrQ3\n 42ivCBL+cPX1RKmDKpg99eK3dtPml9Rk+YGq6vLcQUTYXXVVeHkOXsom2hFEC6U=",
        "X-Google-Smtp-Source": "\n AGHT+IG21uQ9pzXhSxoxXB5ptplB1BcfXWpD5GY8FRxanrGh535IfVZ0f5Him8bzDWdozXkECRXfzQ==",
        "X-Received": "by 2002:a05:6a21:8887:b0:1a7:9812:3680 with SMTP id\n tb7-20020a056a21888700b001a798123680mr12800588pzc.40.1715050447559;\n Mon, 06 May 2024 19:54:07 -0700 (PDT)",
        "From": "Stephen Hemminger <stephen@networkplumber.org>",
        "To": "roretzla@linux.microsoft.com",
        "Cc": "dev@dpdk.org,\n\tStephen Hemminger <stephen@networkplumber.org>",
        "Subject": "[PATCH 1/2] lpm: remove unnecessary temporary VLA",
        "Date": "Mon,  6 May 2024 19:53:54 -0700",
        "Message-ID": "<20240507025355.7145-1-stephen@networkplumber.org>",
        "X-Mailer": "git-send-email 2.43.0",
        "In-Reply-To": "<1715019531-22796-1-git-send-email-roretzla@linux.microsoft.com>",
        "References": "<1715019531-22796-1-git-send-email-roretzla@linux.microsoft.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": "Do not need to recompute all the table indices.\n\nSigned-off-by: Stephen Hemminger <stephen@networkplumber.org>\n---\n lib/lpm/rte_lpm.h | 7 ++-----\n 1 file changed, 2 insertions(+), 5 deletions(-)",
    "diff": "diff --git a/lib/lpm/rte_lpm.h b/lib/lpm/rte_lpm.h\nindex 2888e5f4ca..9c6df311cb 100644\n--- a/lib/lpm/rte_lpm.h\n+++ b/lib/lpm/rte_lpm.h\n@@ -337,7 +337,6 @@ rte_lpm_lookup_bulk_func(const struct rte_lpm *lpm, const uint32_t *ips,\n \t\tuint32_t *next_hops, const unsigned n)\n {\n \tunsigned i;\n-\tunsigned tbl24_indexes[n];\n \tconst uint32_t *ptbl;\n \n \t/* DEBUG: Check user input arguments. */\n@@ -345,12 +344,10 @@ rte_lpm_lookup_bulk_func(const struct rte_lpm *lpm, const uint32_t *ips,\n \t\t\t(next_hops == NULL)), -EINVAL);\n \n \tfor (i = 0; i < n; i++) {\n-\t\ttbl24_indexes[i] = ips[i] >> 8;\n-\t}\n+\t\tunsigned int tbl24_index = ips[i] >> 8;\n \n-\tfor (i = 0; i < n; i++) {\n \t\t/* Simply copy tbl24 entry to output */\n-\t\tptbl = (const uint32_t *)&lpm->tbl24[tbl24_indexes[i]];\n+\t\tptbl = (const uint32_t *)&lpm->tbl24[tbl24_index];\n \t\tnext_hops[i] = *ptbl;\n \n \t\t/* Overwrite output with tbl8 entry if needed */\n",
    "prefixes": [
        "1/2"
    ]
}