Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/126738/?format=api
http://patches.dpdk.org/api/patches/126738/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230506160404.7423-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": "<20230506160404.7423-10-stephen@networkplumber.org>", "list_archive_url": "https://inbox.dpdk.org/dev/20230506160404.7423-10-stephen@networkplumber.org", "date": "2023-05-06T16:03:58", "name": "[v2,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/20230506160404.7423-10-stephen@networkplumber.org/mbox/", "series": [ { "id": 27946, "url": "http://patches.dpdk.org/api/series/27946/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=27946", "date": "2023-05-06T16:03:49", "name": "rte_pktmbuf_mtod_offset usage", "version": 2, "mbox": "http://patches.dpdk.org/series/27946/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/126738/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/126738/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 56E7F42A7F;\n\tSat, 6 May 2023 18:05:20 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 37BE542D59;\n\tSat, 6 May 2023 18:04:19 +0200 (CEST)", "from mail-pf1-f169.google.com (mail-pf1-f169.google.com\n [209.85.210.169])\n by mails.dpdk.org (Postfix) with ESMTP id AAA4342D3C\n for <dev@dpdk.org>; Sat, 6 May 2023 18:04:15 +0200 (CEST)", "by mail-pf1-f169.google.com with SMTP id\n d2e1a72fcca58-6439b410679so1577585b3a.0\n for <dev@dpdk.org>; Sat, 06 May 2023 09:04:15 -0700 (PDT)", "from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218])\n by smtp.gmail.com with ESMTPSA id\n e14-20020a62ee0e000000b006436ffa3dc4sm3369890pfi.24.2023.05.06.09.04.14\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Sat, 06 May 2023 09:04:14 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1683389055;\n x=1685981055;\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=DjRUxZ+S3HnN8jLdZvI3rO4HDvVxrsWc87ZDnfZ/sxU=;\n b=FjO+g4m+7C2TugdlutIv8rRFKwRO4wAl1qr92yytw7gjWF216npuZe7bWAZXEtXlRd\n EGbeNmIEtbEi3P2Pt9Uv/BPuKAuxeQPP1lFigreOEtlokVGKq9Lo8hpi0JYRHyhA/v26\n F79+uQd9FwXjpyxRgqSnpeQsbbLybrq+t2JANGf9BmfLLOhgX2MzLzGr09kzb8uyZL+f\n j0OjtUMom97FKtcazZ41UDdqtlfU+aTpC1h/FY6tTEIILhowatjDdN83EZLH/q+sfmza\n PBl8GNETZBCsm9dK9fEAUglCIIwV/0V3oYgpRf4vM7A4TSkJb6SkmbtkyzuT1r8WnCYm\n ljqA==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20221208; t=1683389055; x=1685981055;\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=DjRUxZ+S3HnN8jLdZvI3rO4HDvVxrsWc87ZDnfZ/sxU=;\n b=C7Ta5uQlBnvbNRrXfRZGeH8HJcpyhBb/Yj6iyXmfoRdxe++T/ocBAtUtYq767H99Pu\n StNdlh4Y+XQx0cbAb8So5esb87zUW+imuKxmMePSBlmNpR9Ns4Zs97IsjaqotsFVfxMa\n 4NeF9XugWvWvBtBXzWywXtLdM/qNilJoXcVM4C11cwZnzo4F7ugP+uMcU8r8/MoEjUTL\n j+snKvx0itY3EjEyiUoEvv8NZpz2u+7mBMmB/cRibkTJU8OgoGn0c7uXsg3bkCflQGtH\n xDXqVHliY3DonsLKDbBhPxxdUesK7akrhhPafR5VkNUt+s4NcGL0Y+d+vFjO17HTj8Gi\n 0FvA==", "X-Gm-Message-State": "AC+VfDwR367HkoyTAwmTKKoAvwKTs+jAVLLJAU3TPlMDTUEKGQtuyY5g\n 4tnlKuwjwpJx1ql5zT9wksRce0ulziJ6DKtF612CNw==", "X-Google-Smtp-Source": "\n ACHHUZ6Eii60bxREz4V7V9yS9AWPCAqZCSwCunajH3ANv58boAGmcVEcX1c6PbPMASs1VcjGTTiGEg==", "X-Received": "by 2002:a05:6a21:33a8:b0:f1:c0a1:803f with SMTP id\n yy40-20020a056a2133a800b000f1c0a1803fmr6064518pzb.45.1683389054966;\n Sat, 06 May 2023 09:04:14 -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 v2 09/14] crypto/qat: use rte_pktmbuf_mtod_offset", "Date": "Sat, 6 May 2023 09:03:58 -0700", "Message-Id": "<20230506160404.7423-10-stephen@networkplumber.org>", "X-Mailer": "git-send-email 2.39.2", "In-Reply-To": "<20230506160404.7423-1-stephen@networkplumber.org>", "References": "<20230505174813.133894-1-stephen@networkplumber.org>\n <20230506160404.7423-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 524c291340da..11f468a9fdc0 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 9a4251e08b47..615e92f01803 100644\n--- a/drivers/crypto/qat/qat_sym.h\n+++ b/drivers/crypto/qat/qat_sym.h\n@@ -181,13 +181,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": [ "v2", "09/14" ] }{ "id": 126738, "url": "