Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/137582/?format=api
http://patches.dpdk.org/api/patches/137582/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20240229225936.483472-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": "<20240229225936.483472-10-stephen@networkplumber.org>", "list_archive_url": "https://inbox.dpdk.org/dev/20240229225936.483472-10-stephen@networkplumber.org", "date": "2024-02-29T22:57:56", "name": "[09/71] node: replace use of fixed size rte_memcpy", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "4a9214f2f93897f6726350d020cd5c00cb2eb684", "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/20240229225936.483472-10-stephen@networkplumber.org/mbox/", "series": [ { "id": 31314, "url": "http://patches.dpdk.org/api/series/31314/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=31314", "date": "2024-02-29T22:57:48", "name": "replace use of fixed size rte_memcpy", "version": 1, "mbox": "http://patches.dpdk.org/series/31314/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/137582/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/137582/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 CD68343BAE;\n\tFri, 1 Mar 2024 00:00:59 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 19B7E40294;\n\tFri, 1 Mar 2024 00:00:31 +0100 (CET)", "from mail-oi1-f171.google.com (mail-oi1-f171.google.com\n [209.85.167.171])\n by mails.dpdk.org (Postfix) with ESMTP id DA5634325B\n for <dev@dpdk.org>; Fri, 1 Mar 2024 00:00:05 +0100 (CET)", "by mail-oi1-f171.google.com with SMTP id\n 5614622812f47-3c1a1e1e539so1479738b6e.1\n for <dev@dpdk.org>; Thu, 29 Feb 2024 15:00:05 -0800 (PST)", "from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141])\n by smtp.gmail.com with ESMTPSA id\n l22-20020a17090b079600b0029a8e5355fcsm1965578pjz.53.2024.02.29.15.00.04\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 29 Feb 2024 15:00:04 -0800 (PST)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709247605;\n x=1709852405; 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=IWKz5vDuhvQw5GeEv6mkSttdCRlXm2J+mfGzk12cTK4=;\n b=cnegadCumrQoFZL+m3mDcxZYiEQNZldjiOd8Zs+yqN3qiinwrpBmwQQ/q8kQxMZ+bb\n AlTrapab5z1ki2ROyXsR8iLOg6xKZEuz5sO3fyWl+2y5Pnnjj2H9YnuVQmSA/RNoH7Hp\n Yx2bXVKjilH9WDS8l39VJ7LQUULex05WqekXJBJcW0+HOiwfYgypCYRgiLNzslaZkQmx\n KN/uU/4Ch0P7XZ2pd/SGeaTIICeW9dKzVyz0DUjhYNoudlHp0eV+2ARGoQkY5b74qpu7\n Qzkg0TJVYko81/L3rdb7JFxnpv9dNb0D4tz4DtrT4brXAF5MFwFwaDpDXlY8csVgj0g0\n 0ozw==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1709247605; x=1709852405;\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=IWKz5vDuhvQw5GeEv6mkSttdCRlXm2J+mfGzk12cTK4=;\n b=jx4+2XOuPjUYc9eGijQxxJ8NKf9umZqVx4XJCM6FBgkd4OqfURQpHfA593GgmWvX5H\n /vFvurc/rclkIxaAwTWfxpOfiYF4DjHvCAhX5isQpgUV37Sbv0IDSA/lOtPdmJ8DvSfT\n kDKh5C6MEiCNI6JkXP7MjrOlGwyAWa85xuPFhsscDmFVLA+elmwJaZFuU3WdALKEeycK\n bpQ3pdJ2zHXTRvWOb1Gg2BfXBCznUsUbUJaC2y+nRIbJ+cDhzFENwOt0rxqZBQJ3yBPL\n cccB54uU0a3AjbmQujT62nm9GwKB1Rs+0EwRSgarm6+Qav35TEev4Yvx+3RDgnchA7eC\n eW5A==", "X-Gm-Message-State": "AOJu0YwTwgir51XOMbZX9oQToQ0laomH/EDtz40YmcUAxKnQR7nlUnWo\n S4gJ4UOtEOhwW+jKxMIBcgKX5A262O5wtRKmQM1JPCiFBIGAptqrX18uYf9PjkB8VhDtd+0T75Y\n k", "X-Google-Smtp-Source": "\n AGHT+IFcb2HXQCuj5yCHUGoiTNRJEIuOFBKDhwnebpawA9te2Rr5d28nwRuiJOgfrjDIv0Q3a9qOww==", "X-Received": "by 2002:a05:6808:124b:b0:3c1:7de9:492d with SMTP id\n o11-20020a056808124b00b003c17de9492dmr35691oiv.21.1709247605164;\n Thu, 29 Feb 2024 15:00:05 -0800 (PST)", "From": "Stephen Hemminger <stephen@networkplumber.org>", "To": "dev@dpdk.org", "Cc": "Stephen Hemminger <stephen@networkplumber.org>,\n Nithin Dabilpuram <ndabilpuram@marvell.com>,\n Pavan Nikhilesh <pbhagavatula@marvell.com>", "Subject": "[PATCH 09/71] node: replace use of fixed size rte_memcpy", "Date": "Thu, 29 Feb 2024 14:57:56 -0800", "Message-ID": "<20240229225936.483472-10-stephen@networkplumber.org>", "X-Mailer": "git-send-email 2.43.0", "In-Reply-To": "<20240229225936.483472-1-stephen@networkplumber.org>", "References": "<20240229225936.483472-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": "Automatically generated by devtools/cocci/rte_memcpy.cocci\n\nSigned-off-by: Stephen Hemminger <stephen@networkplumber.org>\n---\n lib/node/ip6_lookup.c | 8 ++++----\n 1 file changed, 4 insertions(+), 4 deletions(-)", "diff": "diff --git a/lib/node/ip6_lookup.c b/lib/node/ip6_lookup.c\nindex 309964f60fd6..b8e567ccd92d 100644\n--- a/lib/node/ip6_lookup.c\n+++ b/lib/node/ip6_lookup.c\n@@ -112,28 +112,28 @@ ip6_lookup_node_process_scalar(struct rte_graph *graph, struct rte_node *node,\n \t\t\t\tsizeof(struct rte_ether_hdr));\n \t\t/* Extract hop_limits as ipv6 hdr is in cache */\n \t\tnode_mbuf_priv1(mbuf0, dyn)->ttl = ipv6_hdr->hop_limits;\n-\t\trte_memcpy(ip_batch[0], ipv6_hdr->dst_addr, 16);\n+\t\tmemcpy(ip_batch[0], ipv6_hdr->dst_addr, 16);\n \n \t\t/* Extract DIP of mbuf1 */\n \t\tipv6_hdr = rte_pktmbuf_mtod_offset(mbuf1, struct rte_ipv6_hdr *,\n \t\t\t\tsizeof(struct rte_ether_hdr));\n \t\t/* Extract hop_limits as ipv6 hdr is in cache */\n \t\tnode_mbuf_priv1(mbuf1, dyn)->ttl = ipv6_hdr->hop_limits;\n-\t\trte_memcpy(ip_batch[1], ipv6_hdr->dst_addr, 16);\n+\t\tmemcpy(ip_batch[1], ipv6_hdr->dst_addr, 16);\n \n \t\t/* Extract DIP of mbuf2 */\n \t\tipv6_hdr = rte_pktmbuf_mtod_offset(mbuf2, struct rte_ipv6_hdr *,\n \t\t\t\tsizeof(struct rte_ether_hdr));\n \t\t/* Extract hop_limits as ipv6 hdr is in cache */\n \t\tnode_mbuf_priv1(mbuf2, dyn)->ttl = ipv6_hdr->hop_limits;\n-\t\trte_memcpy(ip_batch[2], ipv6_hdr->dst_addr, 16);\n+\t\tmemcpy(ip_batch[2], ipv6_hdr->dst_addr, 16);\n \n \t\t/* Extract DIP of mbuf3 */\n \t\tipv6_hdr = rte_pktmbuf_mtod_offset(mbuf3, struct rte_ipv6_hdr *,\n \t\t\t\tsizeof(struct rte_ether_hdr));\n \t\t/* Extract hop_limits as ipv6 hdr is in cache */\n \t\tnode_mbuf_priv1(mbuf3, dyn)->ttl = ipv6_hdr->hop_limits;\n-\t\trte_memcpy(ip_batch[3], ipv6_hdr->dst_addr, 16);\n+\t\tmemcpy(ip_batch[3], ipv6_hdr->dst_addr, 16);\n \n \t\trte_lpm6_lookup_bulk_func(lpm6, ip_batch, next_hop, 4);\n \n", "prefixes": [ "09/71" ] }{ "id": 137582, "url": "