get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 139164,
    "url": "http://patches.dpdk.org/api/patches/139164/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20240405165518.367503-31-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": "<20240405165518.367503-31-stephen@networkplumber.org>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20240405165518.367503-31-stephen@networkplumber.org",
    "date": "2024-04-05T16:53:41",
    "name": "[v4,30/30] examples: replace use of fixed size rte_memcpy",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "018eac284761da6a22b7897ac0e76291f4acd13c",
    "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/20240405165518.367503-31-stephen@networkplumber.org/mbox/",
    "series": [
        {
            "id": 31690,
            "url": "http://patches.dpdk.org/api/series/31690/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=31690",
            "date": "2024-04-05T16:53:11",
            "name": "replace use of rte_memcpy with fixed sizes",
            "version": 4,
            "mbox": "http://patches.dpdk.org/series/31690/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/139164/comments/",
    "check": "warning",
    "checks": "http://patches.dpdk.org/api/patches/139164/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 6A6E843E0C;\n\tFri,  5 Apr 2024 19:00:46 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 5765142686;\n\tFri,  5 Apr 2024 18:56:20 +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 40B064113D\n for <dev@dpdk.org>; Fri,  5 Apr 2024 18:56:13 +0200 (CEST)",
            "by mail-pf1-f169.google.com with SMTP id\n d2e1a72fcca58-6ed01c63657so666043b3a.2\n for <dev@dpdk.org>; Fri, 05 Apr 2024 09:56:13 -0700 (PDT)",
            "from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226])\n by smtp.gmail.com with ESMTPSA id\n c2-20020aa781c2000000b006e6c0f8ce1bsm1728555pfn.47.2024.04.05.09.56.11\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Fri, 05 Apr 2024 09:56:11 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1712336172;\n x=1712940972; 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=S2HCHoHi91TGwKUEbtCqGzmh8YXFmkKZOAuLpIp8htQ=;\n b=kMhxZPu4SuBAjbgDc+VM+v6I7fp+EFhKz/jjhyfo2rEloiJ5VRytp04xF7JRPPeB8S\n vLIc+AfhuUVFiT/u1aK+sodJY5BCl4xI5bBJmtfxT40zdZ3rejEsFXz5IIxGgdqCjBON\n bVHtTAJ5iG8aHawQ+6cvWUNNkcbr8+t+l9gSWoFOa/8jhlcHLj87SazLI+ssDoVxShHL\n t6YgUJtQMpBeFGpsbRVeIb31D5fn9Y2fxvTZbtQwnb0QJMi/6DvNG/emVmkS7pI+Ch7q\n Xp4v3ruDsazvuNpH/rc5QJoLFrESflRzxM8S7BR/oMZFDekEDIgyEK9yl21k/0JWTfGz\n VVEQ==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1712336172; x=1712940972;\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=S2HCHoHi91TGwKUEbtCqGzmh8YXFmkKZOAuLpIp8htQ=;\n b=MvAwTCqCcWBptZNitB9fFBrWhzDt06wLEJlO29icXySuMbGsc7HS6Z+hSB/0YgwjEq\n J5MBN5pcBQiO0a/YcJSrDBRhlpVdAso+gk0koVDFgocVc6tOed70d/aktN/AyPCZI3e4\n LWGqOYZeRRluy3F3NGlHiaPnOI7XpeTcfoQmxjQuaD21XMjJ3O+xJxmocKNJ8jyfZlDR\n lHoYgNDv728lv2NkJ3IvqTPLuKAk/ZbFkzs4StS4H5gz0gMyIdTRovUeOA5aBAvH88mp\n aeGpGm5y/19CJ1NyEUKBtBSOg5IsKVEDCUPJsT3cU2eJE14Z+DPeTeyN9VH9asdh1kK2\n 5t9w==",
        "X-Gm-Message-State": "AOJu0Yzt4GvV9bxBgXanmtWh4ATU6ROuRPOC2DgG2Y6omBH2kIbySvpO\n /aoSAPySfN+ZIzaT0OjOqvY2wxQ32l4KRnAONwMvmkpCorQo6XixcJs4RcVnQ8oZ41GtvkfJcab\n NnaWUEw==",
        "X-Google-Smtp-Source": "\n AGHT+IFeNH4uSSgzCg3CvJCrLeM7l08RvWVM4SF2BlTaYD5JqDRRN320a2z3UZ1SAf6TomaPuYznDA==",
        "X-Received": "by 2002:a05:6a00:1250:b0:6ec:fdfe:9bea with SMTP id\n u16-20020a056a00125000b006ecfdfe9beamr1558420pfi.26.1712336172345;\n Fri, 05 Apr 2024 09:56:12 -0700 (PDT)",
        "From": "Stephen Hemminger <stephen@networkplumber.org>",
        "To": "dev@dpdk.org",
        "Cc": "Stephen Hemminger <stephen@networkplumber.org>,\n Nicolas Chautru <nicolas.chautru@intel.com>, Chas Williams <chas3@att.com>,\n \"Min Hu (Connor)\" <humin29@huawei.com>,\n Konstantin Ananyev <konstantin.v.ananyev@yandex.ru>,\n Tomasz Kantecki <tomasz.kantecki@intel.com>,\n Akhil Goyal <gakhil@marvell.com>,\n Bruce Richardson <bruce.richardson@intel.com>,\n Anatoly Burakov <anatoly.burakov@intel.com>,\n David Hunt <david.hunt@intel.com>,\n Sivaprasad Tummala <sivaprasad.tummala@amd.com>,\n Kirill Rybalchenko <kirill.rybalchenko@intel.com>,\n Cristian Dumitrescu <cristian.dumitrescu@intel.com>,\n Byron Marohn <byron.marohn@intel.com>,\n Yipeng Wang <yipeng1.wang@intel.com>,\n Maxime Coquelin <maxime.coquelin@redhat.com>,\n Chenbo Xia <chenbox@nvidia.com>",
        "Subject": "[PATCH v4 30/30] examples: replace use of fixed size rte_memcpy",
        "Date": "Fri,  5 Apr 2024 09:53:41 -0700",
        "Message-ID": "<20240405165518.367503-31-stephen@networkplumber.org>",
        "X-Mailer": "git-send-email 2.43.0",
        "In-Reply-To": "<20240405165518.367503-1-stephen@networkplumber.org>",
        "References": "<20240403163432.437275-1-stephen@networkplumber.org>\n <20240405165518.367503-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\nUse structure assignment where possible.\n\nSigned-off-by: Stephen Hemminger <stephen@networkplumber.org>\n---\n examples/bbdev_app/main.c                         |  2 +-\n examples/bond/main.c                              |  1 -\n examples/ip_fragmentation/main.c                  |  1 -\n examples/ip_reassembly/main.c                     |  1 -\n examples/ipv4_multicast/main.c                    |  1 -\n examples/l2fwd-cat/cat.c                          |  4 +---\n examples/l2fwd-jobstats/main.c                    |  1 -\n examples/l2fwd-keepalive/main.c                   |  1 -\n examples/l2fwd-macsec/main.c                      |  1 -\n examples/l2fwd/main.c                             |  1 -\n examples/l3fwd-power/main.c                       |  1 -\n examples/l3fwd/main.c                             |  1 -\n examples/link_status_interrupt/main.c             |  1 -\n .../client_server_mp/mp_server/init.c             |  1 -\n .../client_server_mp/mp_server/main.c             |  1 -\n examples/multi_process/symmetric_mp/main.c        |  1 -\n examples/ptpclient/ptpclient.c                    | 11 +++++------\n examples/qos_sched/app_thread.c                   |  1 -\n examples/qos_sched/main.c                         |  1 -\n examples/server_node_efd/efd_server/init.c        |  1 -\n examples/server_node_efd/efd_server/main.c        |  1 -\n examples/vhost/main.c                             |  6 +++---\n examples/vmdq/main.c                              |  7 +++----\n examples/vmdq_dcb/main.c                          | 15 +++++----------\n 24 files changed, 18 insertions(+), 45 deletions(-)",
    "diff": "diff --git a/examples/bbdev_app/main.c b/examples/bbdev_app/main.c\nindex 16599ae9ce..52c8eabba7 100644\n--- a/examples/bbdev_app/main.c\n+++ b/examples/bbdev_app/main.c\n@@ -359,7 +359,7 @@ add_ether_hdr(struct rte_mbuf *pkt_src, struct rte_mbuf *pkt_dst)\n \teth_to = rte_pktmbuf_mtod(pkt_dst, struct rte_ether_hdr *);\n \n \t/* copy header */\n-\trte_memcpy(eth_to, eth_from, sizeof(struct rte_ether_hdr));\n+\tmemcpy(eth_to, eth_from, sizeof(struct rte_ether_hdr));\n }\n \n static inline void\ndiff --git a/examples/bond/main.c b/examples/bond/main.c\nindex 8528abf675..a10fc8c92d 100644\n--- a/examples/bond/main.c\n+++ b/examples/bond/main.c\n@@ -21,7 +21,6 @@\n #include <rte_common.h>\n #include <rte_log.h>\n #include <rte_memory.h>\n-#include <rte_memcpy.h>\n #include <rte_eal.h>\n #include <rte_launch.h>\n #include <rte_cycles.h>\ndiff --git a/examples/ip_fragmentation/main.c b/examples/ip_fragmentation/main.c\nindex 744a1aa9b4..d800d314a1 100644\n--- a/examples/ip_fragmentation/main.c\n+++ b/examples/ip_fragmentation/main.c\n@@ -18,7 +18,6 @@\n #include <rte_byteorder.h>\n #include <rte_log.h>\n #include <rte_memory.h>\n-#include <rte_memcpy.h>\n #include <rte_eal.h>\n #include <rte_launch.h>\n #include <rte_cycles.h>\ndiff --git a/examples/ip_reassembly/main.c b/examples/ip_reassembly/main.c\nindex bd0b1d31de..b23c2b0942 100644\n--- a/examples/ip_reassembly/main.c\n+++ b/examples/ip_reassembly/main.c\n@@ -19,7 +19,6 @@\n #include <rte_byteorder.h>\n #include <rte_log.h>\n #include <rte_memory.h>\n-#include <rte_memcpy.h>\n #include <rte_eal.h>\n #include <rte_launch.h>\n #include <rte_cycles.h>\ndiff --git a/examples/ipv4_multicast/main.c b/examples/ipv4_multicast/main.c\nindex 6d0a8501ef..8f135a5a96 100644\n--- a/examples/ipv4_multicast/main.c\n+++ b/examples/ipv4_multicast/main.c\n@@ -17,7 +17,6 @@\n #include <rte_byteorder.h>\n #include <rte_log.h>\n #include <rte_memory.h>\n-#include <rte_memcpy.h>\n #include <rte_eal.h>\n #include <rte_launch.h>\n #include <rte_cycles.h>\ndiff --git a/examples/l2fwd-cat/cat.c b/examples/l2fwd-cat/cat.c\nindex 00e4cde48b..d1689fca29 100644\n--- a/examples/l2fwd-cat/cat.c\n+++ b/examples/l2fwd-cat/cat.c\n@@ -12,7 +12,6 @@\n #include <stdio.h>\n \n #include <rte_common.h>\n-#include <rte_memcpy.h>\n \n #include <pqos.h>\n \n@@ -314,8 +313,7 @@ parse_l3ca(const char *l3ca)\n \t\tif (cmask != 0 && is_contiguous(cmask) == 0)\n \t\t\tgoto err;\n \n-\t\trte_memcpy(&m_config[idx].cpumask,\n-\t\t\t&cpuset, sizeof(rte_cpuset_t));\n+\t\tmemcpy(&m_config[idx].cpumask, &cpuset, sizeof(rte_cpuset_t));\n \n \t\tif (cmask != 0) {\n \t\t\tm_config[idx].cdp = 1;\ndiff --git a/examples/l2fwd-jobstats/main.c b/examples/l2fwd-jobstats/main.c\nindex 2653db4735..e3e02b751e 100644\n--- a/examples/l2fwd-jobstats/main.c\n+++ b/examples/l2fwd-jobstats/main.c\n@@ -13,7 +13,6 @@\n #include <rte_log.h>\n #include <rte_malloc.h>\n #include <rte_memory.h>\n-#include <rte_memcpy.h>\n #include <rte_eal.h>\n #include <rte_launch.h>\n #include <rte_cycles.h>\ndiff --git a/examples/l2fwd-keepalive/main.c b/examples/l2fwd-keepalive/main.c\nindex 1463cef0fc..52bcc91790 100644\n--- a/examples/l2fwd-keepalive/main.c\n+++ b/examples/l2fwd-keepalive/main.c\n@@ -21,7 +21,6 @@\n #include <rte_log.h>\n #include <rte_malloc.h>\n #include <rte_memory.h>\n-#include <rte_memcpy.h>\n #include <rte_eal.h>\n #include <rte_launch.h>\n #include <rte_cycles.h>\ndiff --git a/examples/l2fwd-macsec/main.c b/examples/l2fwd-macsec/main.c\nindex a5d7a84828..529489e10d 100644\n--- a/examples/l2fwd-macsec/main.c\n+++ b/examples/l2fwd-macsec/main.c\n@@ -21,7 +21,6 @@\n #include <rte_log.h>\n #include <rte_malloc.h>\n #include <rte_memory.h>\n-#include <rte_memcpy.h>\n #include <rte_eal.h>\n #include <rte_launch.h>\n #include <rte_cycles.h>\ndiff --git a/examples/l2fwd/main.c b/examples/l2fwd/main.c\nindex 96fb33196f..d928c957c3 100644\n--- a/examples/l2fwd/main.c\n+++ b/examples/l2fwd/main.c\n@@ -21,7 +21,6 @@\n #include <rte_log.h>\n #include <rte_malloc.h>\n #include <rte_memory.h>\n-#include <rte_memcpy.h>\n #include <rte_eal.h>\n #include <rte_launch.h>\n #include <rte_cycles.h>\ndiff --git a/examples/l3fwd-power/main.c b/examples/l3fwd-power/main.c\nindex f4adcf41b5..9db9de806e 100644\n--- a/examples/l3fwd-power/main.c\n+++ b/examples/l3fwd-power/main.c\n@@ -21,7 +21,6 @@\n #include <rte_log.h>\n #include <rte_malloc.h>\n #include <rte_memory.h>\n-#include <rte_memcpy.h>\n #include <rte_eal.h>\n #include <rte_launch.h>\n #include <rte_cycles.h>\ndiff --git a/examples/l3fwd/main.c b/examples/l3fwd/main.c\nindex 8d32ae1dd5..d77aa8c62c 100644\n--- a/examples/l3fwd/main.c\n+++ b/examples/l3fwd/main.c\n@@ -21,7 +21,6 @@\n #include <rte_log.h>\n #include <rte_malloc.h>\n #include <rte_memory.h>\n-#include <rte_memcpy.h>\n #include <rte_eal.h>\n #include <rte_launch.h>\n #include <rte_cycles.h>\ndiff --git a/examples/link_status_interrupt/main.c b/examples/link_status_interrupt/main.c\nindex a8423d5d2a..d726d5c3b5 100644\n--- a/examples/link_status_interrupt/main.c\n+++ b/examples/link_status_interrupt/main.c\n@@ -19,7 +19,6 @@\n #include <rte_log.h>\n #include <rte_malloc.h>\n #include <rte_memory.h>\n-#include <rte_memcpy.h>\n #include <rte_eal.h>\n #include <rte_launch.h>\n #include <rte_cycles.h>\ndiff --git a/examples/multi_process/client_server_mp/mp_server/init.c b/examples/multi_process/client_server_mp/mp_server/init.c\nindex 65713dbea8..f3b9b49380 100644\n--- a/examples/multi_process/client_server_mp/mp_server/init.c\n+++ b/examples/multi_process/client_server_mp/mp_server/init.c\n@@ -24,7 +24,6 @@\n #include <rte_ring.h>\n #include <rte_log.h>\n #include <rte_mempool.h>\n-#include <rte_memcpy.h>\n #include <rte_mbuf.h>\n #include <rte_interrupts.h>\n #include <rte_ether.h>\ndiff --git a/examples/multi_process/client_server_mp/mp_server/main.c b/examples/multi_process/client_server_mp/mp_server/main.c\nindex f54bb8b75a..df1bac37d0 100644\n--- a/examples/multi_process/client_server_mp/mp_server/main.c\n+++ b/examples/multi_process/client_server_mp/mp_server/main.c\n@@ -24,7 +24,6 @@\n #include <rte_log.h>\n #include <rte_debug.h>\n #include <rte_mempool.h>\n-#include <rte_memcpy.h>\n #include <rte_mbuf.h>\n #include <rte_ether.h>\n #include <rte_interrupts.h>\ndiff --git a/examples/multi_process/symmetric_mp/main.c b/examples/multi_process/symmetric_mp/main.c\nindex 1ff85875df..ebf546db84 100644\n--- a/examples/multi_process/symmetric_mp/main.c\n+++ b/examples/multi_process/symmetric_mp/main.c\n@@ -37,7 +37,6 @@\n #include <rte_ether.h>\n #include <rte_ethdev.h>\n #include <rte_mempool.h>\n-#include <rte_memcpy.h>\n #include <rte_mbuf.h>\n #include <rte_string_fns.h>\n #include <rte_cycles.h>\ndiff --git a/examples/ptpclient/ptpclient.c b/examples/ptpclient/ptpclient.c\nindex afb61bba51..7edf235bfb 100644\n--- a/examples/ptpclient/ptpclient.c\n+++ b/examples/ptpclient/ptpclient.c\n@@ -362,9 +362,9 @@ parse_sync(struct ptpv2_data_slave_ordinary *ptp_data, uint16_t rx_tstamp_idx)\n \tptp_data->seqID_SYNC = rte_be_to_cpu_16(ptp_hdr->seq_id);\n \n \tif (ptp_data->ptpset == 0) {\n-\t\trte_memcpy(&ptp_data->master_clock_id,\n-\t\t\t\t&ptp_hdr->source_port_id.clock_id,\n-\t\t\t\tsizeof(struct clock_id));\n+\t\tmemcpy(&ptp_data->master_clock_id,\n+\t\t       &ptp_hdr->source_port_id.clock_id,\n+\t\t       sizeof(struct clock_id));\n \t\tptp_data->ptpset = 1;\n \t}\n \n@@ -469,9 +469,8 @@ parse_fup(struct ptpv2_data_slave_ordinary *ptp_data)\n \t\tclient_clkid->id[6] = eth_hdr->src_addr.addr_bytes[4];\n \t\tclient_clkid->id[7] = eth_hdr->src_addr.addr_bytes[5];\n \n-\t\trte_memcpy(&ptp_data->client_clock_id,\n-\t\t\t   client_clkid,\n-\t\t\t   sizeof(struct clock_id));\n+\t\tmemcpy(&ptp_data->client_clock_id, client_clkid,\n+\t\t       sizeof(struct clock_id));\n \n \t\t/* Enable flag for hardware timestamping. */\n \t\tcreated_pkt->ol_flags |= RTE_MBUF_F_TX_IEEE1588_TMST;\ndiff --git a/examples/qos_sched/app_thread.c b/examples/qos_sched/app_thread.c\nindex 059c470afb..3b8d9d50e8 100644\n--- a/examples/qos_sched/app_thread.c\n+++ b/examples/qos_sched/app_thread.c\n@@ -9,7 +9,6 @@\n #include <rte_malloc.h>\n #include <rte_cycles.h>\n #include <rte_ethdev.h>\n-#include <rte_memcpy.h>\n #include <rte_byteorder.h>\n #include <rte_branch_prediction.h>\n #include <rte_sched.h>\ndiff --git a/examples/qos_sched/main.c b/examples/qos_sched/main.c\nindex b3c2c9ef23..e756ce0da2 100644\n--- a/examples/qos_sched/main.c\n+++ b/examples/qos_sched/main.c\n@@ -10,7 +10,6 @@\n #include <rte_malloc.h>\n #include <rte_cycles.h>\n #include <rte_ethdev.h>\n-#include <rte_memcpy.h>\n #include <rte_byteorder.h>\n #include <rte_branch_prediction.h>\n \ndiff --git a/examples/server_node_efd/efd_server/init.c b/examples/server_node_efd/efd_server/init.c\nindex 9c89f6b60d..9a20831a0d 100644\n--- a/examples/server_node_efd/efd_server/init.c\n+++ b/examples/server_node_efd/efd_server/init.c\n@@ -24,7 +24,6 @@\n #include <rte_ring.h>\n #include <rte_log.h>\n #include <rte_mempool.h>\n-#include <rte_memcpy.h>\n #include <rte_mbuf.h>\n #include <rte_interrupts.h>\n #include <rte_ether.h>\ndiff --git a/examples/server_node_efd/efd_server/main.c b/examples/server_node_efd/efd_server/main.c\nindex fd72882e3a..0cd17a9ca3 100644\n--- a/examples/server_node_efd/efd_server/main.c\n+++ b/examples/server_node_efd/efd_server/main.c\n@@ -26,7 +26,6 @@\n #include <rte_log.h>\n #include <rte_debug.h>\n #include <rte_mempool.h>\n-#include <rte_memcpy.h>\n #include <rte_mbuf.h>\n #include <rte_ether.h>\n #include <rte_interrupts.h>\ndiff --git a/examples/vhost/main.c b/examples/vhost/main.c\nindex 3fc1b151d1..41df424565 100644\n--- a/examples/vhost/main.c\n+++ b/examples/vhost/main.c\n@@ -405,9 +405,9 @@ get_eth_conf(struct rte_eth_conf *eth_conf, uint32_t num_devices)\n \t\tconf.pool_map[i].pools = (1UL << i);\n \t}\n \n-\t(void)(rte_memcpy(eth_conf, &vmdq_conf_default, sizeof(*eth_conf)));\n-\t(void)(rte_memcpy(&eth_conf->rx_adv_conf.vmdq_rx_conf, &conf,\n-\t\t   sizeof(eth_conf->rx_adv_conf.vmdq_rx_conf)));\n+\tmemcpy(eth_conf, &vmdq_conf_default, sizeof(*eth_conf));\n+\tmemcpy(&eth_conf->rx_adv_conf.vmdq_rx_conf, &conf,\n+\t       sizeof(eth_conf->rx_adv_conf.vmdq_rx_conf));\n \treturn 0;\n }\n \ndiff --git a/examples/vmdq/main.c b/examples/vmdq/main.c\nindex 4a3ce6884c..12ef5bffc2 100644\n--- a/examples/vmdq/main.c\n+++ b/examples/vmdq/main.c\n@@ -17,7 +17,6 @@\n #include <rte_common.h>\n #include <rte_log.h>\n #include <rte_memory.h>\n-#include <rte_memcpy.h>\n #include <rte_eal.h>\n #include <rte_launch.h>\n #include <rte_cycles.h>\n@@ -151,9 +150,9 @@ get_eth_conf(struct rte_eth_conf *eth_conf, uint32_t num_pools)\n \t\tconf.pool_map[i].pools = (1UL << (i % num_pools));\n \t}\n \n-\t(void)(rte_memcpy(eth_conf, &vmdq_conf_default, sizeof(*eth_conf)));\n-\t(void)(rte_memcpy(&eth_conf->rx_adv_conf.vmdq_rx_conf, &conf,\n-\t\t   sizeof(eth_conf->rx_adv_conf.vmdq_rx_conf)));\n+\t*eth_conf = vmdq_conf_default;\n+\teth_conf->rx_adv_conf.vmdq_rx_conf = conf;\n+\n \tif (rss_enable) {\n \t\teth_conf->rxmode.mq_mode = RTE_ETH_MQ_RX_VMDQ_RSS;\n \t\teth_conf->rx_adv_conf.rss_conf.rss_hf = RTE_ETH_RSS_IP |\ndiff --git a/examples/vmdq_dcb/main.c b/examples/vmdq_dcb/main.c\nindex 4ccc2fe4b0..f93eca5936 100644\n--- a/examples/vmdq_dcb/main.c\n+++ b/examples/vmdq_dcb/main.c\n@@ -17,7 +17,6 @@\n #include <rte_common.h>\n #include <rte_log.h>\n #include <rte_memory.h>\n-#include <rte_memcpy.h>\n #include <rte_eal.h>\n #include <rte_launch.h>\n #include <rte_cycles.h>\n@@ -161,15 +160,11 @@ get_eth_conf(struct rte_eth_conf *eth_conf)\n \t\ttx_conf.dcb_tc[i] = i % num_tcs;\n \t}\n \tdcb_conf.nb_tcs = (enum rte_eth_nb_tcs)num_tcs;\n-\t(void)(rte_memcpy(eth_conf, &vmdq_dcb_conf_default, sizeof(*eth_conf)));\n-\t(void)(rte_memcpy(&eth_conf->rx_adv_conf.vmdq_dcb_conf, &conf,\n-\t\t\t  sizeof(conf)));\n-\t(void)(rte_memcpy(&eth_conf->rx_adv_conf.dcb_rx_conf, &dcb_conf,\n-\t\t\t  sizeof(dcb_conf)));\n-\t(void)(rte_memcpy(&eth_conf->rx_adv_conf.vmdq_rx_conf, &vmdq_conf,\n-\t\t\t  sizeof(vmdq_conf)));\n-\t(void)(rte_memcpy(&eth_conf->tx_adv_conf.vmdq_dcb_tx_conf, &tx_conf,\n-\t\t\t  sizeof(tx_conf)));\n+\t(void)(memcpy(eth_conf, &vmdq_dcb_conf_default, sizeof(*eth_conf)));\n+\t(void)(memcpy(&eth_conf->rx_adv_conf.vmdq_dcb_conf, &conf, sizeof(conf)));\n+\t(void)(memcpy(&eth_conf->rx_adv_conf.dcb_rx_conf, &dcb_conf, sizeof(dcb_conf)));\n+\t(void)(memcpy(&eth_conf->rx_adv_conf.vmdq_rx_conf, &vmdq_conf, sizeof(vmdq_conf)));\n+\t(void)(memcpy(&eth_conf->tx_adv_conf.vmdq_dcb_tx_conf, &tx_conf, sizeof(tx_conf)));\n \tif (rss_enable) {\n \t\teth_conf->rxmode.mq_mode = RTE_ETH_MQ_RX_VMDQ_DCB_RSS;\n \t\teth_conf->rx_adv_conf.rss_conf.rss_hf = RTE_ETH_RSS_IP |\n",
    "prefixes": [
        "v4",
        "30/30"
    ]
}