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 7F3F943DC8; Tue, 2 Apr 2024 23:56:15 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EC3404064C; Tue, 2 Apr 2024 23:55:48 +0200 (CEST) Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) by mails.dpdk.org (Postfix) with ESMTP id A53C5402D9 for ; Tue, 2 Apr 2024 23:55:44 +0200 (CEST) Received: by mail-pl1-f171.google.com with SMTP id d9443c01a7336-1e0ae065d24so48221515ad.1 for ; Tue, 02 Apr 2024 14:55:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1712094944; x=1712699744; 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=zB1VQXrTnPQZ9Lj8bptjO22ao2LobDRiVeWnjioI2y/GuSzdtwGvn7kI8iHv5mnnL4 13YD7pvdNU+MsJAxKviZUprQldhA1bt+PVNT+B7BXjZ+MPBymVXmfi/TSr0N2TJ/rKLd 8ta/1Kp0laM5YPb7ZXwfvQy5re+N+S1/ZJmO3CWuWuBsIznevPXGlot/LYKWV7+yhMMT PLoRwmNfLAq8LvhQbL7PYIG06RcWLyU35/pARy3GsHPXZFxAzVA+1HHZ38GrmzVRb4Hj 20BSGstQWVRGPEzE+LUoI2PicroAP4i9tasQ6WCy1z4PUeNszZzePzY3ulBNEtawdpxo Eb3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712094944; x=1712699744; 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=vysQR4uwwKFLwTICZ2vetrzWF70+Xqav58tl1KQBol0cUoX9nN65K+Vz7KJYHidVjY /i3tASME8XopDmpQIQS0pWBYnVV+siGTwNR/9axm9GaGnnB09vHwswlEbTA/R1Fc+LQh 0gX+OYPTspQfNlTW+L+J68byisz1EkW/iLqWnuvfqJZOyWK4JpFg+Q0BfqiNcqfnKZT7 zhvNnY87W4vlH5ihmrmQSnzrQcz0Klb7OXQi62BXIp+oIftr2lMDKhOHrB8Z1F/lDXT5 u2XFoGXgcy2YGDlUn70Xy/VIdFReKjliTXZp3s3e1VDOd3AiW2G1G/EvFz6rJErKzLAt Uqyw== X-Gm-Message-State: AOJu0YzM4IKVCidDyt7/5LgaS/L1EeDoWNbLNsJ8oS+gjfXJk1HhKbJu 5hAogqIpcUIrmUmtLyaKFYZQ7hYjO8clbR9IlmHYMA6/qRA0lPUpTCoeDGyN0IqXDLrQHHVpCdH G X-Google-Smtp-Source: AGHT+IG3ygFSJDRhpxjBos8DQtuWjijASTFL50hdNhxQny9tMT6x2QltXgiL4lIj2VLmRz3IyJ0xiw== X-Received: by 2002:a17:902:f552:b0:1e0:9aab:7500 with SMTP id h18-20020a170902f55200b001e09aab7500mr15177063plf.44.1712094943873; Tue, 02 Apr 2024 14:55:43 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id x15-20020a170902820f00b001dddf29b6e8sm11609381pln.299.2024.04.02.14.55.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 14:55:43 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Abhinandan Gujjar , Jerin Jacob , Amit Prakash Shukla , Erik Gabriel Carrillo Subject: [PATCH v3 04/30] eventdev: replace use of fixed size rte_memcpy Date: Tue, 2 Apr 2024 14:50:20 -0700 Message-ID: <20240402215502.278838-5-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240402215502.278838-1-stephen@networkplumber.org> References: <20240229225936.483472-1-stephen@networkplumber.org> <20240402215502.278838-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