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 3527C43C12; Fri, 1 Mar 2024 18:22:01 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8873A4347E; Fri, 1 Mar 2024 18:18:10 +0100 (CET) Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) by mails.dpdk.org (Postfix) with ESMTP id 22A52433E8 for ; Fri, 1 Mar 2024 18:17:48 +0100 (CET) Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-1dca3951ad9so21948225ad.3 for ; Fri, 01 Mar 2024 09:17:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709313467; x=1709918267; 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=hr2zwqgoFnHAHura7nGiXu+NrF57ZsNufu2FdOniWdPzaAbOVOPxEgeUKB82+a+3oQ JopFNP7+HgCu6QkkndkKtI2mDpT9756TJI/CPvMhCgNaXH7RvX4q6rBre9SjEvbhEQCg 86L72tOrblBHXFeuhopM5Nr734KINqcz8Y4FX9OA8YBdJjoR4ZNwheIYzxJWJQHNGFrd 7PNTH4zhOmHxRHaTeC+nLqg2cedm8pa1U4OnXOKqjyNMxEVGqVcRwWSEzc1Gnj3bPNj1 4M7oO7tx8+3HFTDFm5AzGT4gH/kgsj9cDLf3zM6q8BCdZy2SgMzp2V0m6vsp7YW8/HzM qpTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709313467; x=1709918267; 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=lrzwrRh9uWhCpW4uNFPGAFGcd9loKA8h4KnnmpGOcoAyZ9T4W3S5OE5e/mwpyXkHs6 +3wb729wXiYaOHlbZ54MMKPLR3yB0iqLk4rah1vViAS/QNdyts+nrA39PaSm7oZiXek2 j3o8NI3L2Mjp321b5N36wDzzbPDOGdU8b7topNMT8SihV11Mci9nGMLCqILsYn074lBU 6YCz2kAPdILpq4L1D7dO6P8jdXCeSV4ikNlAyrUkUws7BmlJYlVVHZy+sbQ2MZ59I561 E3QnJ03SXC2xk4+jK5SJVXtXdso3crehbuaLjpM/u5zm3DGkTrQPDhz9XJRXAnLw/9Dx gTfw== X-Gm-Message-State: AOJu0YyFC46M6mAzk6RW2rtckOXucWTe6XPMojtrt5zXp248SLL4Jd1E Z8RkQqHuCrA4kkniWtPJ6Lw569SCry5UjnKFxuho14430QA4B8pU1P0m1rQnM3GXlWsdZgRYcjp Q6o1jtA== X-Google-Smtp-Source: AGHT+IFfgmRjBIX6ny2DhKTk8+YEwiIUbiDLT+B1YKvVoXP7gf+Nz8plkkE5SEgMe1xo8oPEwGdrew== X-Received: by 2002:a17:902:ec81:b0:1dc:30d7:ff37 with SMTP id x1-20020a170902ec8100b001dc30d7ff37mr2379520plg.42.1709313467450; Fri, 01 Mar 2024 09:17:47 -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.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 09:17:47 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Ankur Dwivedi , Anoob Joseph , Tejasree Kondoj Subject: [PATCH v2 39/71] crypto/cnxk: replace use of fixed size rte_memcpy Date: Fri, 1 Mar 2024 09:15:35 -0800 Message-ID: <20240301171707.95242-40-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 --- 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