get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 129359,
    "url": "http://patches.dpdk.org/api/patches/129359/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230706175938.62721-10-stephen@networkplumber.org/",
    "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": "<20230706175938.62721-10-stephen@networkplumber.org>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230706175938.62721-10-stephen@networkplumber.org",
    "date": "2023-07-06T17:59:33",
    "name": "[v3,09/14] crypto/qat: use rte_pktmbuf_mtod_offset",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "2066704b4fd21263f44187489c209400e70a4178",
    "submitter": {
        "id": 27,
        "url": "http://patches.dpdk.org/api/people/27/?format=api",
        "name": "Stephen Hemminger",
        "email": "stephen@networkplumber.org"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20230706175938.62721-10-stephen@networkplumber.org/mbox/",
    "series": [
        {
            "id": 28867,
            "url": "http://patches.dpdk.org/api/series/28867/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=28867",
            "date": "2023-07-06T17:59:24",
            "name": "Use rte_pktmbuf_mtod_offset() where possible",
            "version": 3,
            "mbox": "http://patches.dpdk.org/series/28867/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/129359/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/129359/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 2B45642DEC;\n\tThu,  6 Jul 2023 20:00:45 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 416D443023;\n\tThu,  6 Jul 2023 19:59:54 +0200 (CEST)",
            "from mail-pj1-f42.google.com (mail-pj1-f42.google.com\n [209.85.216.42]) by mails.dpdk.org (Postfix) with ESMTP id 303014301E\n for <dev@dpdk.org>; Thu,  6 Jul 2023 19:59:51 +0200 (CEST)",
            "by mail-pj1-f42.google.com with SMTP id\n 98e67ed59e1d1-262cc036fa4so582190a91.3\n for <dev@dpdk.org>; Thu, 06 Jul 2023 10:59:51 -0700 (PDT)",
            "from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218])\n by smtp.gmail.com with ESMTPSA id\n nh8-20020a17090b364800b00256bbfbabcfsm76464pjb.48.2023.07.06.10.59.48\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 06 Jul 2023 10:59:48 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1688666390;\n x=1691258390;\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=F69PS55Z8d+JCpBArBnlboybxsumWrIJT6EP0C7v0Ks=;\n b=GzdtKffSjiViqrEE88Qpl/WZ9AqMZl5gDasRPQblpARFimbwqjoTaOYcQOA3T1aeH8\n Cruz3KVaETdUqqeQ4NWkWE96QMY6jElZ/zWTooTzzRRwI8hfi1DxsAjiFXWyUv3fXNbD\n uq/Rfk4kPJ53CC+oqhHyExQi0dKOaxyCGRiuYtv/TU/71C8thyer3a9qq4HsXgPGSKOR\n KTCLTDFzozoGEaJiSyxEMtMazZzLR4456lnPPOilbCr5BaOExhXd55mQGoOyUiK2lsFC\n 1lCIaEkEutmGWInXpV2ykmMMKSeIjYF8YUGIxocD31G/zPCy3ElTYj/zDDZTih9YOHpn\n aX+w==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20221208; t=1688666390; x=1691258390;\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=F69PS55Z8d+JCpBArBnlboybxsumWrIJT6EP0C7v0Ks=;\n b=kdBE3uyno/bz8guy4PboYwMkG5HbkFh6bvgqycxUR8QE63oCA37XGDTnDthflyhJNF\n RRWhZYVoiGiUXy8LhPdeIDzfl9xH3feTrQmjTp0xKNoWtcfpGJ1GfGFSA8wd9AEsvYCU\n UabluZyEDdg+F/IaI/V1sB4DfaQdG4BtFUcd2Uas5zQFSXUPLV43Cyfl4vFo4A5+EdlB\n Sv50wNvK2hjkCk8ozc722oXrcqAm8OmWr8nwEOrb8lfPZdvj05LJcv293N4JNe0bkcgC\n IZaYAxDkrS5F5reyAxNnrs2sYfIaPYR71kNtKhmdoWNv3VAUArDvCDoBReZjk1XO82Zr\n ac7Q==",
        "X-Gm-Message-State": "ABy/qLbt/iFNpeXcf20JsJFVABzZLmbNRgFNVzMxV/aeQppo+WlZLLUq\n Htt1OP84cJq5+8qqOQ7F3/Rp42BQmCbvbkLB1wA=",
        "X-Google-Smtp-Source": "\n APBJJlFW2p8lhCtQEFN96XThTmggsumcV17UIsXKDyfs4lLslT8KAShPq0/JiPDsAP9dpjVA1Tek4Q==",
        "X-Received": "by 2002:a17:90a:7e8e:b0:264:a14:ce19 with SMTP id\n j14-20020a17090a7e8e00b002640a14ce19mr1883821pjl.20.1688666389955;\n Thu, 06 Jul 2023 10:59:49 -0700 (PDT)",
        "From": "Stephen Hemminger <stephen@networkplumber.org>",
        "To": "dev@dpdk.org",
        "Cc": "Stephen Hemminger <stephen@networkplumber.org>, Kai Ji <kai.ji@intel.com>",
        "Subject": "[PATCH v3 09/14] crypto/qat: use rte_pktmbuf_mtod_offset",
        "Date": "Thu,  6 Jul 2023 10:59:33 -0700",
        "Message-Id": "<20230706175938.62721-10-stephen@networkplumber.org>",
        "X-Mailer": "git-send-email 2.39.2",
        "In-Reply-To": "<20230706175938.62721-1-stephen@networkplumber.org>",
        "References": "<20230505174813.133894-1-stephen@networkplumber.org>\n <20230706175938.62721-1-stephen@networkplumber.org>",
        "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": "Auto generated with cocci/mtod-offset.cocci\n\nSigned-off-by: Stephen Hemminger <stephen@networkplumber.org>\n---\n drivers/crypto/qat/dev/qat_crypto_pmd_gens.h | 9 +++++----\n drivers/crypto/qat/qat_sym.h                 | 9 +++++----\n 2 files changed, 10 insertions(+), 8 deletions(-)",
    "diff": "diff --git a/drivers/crypto/qat/dev/qat_crypto_pmd_gens.h b/drivers/crypto/qat/dev/qat_crypto_pmd_gens.h\nindex 1bafeb4a53e8..3e0dfea94c87 100644\n--- a/drivers/crypto/qat/dev/qat_crypto_pmd_gens.h\n+++ b/drivers/crypto/qat/dev/qat_crypto_pmd_gens.h\n@@ -56,14 +56,15 @@ qat_bpicipher_preprocess(struct qat_sym_session *ctx,\n \t\tuint8_t *last_block, *dst, *iv;\n \t\tuint32_t last_block_offset = sym_op->cipher.data.offset +\n \t\t\t\tsym_op->cipher.data.length - last_block_len;\n-\t\tlast_block = (uint8_t *) rte_pktmbuf_mtod_offset(sym_op->m_src,\n-\t\t\t\tuint8_t *, last_block_offset);\n+\t\tlast_block = rte_pktmbuf_mtod_offset(sym_op->m_src, uint8_t *,\n+\t\t\t\t\t\t     last_block_offset);\n \n \t\tif (unlikely((sym_op->m_dst != NULL)\n \t\t\t\t&& (sym_op->m_dst != sym_op->m_src)))\n \t\t\t/* out-of-place operation (OOP) */\n-\t\t\tdst = (uint8_t *) rte_pktmbuf_mtod_offset(sym_op->m_dst,\n-\t\t\t\t\t\tuint8_t *, last_block_offset);\n+\t\t\tdst = rte_pktmbuf_mtod_offset(sym_op->m_dst,\n+\t\t\t\t\t\t      uint8_t *,\n+\t\t\t\t\t\t      last_block_offset);\n \t\telse\n \t\t\tdst = last_block;\n \ndiff --git a/drivers/crypto/qat/qat_sym.h b/drivers/crypto/qat/qat_sym.h\nindex 193281cd9135..d7ceb13b29cd 100644\n--- a/drivers/crypto/qat/qat_sym.h\n+++ b/drivers/crypto/qat/qat_sym.h\n@@ -192,13 +192,14 @@ qat_bpicipher_postprocess(struct qat_sym_session *ctx,\n \n \t\tlast_block_offset = sym_op->cipher.data.offset +\n \t\t\t\tsym_op->cipher.data.length - last_block_len;\n-\t\tlast_block = (uint8_t *) rte_pktmbuf_mtod_offset(sym_op->m_src,\n-\t\t\t\tuint8_t *, last_block_offset);\n+\t\tlast_block = rte_pktmbuf_mtod_offset(sym_op->m_src, uint8_t *,\n+\t\t\t\t\t\t     last_block_offset);\n \n \t\tif (unlikely(sym_op->m_dst != NULL))\n \t\t\t/* out-of-place operation (OOP) */\n-\t\t\tdst = (uint8_t *) rte_pktmbuf_mtod_offset(sym_op->m_dst,\n-\t\t\t\t\t\tuint8_t *, last_block_offset);\n+\t\t\tdst = rte_pktmbuf_mtod_offset(sym_op->m_dst,\n+\t\t\t\t\t\t      uint8_t *,\n+\t\t\t\t\t\t      last_block_offset);\n \t\telse\n \t\t\tdst = last_block;\n \n",
    "prefixes": [
        "v3",
        "09/14"
    ]
}