get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 110977,
    "url": "http://patches.dpdk.org/api/patches/110977/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220510115844.458009-1-kda@semihalf.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": "<20220510115844.458009-1-kda@semihalf.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220510115844.458009-1-kda@semihalf.com",
    "date": "2022-05-10T11:58:44",
    "name": "[1/1] examples/l3fwd: fix scalar LPM compilation",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "cff3caceb1f9b60da589736946896880333a506a",
    "submitter": {
        "id": 2179,
        "url": "http://patches.dpdk.org/api/people/2179/?format=api",
        "name": "Stanislaw Kardach",
        "email": "kda@semihalf.com"
    },
    "delegate": {
        "id": 24651,
        "url": "http://patches.dpdk.org/api/users/24651/?format=api",
        "username": "dmarchand",
        "first_name": "David",
        "last_name": "Marchand",
        "email": "david.marchand@redhat.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20220510115844.458009-1-kda@semihalf.com/mbox/",
    "series": [
        {
            "id": 22869,
            "url": "http://patches.dpdk.org/api/series/22869/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=22869",
            "date": "2022-05-10T11:58:44",
            "name": "[1/1] examples/l3fwd: fix scalar LPM compilation",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/22869/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/110977/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/110977/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 7E7B2A0093;\n\tTue, 10 May 2022 13:58:54 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 7036C42822;\n\tTue, 10 May 2022 13:58:54 +0200 (CEST)",
            "from mail-lj1-f174.google.com (mail-lj1-f174.google.com\n [209.85.208.174])\n by mails.dpdk.org (Postfix) with ESMTP id 025B54069D\n for <dev@dpdk.org>; Tue, 10 May 2022 13:58:53 +0200 (CEST)",
            "by mail-lj1-f174.google.com with SMTP id m23so20550229ljb.8\n for <dev@dpdk.org>; Tue, 10 May 2022 04:58:52 -0700 (PDT)",
            "from toster.office.semihalf.net ([83.142.187.84])\n by smtp.gmail.com with ESMTPSA id\n i11-20020a0565123e0b00b0047255d211e0sm2261564lfv.271.2022.05.10.04.58.50\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 10 May 2022 04:58:51 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=semihalf-com.20210112.gappssmtp.com; s=20210112;\n h=from:to:cc:subject:date:message-id:mime-version\n :content-transfer-encoding;\n bh=sYVtZ3FCCHmCTUIeXaes6QkUDCCYj46uR55BjXZAfPk=;\n b=lDJ2gQUpMqYNKuYI2sTuSkgzSRzYuo7I73oNN7UAHekB+FooRWkNWqR+e2dOaBMbll\n A1/Tpq9+C6ARj6NUBNkgtRWwNrM/vz135rqlg1wwqUyZhi+RMZ2ChYxDwm4BwvrPP4lC\n ilfSFNgqHJkL3H+uMmIIVSk5itCOAsglss13YlAs3bpI/RKQ/36s8YfqgNQYIATq+fxa\n RSd182WF+9rXIXaXUkrergKAGyXDbY3dFw/47V/1jkRVLgHrHq3aS/H2jRIzLhHka1my\n NAU+jPK0J8BR9Rv9RDiyuzv+RV9j6mWuKxuc9nFw3XN5kA0v0rOVsJUk/2sR4fnbA++7\n /E/A==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20210112;\n h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version\n :content-transfer-encoding;\n bh=sYVtZ3FCCHmCTUIeXaes6QkUDCCYj46uR55BjXZAfPk=;\n b=fA65ZDIZa9dlJ6Okw2A1kSQ2ukgAg0Z9G0CLiYoahH6s7OXOQ9++Lj7BSVJxTGUGnl\n XSz1oQnpjjVWfhv6A+7rInXKGpZ5s5mYarM1gnq/HPs8C8v2S50JYsrhUE18wN5glqDs\n Iv6m9mXMJfIKaASY8+gqtHmva3fLTZXZQGeIallzKOmgSSamWwAySHovCxxZRl5g9lln\n x5Hlv6sU/mlA6OVPsvEota9x4Wz0zEdC03oMYKPs4HlKNiIhaM+YAjhtWUZLytJhRlsj\n JWeq+J4BnihCMjx6R1X79pkXak6tGiscrA3kbd5c+usHho630lV/PwX8sK8yk5tAHqzw\n 0wCg==",
        "X-Gm-Message-State": "AOAM532z6PAEqXafrJnRsgoQyV8EicH7Tk/soDmPsW3GHd2+/DN4J0RZ\n Ct0gGoWxaLUl2LEXpelIxx9JiBF6aHk5fQ==",
        "X-Google-Smtp-Source": "\n ABdhPJydMdtSwmPYP9sCm+fZR/9xOiS8UsIr0Ypcwx6dXYTmKnuHay887MdNNcWfNSL9czcSSslAqg==",
        "X-Received": "by 2002:a05:651c:890:b0:248:5819:b949 with SMTP id\n d16-20020a05651c089000b002485819b949mr13638310ljq.476.1652183931581;\n Tue, 10 May 2022 04:58:51 -0700 (PDT)",
        "From": "Stanislaw Kardach <kda@semihalf.com>",
        "To": "dev@dpdk.org",
        "Cc": "Stanislaw Kardach <kda@semihalf.com>,\n Frank Zhao <Frank.Zhao@starfivetech.com>, Sam Grove <sam.grove@sifive.com>,\n mw@semihalf.com, upstream@semihalf.com, pbhagavatula@marvell.com",
        "Subject": "[PATCH 1/1] examples/l3fwd: fix scalar LPM compilation",
        "Date": "Tue, 10 May 2022 13:58:44 +0200",
        "Message-Id": "<20220510115844.458009-1-kda@semihalf.com>",
        "X-Mailer": "git-send-email 2.30.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": "The lpm_process_event_pkt() can either process a packet using an\narchitecture specific (defined for X86/SSE, ARM/Neon and PPC64/Altivec)\npath or a scalar one. The choice is however done using an ifdef\npre-processor macro. Because of that the scalar version was apparently\nnot widely excersized/compiled.\nDue to some copy/paste errors, the scalar logic in\nlpm_process_event_pkt() retained a \"continue\" statement where a BAD_PORT\nshould be returned after refactoring of the LPM logic in the l3fwd\nexample.\n\nFixes: 99fc91d18082 (\"examples/l3fwd: add event lpm main loop\")\nCc: pbhagavatula@marvell.com\n\nSigned-off-by: Stanislaw Kardach <kda@semihalf.com>\n---\n examples/l3fwd/l3fwd_lpm.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/examples/l3fwd/l3fwd_lpm.c b/examples/l3fwd/l3fwd_lpm.c\nindex bec22c44cd..6e1defbf7f 100644\n--- a/examples/l3fwd/l3fwd_lpm.c\n+++ b/examples/l3fwd/l3fwd_lpm.c\n@@ -248,7 +248,7 @@ lpm_process_event_pkt(const struct lcore_conf *lconf, struct rte_mbuf *mbuf)\n \t\tif (is_valid_ipv4_pkt(ipv4_hdr, mbuf->pkt_len)\n \t\t\t\t< 0) {\n \t\t\tmbuf->port = BAD_PORT;\n-\t\t\tcontinue;\n+\t\t\treturn mbuf->port;\n \t\t}\n \t\t/* Update time to live and header checksum */\n \t\t--(ipv4_hdr->time_to_live);\n",
    "prefixes": [
        "1/1"
    ]
}