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 5149D43E0C; Fri, 5 Apr 2024 18:56:10 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A5CA3406B8; Fri, 5 Apr 2024 18:55:44 +0200 (CEST) Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) by mails.dpdk.org (Postfix) with ESMTP id 3D6884068E for ; Fri, 5 Apr 2024 18:55:41 +0200 (CEST) Received: by mail-pf1-f178.google.com with SMTP id d2e1a72fcca58-6ed0938cd1dso365335b3a.2 for ; Fri, 05 Apr 2024 09:55:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1712336140; x=1712940940; 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=QEPChqlAXAK/b7g7FPQYA8ebH1KJBtDb4kFA7ezjfys=; b=PWd2O/2j0WedjoDq7L8Z8lulkL2YqM4pxYg85pHpyMFqU3vkmLAUnC42etWr4167DO iLeB7xP579tDPdkqymyET1LHlqU9s+kh4CBf/dbuB00jrFa/7y/I8bN/2JkmT8DoBllv vviyTFh5BeqPsYUcaH8QdPtnWroxCrSzK9mz7b7yOP9hxzdYsUTBwC2jMSrFZXzuAkEs ZIttyMdn94g1IrzyARacegJh4q28vbHThuxzq07G/AR4nSReOVzCLyBO9dgUvqwwZCDq r+Qc9Yky4El+IpNsxbj56969l1bm7KaSiyZSzMVCYxqpkgZj8it/l2bt9UyHU92kkOPu y5Ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712336140; x=1712940940; 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=QEPChqlAXAK/b7g7FPQYA8ebH1KJBtDb4kFA7ezjfys=; b=edol3co+xGVujO0MYrgBepwLj7Rpy6XjwFWqNwO1XeXlGtzrMYp/Ya+yhgjOQ6v+H8 AQlnToDRhTVN2ylCbYoF2Cc+pUkg5gxgOeka8bRb7fUEjFikGzi61GaKzJzkHFL4m70x 7laEpxuoxQ0r+V1yliOS8Y7cJLXNRKf0RQGOF79dJOIFK2g2UpreFhsmYuGLvzqq2LXO vFqxA04MnL1im/dXO24ar+hE4Cfws5sfP8qbIcLImBb7j3lPWTaJF5DRWC2ezf/iwn5x A2Isez2ZlwT4bkyHSE/o0RULpA/lbPmVgT1Y21MGcwWKGB5nSXwaYIlRNpLSXxIbFQSP 0+Qw== X-Gm-Message-State: AOJu0YzlmEp7A6uUz+MmunosKLdRF1WfoCv7Z4wCkLHEg1VkU0nU4Iyh OZwQXH+CnTjQaHAg8iFib8d7nYJg0OpU8kAghBAPwOswdbLn0OgUC/Puo2YVnguxU2hY3WuyENx EWKs= X-Google-Smtp-Source: AGHT+IExnrti2EIOfnHzrBo2d/U9MvdUov07XlNVJt6Q+y2LXkmZKnsJAN6idZQxNLOWtb2733FtEw== X-Received: by 2002:a05:6a00:4f93:b0:6ec:ff5e:7e66 with SMTP id ld19-20020a056a004f9300b006ecff5e7e66mr2563790pfb.1.1712336140440; Fri, 05 Apr 2024 09:55:40 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id c2-20020aa781c2000000b006e6c0f8ce1bsm1728555pfn.47.2024.04.05.09.55.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 09:55:39 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Abhinandan Gujjar , Jerin Jacob , Amit Prakash Shukla , Erik Gabriel Carrillo Subject: [PATCH v4 04/30] eventdev: replace use of fixed size rte_memcpy Date: Fri, 5 Apr 2024 09:53:15 -0700 Message-ID: <20240405165518.367503-5-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> <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 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 db1c7f3906..e2fff2ecc9 100644 --- a/lib/eventdev/rte_event_crypto_adapter.c +++ b/lib/eventdev/rte_event_crypto_adapter.c @@ -655,7 +655,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 24dff556db..6784c562b0 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 5886965d14..9ca52cc6de 100644 --- a/lib/eventdev/rte_event_timer_adapter.c +++ b/lib/eventdev/rte_event_timer_adapter.c @@ -549,7 +549,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