Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/137760/?format=api
http://patches.dpdk.org/api/patches/137760/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20240301171707.95242-71-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": "<20240301171707.95242-71-stephen@networkplumber.org>", "list_archive_url": "https://inbox.dpdk.org/dev/20240301171707.95242-71-stephen@networkplumber.org", "date": "2024-03-01T17:16:06", "name": "[v2,70/71] app/test: replace use of fixed size rte_memcpy", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "bc17dace46bb9d6fe210c423089282ee934deed9", "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/20240301171707.95242-71-stephen@networkplumber.org/mbox/", "series": [ { "id": 31340, "url": "http://patches.dpdk.org/api/series/31340/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=31340", "date": "2024-03-01T17:14:57", "name": "replace use of fixed size rte_mempcy", "version": 2, "mbox": "http://patches.dpdk.org/series/31340/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/137760/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/137760/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 D200943C12;\n\tFri, 1 Mar 2024 18:25:19 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 36D3B43516;\n\tFri, 1 Mar 2024 18:18:49 +0100 (CET)", "from mail-pl1-f174.google.com (mail-pl1-f174.google.com\n [209.85.214.174])\n by mails.dpdk.org (Postfix) with ESMTP id 1D7E343487\n for <dev@dpdk.org>; Fri, 1 Mar 2024 18:18:14 +0100 (CET)", "by mail-pl1-f174.google.com with SMTP id\n d9443c01a7336-1dc1ff3ba1aso19959045ad.3\n for <dev@dpdk.org>; Fri, 01 Mar 2024 09:18:14 -0800 (PST)", "from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141])\n by smtp.gmail.com with ESMTPSA id\n j14-20020a170902da8e00b001dc8d6a9d40sm3695764plx.144.2024.03.01.09.18.12\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Fri, 01 Mar 2024 09:18:12 -0800 (PST)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709313493;\n x=1709918293; 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=jS36aQlQ0xHVW/eOEn3vvIA9Ejw7hQSGnpyTmOJep+s=;\n b=dZFvrsU2O1oFpPYY2OYfIaSM3qX0shph8gSwjB0QPmybqRQ7wH/KEbhvsfAmYBFHEw\n hx2KhLQ9+Bd3N2srhUMvcCm+x8G2Lehrpq9srDHCeYzlwsUTSdQJlxvkyhHyXRR7KKRT\n F1ii9yMboBQMF/l8sRSEr08kFcju0hSvNzD4zpeRBPmfhtDAPsR8DX57VrV7o5Y3vwUz\n e9EbgDHhFoNuw0ulGl/W1lBWcqxRMwtDWeTYEjvg3VBEkmRUBKmagWxii/BPEdE0+CRN\n u7y/DtzWMCR6tMMAcM7SnhMNgb5SAjShtPmx+hnvn3wy9x5ma1OujCcvDIJ9eudOFgEm\n mhmA==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1709313493; x=1709918293;\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=jS36aQlQ0xHVW/eOEn3vvIA9Ejw7hQSGnpyTmOJep+s=;\n b=sPQGVv5vGzA6MC8ZACxv7JVhi9459qrl6ZQ7qG02XoCFzZjdIbB0plA+4Zp3MYyWr1\n fDNdZiXqxuDJ0NMpiGAhWMSWX0CmqUR2emLiSBAfCrHIF1Nrxju6dbvfkx5McqQPcaSM\n iF2j8U8g006zcr1iUoxpBr+v+oFxFM4Ldot9PaaKzJK7wP4oxhhaFKBNvKqXILj6xGUX\n tIvzpsMviT1mjiIpcomKnMgIjYYOKBKeIzatt+2UgS0bx7pyfGe2RK2GEGvbsSfitndq\n 7hUjuK7o5f1jOUtF+Ke2Z4/5xIT/RIzCJuYQz8qh33ku/KlvCG04zYblvBxqhxNva4BP\n P1Gw==", "X-Gm-Message-State": "AOJu0YwqmLFJl8YNii+uFWi7+CUlMKIAAR9MQ+bN34dVfK76J5xfoGHF\n S5BWAq/HQQrGi3YhvYLMctROpx8zcKQeaNy2qbfoQcY+IBFHeQPChNT+Hufbd9kSDxrK1q/LQrn\n pTKx8xQ==", "X-Google-Smtp-Source": "\n AGHT+IH/XA5nNPt1wNOzknCe3/ZfLRGuJTp/DEGwFDa/c8XnccGFOTkHJBQvTdMXkkzbiJTgedAv5w==", "X-Received": "by 2002:a17:902:da85:b0:1dc:e58:8ab4 with SMTP id\n j5-20020a170902da8500b001dc0e588ab4mr2858209plx.9.1709313493285;\n Fri, 01 Mar 2024 09:18:13 -0800 (PST)", "From": "Stephen Hemminger <stephen@networkplumber.org>", "To": "dev@dpdk.org", "Cc": "Stephen Hemminger <stephen@networkplumber.org>,\n Jasvinder Singh <jasvinder.singh@intel.com>,\n Akhil Goyal <gakhil@marvell.com>, Fan Zhang <fanzhang.oss@gmail.com>,\n Byron Marohn <byron.marohn@intel.com>,\n Yipeng Wang <yipeng1.wang@intel.com>,\n Abhinandan Gujjar <abhinandan.gujjar@intel.com>,\n Amit Prakash Shukla <amitprakashs@marvell.com>,\n Jerin Jacob <jerinj@marvell.com>,\n Konstantin Ananyev <konstantin.v.ananyev@yandex.ru>,\n Vladimir Medvedkin <vladimir.medvedkin@intel.com>,\n Chas Williams <chas3@att.com>, \"Min Hu (Connor)\" <humin29@huawei.com>,\n Sameh Gobriel <sameh.gobriel@intel.com>,\n Sachin Saxena <sachin.saxena@nxp.com>,\n Hemant Agrawal <hemant.agrawal@nxp.com>, Anoob Joseph <anoobj@marvell.com>,\n Harry van Haaren <harry.van.haaren@intel.com>", "Subject": "[PATCH v2 70/71] app/test: replace use of fixed size rte_memcpy", "Date": "Fri, 1 Mar 2024 09:16:06 -0800", "Message-ID": "<20240301171707.95242-71-stephen@networkplumber.org>", "X-Mailer": "git-send-email 2.43.0", "In-Reply-To": "<20240301171707.95242-1-stephen@networkplumber.org>", "References": "<20240229225936.483472-1-stephen@networkplumber.org>\n <20240301171707.95242-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 app/test/commands.c | 1 -\n app/test/packet_burst_generator.c | 4 +--\n app/test/test_crc.c | 5 ++--\n app/test/test_cryptodev.c | 18 ++++++-------\n app/test/test_cryptodev_asym.c | 1 -\n app/test/test_cryptodev_security_pdcp.c | 1 -\n app/test/test_efd.c | 1 -\n app/test/test_efd_perf.c | 1 -\n app/test/test_event_crypto_adapter.c | 12 ++++-----\n app/test/test_event_dma_adapter.c | 4 +--\n app/test/test_eventdev.c | 1 -\n app/test/test_ipsec.c | 6 ++---\n app/test/test_link_bonding_mode4.c | 8 +++---\n app/test/test_mbuf.c | 1 -\n app/test/test_member.c | 1 -\n app/test/test_member_perf.c | 1 -\n app/test/test_rawdev.c | 1 -\n app/test/test_security_inline_proto.c | 36 ++++++++++++-------------\n app/test/test_service_cores.c | 1 -\n app/test/virtual_pmd.c | 3 +--\n 20 files changed, 46 insertions(+), 61 deletions(-)", "diff": "diff --git a/app/test/commands.c b/app/test/commands.c\nindex 497d8e9952ea..74494a0ef440 100644\n--- a/app/test/commands.c\n+++ b/app/test/commands.c\n@@ -16,7 +16,6 @@\n #include <rte_log.h>\n #include <rte_debug.h>\n #include <rte_memory.h>\n-#include <rte_memcpy.h>\n #include <rte_memzone.h>\n #include <rte_launch.h>\n #include <rte_cycles.h>\ndiff --git a/app/test/packet_burst_generator.c b/app/test/packet_burst_generator.c\nindex 867a88da0055..fcca2d238ece 100644\n--- a/app/test/packet_burst_generator.c\n+++ b/app/test/packet_burst_generator.c\n@@ -148,8 +148,8 @@ initialize_ipv6_header(struct rte_ipv6_hdr *ip_hdr, uint8_t *src_addr,\n \tip_hdr->proto = IPPROTO_UDP;\n \tip_hdr->hop_limits = IP_DEFTTL;\n \n-\trte_memcpy(ip_hdr->src_addr, src_addr, sizeof(ip_hdr->src_addr));\n-\trte_memcpy(ip_hdr->dst_addr, dst_addr, sizeof(ip_hdr->dst_addr));\n+\tmemcpy(ip_hdr->src_addr, src_addr, sizeof(ip_hdr->src_addr));\n+\tmemcpy(ip_hdr->dst_addr, dst_addr, sizeof(ip_hdr->dst_addr));\n \n \treturn (uint16_t) (pkt_data_len + sizeof(struct rte_ipv6_hdr));\n }\ndiff --git a/app/test/test_crc.c b/app/test/test_crc.c\nindex b85fca35fe2d..30fe00450606 100644\n--- a/app/test/test_crc.c\n+++ b/app/test/test_crc.c\n@@ -6,7 +6,6 @@\n \n #include <rte_hexdump.h>\n #include <rte_malloc.h>\n-#include <rte_memcpy.h>\n #include <rte_net_crc.h>\n \n #define CRC_VEC_LEN 32\n@@ -83,7 +82,7 @@ test_crc_calc(void)\n \t\treturn -7;\n \n \tfor (i = 0; i < CRC32_VEC_LEN1; i += 12)\n-\t\trte_memcpy(&test_data[i], crc32_vec1, 12);\n+\t\tmemcpy(&test_data[i], crc32_vec1, 12);\n \n \tresult = crc_calc(test_data, CRC32_VEC_LEN1, type);\n \tif (result != crc32_vec1_res) {\n@@ -93,7 +92,7 @@ test_crc_calc(void)\n \n \t/* 32-bit ethernet CRC: Test 3 */\n \tfor (i = 0; i < CRC32_VEC_LEN2; i += 12)\n-\t\trte_memcpy(&test_data[i], crc32_vec1, 12);\n+\t\tmemcpy(&test_data[i], crc32_vec1, 12);\n \n \tresult = crc_calc(test_data, CRC32_VEC_LEN2, type);\n \tif (result != crc32_vec2_res) {\ndiff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c\nindex 38a65aa88f04..d87bcbb05b86 100644\n--- a/app/test/test_cryptodev.c\n+++ b/app/test/test_cryptodev.c\n@@ -2345,8 +2345,8 @@ test_AES_CBC_HMAC_SHA1_encrypt_digest(void)\n \tsym_op->auth.data.length = QUOTE_512_BYTES;\n \n \t/* Copy IV at the end of the crypto operation */\n-\trte_memcpy(rte_crypto_op_ctod_offset(ut_params->op, uint8_t *, IV_OFFSET),\n-\t\t\taes_cbc_iv, CIPHER_IV_LENGTH_AES_CBC);\n+\tmemcpy(rte_crypto_op_ctod_offset(ut_params->op, uint8_t *, IV_OFFSET),\n+\t aes_cbc_iv, CIPHER_IV_LENGTH_AES_CBC);\n \n \t/* Set crypto operation cipher parameters */\n \tsym_op->cipher.data.offset = 0;\n@@ -2480,9 +2480,7 @@ test_AES_CBC_HMAC_SHA512_decrypt_perform(void *sess,\n \t\t\tDIGEST_BYTE_LENGTH_SHA512);\n \tTEST_ASSERT_NOT_NULL(ut_params->digest, \"no room to append digest\");\n \n-\trte_memcpy(ut_params->digest,\n-\t\t\tdigest,\n-\t\t\tDIGEST_BYTE_LENGTH_SHA512);\n+\tmemcpy(ut_params->digest, digest, DIGEST_BYTE_LENGTH_SHA512);\n \n \t/* Generate Crypto op data structure */\n \tut_params->op = rte_crypto_op_alloc(ts_params->op_mpool,\n@@ -2505,8 +2503,8 @@ test_AES_CBC_HMAC_SHA512_decrypt_perform(void *sess,\n \tsym_op->auth.data.length = QUOTE_512_BYTES;\n \n \t/* Copy IV at the end of the crypto operation */\n-\trte_memcpy(rte_crypto_op_ctod_offset(ut_params->op, uint8_t *, IV_OFFSET),\n-\t\t\tiv, CIPHER_IV_LENGTH_AES_CBC);\n+\tmemcpy(rte_crypto_op_ctod_offset(ut_params->op, uint8_t *, IV_OFFSET),\n+\t iv, CIPHER_IV_LENGTH_AES_CBC);\n \n \tsym_op->cipher.data.offset = 0;\n \tsym_op->cipher.data.length = QUOTE_512_BYTES;\n@@ -8863,7 +8861,7 @@ create_aead_operation(enum rte_crypto_aead_operation op,\n \t\t\t\tuint8_t *, IV_OFFSET);\n \n \t\tif (tdata->iv.len == 0) {\n-\t\t\trte_memcpy(iv_ptr, tdata->iv.data, AES_GCM_J0_LENGTH);\n+\t\t\tmemcpy(iv_ptr, tdata->iv.data, AES_GCM_J0_LENGTH);\n \t\t\tdebug_hexdump(stdout, \"iv:\", iv_ptr,\n \t\t\t\tAES_GCM_J0_LENGTH);\n \t\t} else {\n@@ -13659,8 +13657,8 @@ test_multi_session_random_usage(void)\n \n \tfor (i = 0; i < MB_SESSION_NUMBER; i++) {\n \n-\t\trte_memcpy(&ut_paramz[i].ut_params, &unittest_params,\n-\t\t\t\tsizeof(struct crypto_unittest_params));\n+\t\tmemcpy(&ut_paramz[i].ut_params, &unittest_params,\n+\t\t sizeof(struct crypto_unittest_params));\n \n \t\ttest_AES_CBC_HMAC_SHA512_decrypt_create_session_params(\n \t\t\t\t&ut_paramz[i].ut_params,\ndiff --git a/app/test/test_cryptodev_asym.c b/app/test/test_cryptodev_asym.c\nindex 17daf734e8c4..88561a8f25d5 100644\n--- a/app/test/test_cryptodev_asym.c\n+++ b/app/test/test_cryptodev_asym.c\n@@ -8,7 +8,6 @@\n #include <rte_hexdump.h>\n #include <rte_mbuf.h>\n #include <rte_malloc.h>\n-#include <rte_memcpy.h>\n #include <rte_pause.h>\n \n #include <rte_cryptodev.h>\ndiff --git a/app/test/test_cryptodev_security_pdcp.c b/app/test/test_cryptodev_security_pdcp.c\nindex a7641bab7a6f..39926cbee37a 100644\n--- a/app/test/test_cryptodev_security_pdcp.c\n+++ b/app/test/test_cryptodev_security_pdcp.c\n@@ -10,7 +10,6 @@\n #include <rte_hexdump.h>\n #include <rte_mbuf.h>\n #include <rte_malloc.h>\n-#include <rte_memcpy.h>\n #include <rte_pause.h>\n #include <rte_bus_vdev.h>\n #include <rte_byteorder.h>\ndiff --git a/app/test/test_efd.c b/app/test/test_efd.c\nindex 1c0986b9bcd9..306f851c52de 100644\n--- a/app/test/test_efd.c\n+++ b/app/test/test_efd.c\n@@ -13,7 +13,6 @@ test_efd(void)\n \n #else\n \n-#include <rte_memcpy.h>\n #include <rte_malloc.h>\n #include <rte_efd.h>\n #include <rte_byteorder.h>\ndiff --git a/app/test/test_efd_perf.c b/app/test/test_efd_perf.c\nindex b212e96767a2..7f5a8b9a5603 100644\n--- a/app/test/test_efd_perf.c\n+++ b/app/test/test_efd_perf.c\n@@ -22,7 +22,6 @@ test_efd_perf(void)\n #include <rte_malloc.h>\n #include <rte_random.h>\n #include <rte_efd.h>\n-#include <rte_memcpy.h>\n #include <rte_thash.h>\n \n #define NUM_KEYSIZES 10\ndiff --git a/app/test/test_event_crypto_adapter.c b/app/test/test_event_crypto_adapter.c\nindex 0c56744ba031..4992c5bc5035 100644\n--- a/app/test/test_event_crypto_adapter.c\n+++ b/app/test/test_event_crypto_adapter.c\n@@ -454,7 +454,7 @@ test_op_forward_mode(uint8_t session_less)\n \t\tm_data.request_info.cdev_id = request_info.cdev_id;\n \t\tm_data.request_info.queue_pair_id = request_info.queue_pair_id;\n \t\tm_data.response_info.event = response_info.event;\n-\t\trte_memcpy((uint8_t *)op + len, &m_data, sizeof(m_data));\n+\t\tmemcpy((uint8_t *)op + len, &m_data, sizeof(m_data));\n \t}\n \n \tsym_op->m_src = m;\n@@ -653,8 +653,8 @@ test_asym_op_forward_mode(uint8_t session_less)\n \t\tm_data.request_info.cdev_id = request_info.cdev_id;\n \t\tm_data.request_info.queue_pair_id = request_info.queue_pair_id;\n \t\tm_data.response_info.event = response_info.event;\n-\t\trte_memcpy((uint8_t *)op + op->private_data_offset,\n-\t\t\t\t&m_data, sizeof(m_data));\n+\t\tmemcpy((uint8_t *)op + op->private_data_offset, &m_data,\n+\t\t sizeof(m_data));\n \t}\n \t/* Fill in event info and update event_ptr with rte_crypto_op */\n \tmemset(&ev, 0, sizeof(ev));\n@@ -820,7 +820,7 @@ test_op_new_mode(uint8_t session_less)\n \t\top->private_data_offset = len;\n \t\t/* Fill in private data information */\n \t\tm_data.response_info.event = response_info.event;\n-\t\trte_memcpy((uint8_t *)op + len, &m_data, sizeof(m_data));\n+\t\tmemcpy((uint8_t *)op + len, &m_data, sizeof(m_data));\n \t}\n \n \tsym_op->m_src = m;\n@@ -977,8 +977,8 @@ test_asym_op_new_mode(uint8_t session_less)\n \t\t\t\tsizeof(struct rte_crypto_asym_xform));\n \t\t/* Fill in private data information */\n \t\tm_data.response_info.event = response_info.event;\n-\t\trte_memcpy((uint8_t *)op + op->private_data_offset,\n-\t\t\t\t&m_data, sizeof(m_data));\n+\t\tmemcpy((uint8_t *)op + op->private_data_offset, &m_data,\n+\t\t sizeof(m_data));\n \t}\n \n \tret = send_op_recv_ev(op);\ndiff --git a/app/test/test_event_dma_adapter.c b/app/test/test_event_dma_adapter.c\nindex 35b417b69f7b..af2e44a703e4 100644\n--- a/app/test/test_event_dma_adapter.c\n+++ b/app/test/test_event_dma_adapter.c\n@@ -269,8 +269,8 @@ test_op_forward_mode(void)\n \t\top->vchan = TEST_DMA_VCHAN_ID;\n \n \t\tresponse_info.event = dma_response_info.event;\n-\t\trte_memcpy((uint8_t *)op + sizeof(struct rte_event_dma_adapter_op), &response_info,\n-\t\t\t sizeof(struct rte_event));\n+\t\tmemcpy((uint8_t *)op + sizeof(struct rte_event_dma_adapter_op),\n+\t\t &response_info, sizeof(struct rte_event));\n \n \t\t/* Fill in event info and update event_ptr with rte_event_dma_adapter_op */\n \t\tmemset(&ev[i], 0, sizeof(struct rte_event));\ndiff --git a/app/test/test_eventdev.c b/app/test/test_eventdev.c\nindex e4e234dc9867..d2ae9b4930d0 100644\n--- a/app/test/test_eventdev.c\n+++ b/app/test/test_eventdev.c\n@@ -8,7 +8,6 @@\n #include <rte_hexdump.h>\n #include <rte_mbuf.h>\n #include <rte_malloc.h>\n-#include <rte_memcpy.h>\n \n #ifdef RTE_EXEC_ENV_WINDOWS\n static int\ndiff --git a/app/test/test_ipsec.c b/app/test/test_ipsec.c\nindex 6cb1bac1e732..25aabdb616da 100644\n--- a/app/test/test_ipsec.c\n+++ b/app/test/test_ipsec.c\n@@ -601,10 +601,10 @@ setup_test_string_tunneled(struct rte_mempool *mpool, const char *string,\n \t/* copy outer IP and ESP header */\n \tipv4_outer.total_length = rte_cpu_to_be_16(t_len);\n \tipv4_outer.packet_id = rte_cpu_to_be_16(seq);\n-\trte_memcpy(dst, &ipv4_outer, sizeof(ipv4_outer));\n+\tmemcpy(dst, &ipv4_outer, sizeof(ipv4_outer));\n \tdst += sizeof(ipv4_outer);\n \tm->l3_len = sizeof(ipv4_outer);\n-\trte_memcpy(dst, &esph, sizeof(esph));\n+\tmemcpy(dst, &esph, sizeof(esph));\n \tdst += sizeof(esph);\n \n \tif (string != NULL) {\n@@ -616,7 +616,7 @@ setup_test_string_tunneled(struct rte_mempool *mpool, const char *string,\n \t\t\tsizeof(esp_pad_bytes)));\n \t\tdst += padlen;\n \t\t/* copy ESP tail header */\n-\t\trte_memcpy(dst, &espt, sizeof(espt));\n+\t\tmemcpy(dst, &espt, sizeof(espt));\n \t} else\n \t\tmemset(dst, 0, t_len);\n \ndiff --git a/app/test/test_link_bonding_mode4.c b/app/test/test_link_bonding_mode4.c\nindex ff13dbed93f3..e4827c1e8091 100644\n--- a/app/test/test_link_bonding_mode4.c\n+++ b/app/test/test_link_bonding_mode4.c\n@@ -1399,8 +1399,8 @@ test_mode4_ext_ctrl(void)\n \n \tfor (i = 0; i < MEMBER_COUNT; i++) {\n \t\tlacp_tx_buf[i] = rte_pktmbuf_alloc(test_params.mbuf_pool);\n-\t\trte_memcpy(rte_pktmbuf_mtod(lacp_tx_buf[i], char *),\n-\t\t\t &lacpdu, sizeof(lacpdu));\n+\t\tmemcpy(rte_pktmbuf_mtod(lacp_tx_buf[i], char *), &lacpdu,\n+\t\t sizeof(lacpdu));\n \t\trte_pktmbuf_pkt_len(lacp_tx_buf[i]) = sizeof(lacpdu);\n \t}\n \n@@ -1453,8 +1453,8 @@ test_mode4_ext_lacp(void)\n \n \tfor (i = 0; i < MEMBER_COUNT; i++) {\n \t\tlacp_tx_buf[i] = rte_pktmbuf_alloc(test_params.mbuf_pool);\n-\t\trte_memcpy(rte_pktmbuf_mtod(lacp_tx_buf[i], char *),\n-\t\t\t &lacpdu, sizeof(lacpdu));\n+\t\tmemcpy(rte_pktmbuf_mtod(lacp_tx_buf[i], char *), &lacpdu,\n+\t\t sizeof(lacpdu));\n \t\trte_pktmbuf_pkt_len(lacp_tx_buf[i]) = sizeof(lacpdu);\n \t}\n \ndiff --git a/app/test/test_mbuf.c b/app/test/test_mbuf.c\nindex 51ea6ef1c472..9303f2492f89 100644\n--- a/app/test/test_mbuf.c\n+++ b/app/test/test_mbuf.c\n@@ -19,7 +19,6 @@\n #include <rte_debug.h>\n #include <rte_log.h>\n #include <rte_memory.h>\n-#include <rte_memcpy.h>\n #include <rte_launch.h>\n #include <rte_eal.h>\n #include <rte_per_lcore.h>\ndiff --git a/app/test/test_member.c b/app/test/test_member.c\nindex 5a4d2750db36..7281a644bd21 100644\n--- a/app/test/test_member.c\n+++ b/app/test/test_member.c\n@@ -7,7 +7,6 @@\n #include <math.h>\n #include \"test.h\"\n \n-#include <rte_memcpy.h>\n #include <rte_malloc.h>\n \n #ifdef RTE_EXEC_ENV_WINDOWS\ndiff --git a/app/test/test_member_perf.c b/app/test/test_member_perf.c\nindex db6b8a18efd9..f40fdba91e80 100644\n--- a/app/test/test_member_perf.c\n+++ b/app/test/test_member_perf.c\n@@ -11,7 +11,6 @@\n #include <rte_cycles.h>\n #include <rte_malloc.h>\n #include <rte_random.h>\n-#include <rte_memcpy.h>\n #include <rte_thash.h>\n #include <math.h>\n \ndiff --git a/app/test/test_rawdev.c b/app/test/test_rawdev.c\nindex d34691dacf5f..120e61dcc29c 100644\n--- a/app/test/test_rawdev.c\n+++ b/app/test/test_rawdev.c\n@@ -7,7 +7,6 @@\n #include <rte_common.h>\n #include <rte_mbuf.h>\n #include <rte_malloc.h>\n-#include <rte_memcpy.h>\n #include <rte_dev.h>\n \n #ifdef RTE_EXEC_ENV_WINDOWS\ndiff --git a/app/test/test_security_inline_proto.c b/app/test/test_security_inline_proto.c\nindex 481382b64e85..8268a0855ba7 100644\n--- a/app/test/test_security_inline_proto.c\n+++ b/app/test/test_security_inline_proto.c\n@@ -245,8 +245,8 @@ create_inline_ipsec_session(struct ipsec_test_data *sa, uint16_t portid,\n \n \t/* Copy cipher session parameters */\n \tif (sa->aead) {\n-\t\trte_memcpy(sess_conf->crypto_xform, &sa->xform.aead,\n-\t\t\t\tsizeof(struct rte_crypto_sym_xform));\n+\t\tmemcpy(sess_conf->crypto_xform, &sa->xform.aead,\n+\t\t sizeof(struct rte_crypto_sym_xform));\n \t\tsess_conf->crypto_xform->aead.key.data = sa->key.data;\n \t\t/* Verify crypto capabilities */\n \t\tif (test_sec_crypto_caps_aead_verify(sec_cap, sess_conf->crypto_xform) != 0) {\n@@ -256,13 +256,13 @@ create_inline_ipsec_session(struct ipsec_test_data *sa, uint16_t portid,\n \t\t}\n \t} else {\n \t\tif (dir == RTE_SECURITY_IPSEC_SA_DIR_EGRESS) {\n-\t\t\trte_memcpy(&sess_conf->crypto_xform->cipher,\n-\t\t\t\t\t&sa->xform.chain.cipher.cipher,\n-\t\t\t\t\tsizeof(struct rte_crypto_cipher_xform));\n+\t\t\tmemcpy(&sess_conf->crypto_xform->cipher,\n+\t\t\t &sa->xform.chain.cipher.cipher,\n+\t\t\t sizeof(struct rte_crypto_cipher_xform));\n \n-\t\t\trte_memcpy(&sess_conf->crypto_xform->next->auth,\n-\t\t\t\t\t&sa->xform.chain.auth.auth,\n-\t\t\t\t\tsizeof(struct rte_crypto_auth_xform));\n+\t\t\tmemcpy(&sess_conf->crypto_xform->next->auth,\n+\t\t\t &sa->xform.chain.auth.auth,\n+\t\t\t sizeof(struct rte_crypto_auth_xform));\n \t\t\tsess_conf->crypto_xform->cipher.key.data =\n \t\t\t\t\t\t\tsa->key.data;\n \t\t\tsess_conf->crypto_xform->next->auth.key.data =\n@@ -282,12 +282,12 @@ create_inline_ipsec_session(struct ipsec_test_data *sa, uint16_t portid,\n \t\t\t\treturn TEST_SKIPPED;\n \t\t\t}\n \t\t} else {\n-\t\t\trte_memcpy(&sess_conf->crypto_xform->next->cipher,\n-\t\t\t\t\t&sa->xform.chain.cipher.cipher,\n-\t\t\t\t\tsizeof(struct rte_crypto_cipher_xform));\n-\t\t\trte_memcpy(&sess_conf->crypto_xform->auth,\n-\t\t\t\t\t&sa->xform.chain.auth.auth,\n-\t\t\t\t\tsizeof(struct rte_crypto_auth_xform));\n+\t\t\tmemcpy(&sess_conf->crypto_xform->next->cipher,\n+\t\t\t &sa->xform.chain.cipher.cipher,\n+\t\t\t sizeof(struct rte_crypto_cipher_xform));\n+\t\t\tmemcpy(&sess_conf->crypto_xform->auth,\n+\t\t\t &sa->xform.chain.auth.auth,\n+\t\t\t sizeof(struct rte_crypto_auth_xform));\n \t\t\tsess_conf->crypto_xform->auth.key.data =\n \t\t\t\t\t\t\tsa->auth_key.data;\n \t\t\tsess_conf->crypto_xform->next->cipher.key.data =\n@@ -463,12 +463,12 @@ init_packet(struct rte_mempool *mp, const uint8_t *data, unsigned int len, bool\n \t\treturn NULL;\n \n \tif (outer_ipv4) {\n-\t\trte_memcpy(rte_pktmbuf_append(pkt, RTE_ETHER_HDR_LEN),\n-\t\t\t\t&dummy_ipv4_eth_hdr, RTE_ETHER_HDR_LEN);\n+\t\tmemcpy(rte_pktmbuf_append(pkt, RTE_ETHER_HDR_LEN),\n+\t\t &dummy_ipv4_eth_hdr, RTE_ETHER_HDR_LEN);\n \t\tpkt->l3_len = sizeof(struct rte_ipv4_hdr);\n \t} else {\n-\t\trte_memcpy(rte_pktmbuf_append(pkt, RTE_ETHER_HDR_LEN),\n-\t\t\t\t&dummy_ipv6_eth_hdr, RTE_ETHER_HDR_LEN);\n+\t\tmemcpy(rte_pktmbuf_append(pkt, RTE_ETHER_HDR_LEN),\n+\t\t &dummy_ipv6_eth_hdr, RTE_ETHER_HDR_LEN);\n \t\tpkt->l3_len = sizeof(struct rte_ipv6_hdr);\n \t}\n \tpkt->l2_len = RTE_ETHER_HDR_LEN;\ndiff --git a/app/test/test_service_cores.c b/app/test/test_service_cores.c\nindex c12d52d8f16c..fb08821b87eb 100644\n--- a/app/test/test_service_cores.c\n+++ b/app/test/test_service_cores.c\n@@ -6,7 +6,6 @@\n #include <rte_hexdump.h>\n #include <rte_mbuf.h>\n #include <rte_malloc.h>\n-#include <rte_memcpy.h>\n #include <rte_cycles.h>\n \n #include <rte_service.h>\ndiff --git a/app/test/virtual_pmd.c b/app/test/virtual_pmd.c\nindex b7d74a467a22..ae48923df78f 100644\n--- a/app/test/virtual_pmd.c\n+++ b/app/test/virtual_pmd.c\n@@ -8,7 +8,6 @@\n #include <rte_pci.h>\n #include <bus_pci_driver.h>\n #include <rte_malloc.h>\n-#include <rte_memcpy.h>\n #include <rte_memory.h>\n #include <rte_ring.h>\n \n@@ -186,7 +185,7 @@ virtual_ethdev_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats)\n \tstruct virtual_ethdev_private *dev_private = dev->data->dev_private;\n \n \tif (stats)\n-\t\trte_memcpy(stats, &dev_private->eth_stats, sizeof(*stats));\n+\t\tmemcpy(stats, &dev_private->eth_stats, sizeof(*stats));\n \n \treturn 0;\n }\n", "prefixes": [ "v2", "70/71" ] }{ "id": 137760, "url": "