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 B7F1F43BAE; Fri, 1 Mar 2024 00:04:52 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D8D23433A7; Fri, 1 Mar 2024 00:01:26 +0100 (CET) Received: from mail-pg1-f174.google.com (mail-pg1-f174.google.com [209.85.215.174]) by mails.dpdk.org (Postfix) with ESMTP id 1F814432BE for ; Fri, 1 Mar 2024 00:00:33 +0100 (CET) Received: by mail-pg1-f174.google.com with SMTP id 41be03b00d2f7-5d8b519e438so1328706a12.1 for ; Thu, 29 Feb 2024 15:00:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709247633; x=1709852433; 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=FINMwYiClSWzDgSE/KQmfKaD2/JiBuvKG9zmhUkGrGw=; b=knlj4PAM04tPhoioqCOTkpmsGmwlk8dlgub3pwiVlBfIq4QBq7S7KMI4XfbvW98KqK 05cQTA3bzXoW1bkttaKAyIIUFq+K3S7yQ+YdNMBOPU7QGUSL+xv2TSBTa8KV8/11UFJY DPbfkkbg+MPln68HXD/v1VU37t47lgs3k7lzWZINNhnq7HJUeIx5Z8xL/U/MKdcxTRDv sxmuzldauSQkT2pHn6LyPujEorVFTroBgI/iHDAWOspeEsoyPkzmO6m+h9F6XiPxxmjC CJyxN5GBx5yAvjYGG7jc9+22AFm/FDOplAsyv1KswOp4s/lFtixR9L5mnQObuf4E6+5o tPXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709247633; x=1709852433; 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=FINMwYiClSWzDgSE/KQmfKaD2/JiBuvKG9zmhUkGrGw=; b=rCoyEV4ymg1si6zakZRPKIWEyNnxWOWMyRSRSruDm40oPNf9xUx5fJNeCczH5Vlac9 UXbRkxskzBEwFZ6F7H66GX/stnDKaFFnBrkDyv2u5WFTgat9XLnhkEqQDxv14qR7Sr2s lT7M6Zir0ex9d3w/4l8WW/PceO4Ixo7xbIaN7fAsGYY9Dgy75aMOGT7jPY/V3wWWPebj 0DdppEXu2MQolmV820fL1136bWHax8FyOsgszR7XQu4j1hBS+x379YPCTj2KsCbZymnz rcDz2r6aWRxbzoopVF4wdI2wJu70i9VxEJjbRfX+iInCLyHIxjPDCVLzKm9xcriO/ToC CY+Q== X-Gm-Message-State: AOJu0Yxvf7bn4fKse6HjWaPzY209be2cXzGhxnuUhXGuqiFK1XEDsdf9 EQmmhIIceBuQzhesQKLwAhBV2gjkq9v+OuPjd/NT1+nDi16RhQVxxejX9XGLBiKEtnawuWHjDf+ P X-Google-Smtp-Source: AGHT+IGSvFqkhQ/enp5Rm9s5hDM8Sk5SJ2drKSMqc2FAq0RZaODFDtoqJaO95fV/Zckz/tC4lx4hww== X-Received: by 2002:a05:6a21:e85:b0:1a1:26f3:c21c with SMTP id ma5-20020a056a210e8500b001a126f3c21cmr3942147pzb.17.1709247633089; Thu, 29 Feb 2024 15:00:33 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id l22-20020a17090b079600b0029a8e5355fcsm1965578pjz.53.2024.02.29.15.00.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 15:00:32 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Ankur Dwivedi , Anoob Joseph , Tejasree Kondoj Subject: [PATCH 39/71] crypto/cnxk: replace use of fixed size rte_memcpy Date: Thu, 29 Feb 2024 14:58:26 -0800 Message-ID: <20240229225936.483472-40-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240229225936.483472-1-stephen@networkplumber.org> References: <20240229225936.483472-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 --- drivers/crypto/cnxk/cnxk_cryptodev_ops.c | 2 +- drivers/crypto/cnxk/cnxk_se.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/cnxk/cnxk_cryptodev_ops.c b/drivers/crypto/cnxk/cnxk_cryptodev_ops.c index 1dd1dbac9afc..a67af3ec35a1 100644 --- a/drivers/crypto/cnxk/cnxk_cryptodev_ops.c +++ b/drivers/crypto/cnxk/cnxk_cryptodev_ops.c @@ -959,7 +959,7 @@ cnxk_crypto_cn10k_submit(void *qptr, void *inst, uint16_t nb_inst) lmt_dst = PLT_PTR_CAST(lmt_base); for (j = 0; j < i; j++) { - rte_memcpy(lmt_dst, inst, sizeof(struct cpt_inst_s)); + memcpy(lmt_dst, inst, sizeof(struct cpt_inst_s)); inst = RTE_PTR_ADD(inst, sizeof(struct cpt_inst_s)); lmt_dst = RTE_PTR_ADD(lmt_dst, 2 * sizeof(struct cpt_inst_s)); } diff --git a/drivers/crypto/cnxk/cnxk_se.h b/drivers/crypto/cnxk/cnxk_se.h index c211884ddaea..e6c1e1586b9b 100644 --- a/drivers/crypto/cnxk/cnxk_se.h +++ b/drivers/crypto/cnxk/cnxk_se.h @@ -1161,7 +1161,7 @@ cpt_sm_prep(uint32_t flags, uint64_t d_offs, uint64_t d_lens, struct roc_se_fc_p void *dst = PLT_PTR_ADD(offset_vaddr, ROC_SE_OFF_CTRL_LEN); const uint64_t *src = fc_params->iv_buf; - rte_memcpy(dst, src, 16); + memcpy(dst, src, 16); } inst->w4.u64 = cpt_inst_w4.u64; } else { -- 2.43.0