From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id B6DFD43C12; Fri, 1 Mar 2024 18:17:50 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D11EB432F6; Fri, 1 Mar 2024 18:17:24 +0100 (CET) Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) by mails.dpdk.org (Postfix) with ESMTP id 6AF7443248 for ; Fri, 1 Mar 2024 18:17:20 +0100 (CET) Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-1dc75972f25so21372125ad.1 for ; Fri, 01 Mar 2024 09:17:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709313439; x=1709918239; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=LQIpOajtBvS65bWVKmyCoedN6gPZpkpUHetRqJFg3sI=; b=1+sDViOq2IelcuSaSPHXzd+R8LMCiabebyysoswZbmZuZIrE/f9pDNoat9M3/GNFM5 fPzAH8/KJlG1FFEtw2rJ3+WGjpncIcN8otC21EKxU/4sjbsgSdPaonUbjRLY2smFS1kV BWJ5jufkz9NN5QJ6WsLC4sHOd7OoShqKuirUgqRoRyrKqiAcTNTA/fYmQPzdc73jm06A FglSlqZ+ymAlTtNqcy/cTnS1vyTpOSBpagsJVmb7Elki9zUSB1uR9eJZ7KPXq1bbNk/1 CndTvI5OwfBiHfjDK4oko+h5kfvcNrXkmR5NfSViOOPrB3E22wBXH46iBZRFHTabr2xW JVxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709313439; x=1709918239; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LQIpOajtBvS65bWVKmyCoedN6gPZpkpUHetRqJFg3sI=; b=IvK4LXtjCkQ+KGiIrdpFLOfvoa9i3+qQc9sz6QnbtWiefwsSRkivTjuxZi8yRIemF+ NoVdZm5zF7FFPtJ9Blu12EzBh98mpJkVIhuZdltd0mQSpP4zuv1rAITE4bETmDsM2OQD GM2QVSwhN0PeLpieLPS15Rxfh0bBpQK0773bcEij/63shsr1MH9p/Lw+nduyfq9D/HsC MaU73L2ihUJywtpsL6j2fA9C5cmj0/voAvYioWW/PkfXP/dgvE+mSho1XvOOVYiyBriy Lf3XDXhuhpe9L/QukUHLVoMMS/Rq9hsCAtSA7KJOgWbPjvwa/Jtr/uhOxiKLcnK/Gz8n RQ0w== X-Gm-Message-State: AOJu0YwXPrar/AJqhNnAa3lPhfDrJMSzSweN/xIQMBaYkPDM4dP1ryxu THJsot2Rd3z5LXMWKFKlOYZ/LOQxmYp9yMh6bFsevxwvyjvYsPhx0w1dMZNUGAME9e1mM7ByiXO X8q05LQ== X-Google-Smtp-Source: AGHT+IGvNnTLIhgEre6BJ+QQYj6XePhG29HjVteJARwzHcns2CEsjMBZjTtIwDH0GkdYGVP24nDn5g== X-Received: by 2002:a17:902:efc3:b0:1dc:cb04:82e8 with SMTP id ja3-20020a170902efc300b001dccb0482e8mr1846728plb.22.1709313439712; Fri, 01 Mar 2024 09:17:19 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id j14-20020a170902da8e00b001dc8d6a9d40sm3695764plx.144.2024.03.01.09.17.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 09:17:19 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Abhinandan Gujjar , Jerin Jacob , Amit Prakash Shukla , Erik Gabriel Carrillo Subject: [PATCH v2 04/71] eventdev: replace use of fixed size rte_memcpy Date: Fri, 1 Mar 2024 09:15:00 -0800 Message-ID: <20240301171707.95242-5-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> <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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Automatically generated by devtools/cocci/rte_memcpy.cocci Signed-off-by: Stephen Hemminger --- lib/eventdev/rte_event_crypto_adapter.c | 2 +- lib/eventdev/rte_event_dma_adapter.c | 4 ++-- lib/eventdev/rte_event_timer_adapter.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/eventdev/rte_event_crypto_adapter.c b/lib/eventdev/rte_event_crypto_adapter.c index d46595d19028..d974404abe21 100644 --- a/lib/eventdev/rte_event_crypto_adapter.c +++ b/lib/eventdev/rte_event_crypto_adapter.c @@ -647,7 +647,7 @@ eca_ops_enqueue_burst(struct event_crypto_adapter *adapter, continue; } - rte_memcpy(ev, &m_data->response_info, sizeof(*ev)); + memcpy(ev, &m_data->response_info, sizeof(*ev)); ev->event_ptr = ops[i]; ev->event_type = RTE_EVENT_TYPE_CRYPTODEV; if (adapter->implicit_release_disabled) diff --git a/lib/eventdev/rte_event_dma_adapter.c b/lib/eventdev/rte_event_dma_adapter.c index 4196164305d9..c50b3d23da2d 100644 --- a/lib/eventdev/rte_event_dma_adapter.c +++ b/lib/eventdev/rte_event_dma_adapter.c @@ -447,7 +447,7 @@ rte_event_dma_adapter_create(uint8_t id, uint8_t evdev_id, struct rte_event_port if (pc == NULL) return -ENOMEM; - rte_memcpy(pc, port_config, sizeof(struct rte_event_port_conf)); + memcpy(pc, port_config, sizeof(struct rte_event_port_conf)); ret = rte_event_dma_adapter_create_ext(id, evdev_id, edma_default_config_cb, mode, pc); if (ret != 0) rte_free(pc); @@ -668,7 +668,7 @@ edma_ops_enqueue_burst(struct event_dma_adapter *adapter, struct rte_event_dma_a continue; } - rte_memcpy(ev, response_info, sizeof(struct rte_event)); + memcpy(ev, response_info, sizeof(struct rte_event)); ev->event_ptr = ops[i]; ev->event_type = RTE_EVENT_TYPE_DMADEV; if (adapter->implicit_release_disabled) diff --git a/lib/eventdev/rte_event_timer_adapter.c b/lib/eventdev/rte_event_timer_adapter.c index a3c6fb772e58..a425a30f5e05 100644 --- a/lib/eventdev/rte_event_timer_adapter.c +++ b/lib/eventdev/rte_event_timer_adapter.c @@ -548,7 +548,7 @@ event_buffer_add(struct event_buffer *bufp, struct rte_event *eventp) /* Instead of modulus, bitwise AND with mask to get head_idx. */ head_idx = bufp->head & EVENT_BUFFER_MASK; buf_eventp = &bufp->events[head_idx]; - rte_memcpy(buf_eventp, eventp, sizeof(struct rte_event)); + memcpy(buf_eventp, eventp, sizeof(struct rte_event)); /* Wrap automatically when overflow occurs. */ bufp->head++; -- 2.43.0