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 CFEAC43E0C; Fri, 5 Apr 2024 18:56:18 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EB0A640A67; Fri, 5 Apr 2024 18:55:45 +0200 (CEST) Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) by mails.dpdk.org (Postfix) with ESMTP id 5D3C640648 for ; Fri, 5 Apr 2024 18:55:42 +0200 (CEST) Received: by mail-pf1-f174.google.com with SMTP id d2e1a72fcca58-6ecf541e19aso1403085b3a.1 for ; Fri, 05 Apr 2024 09:55:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1712336141; x=1712940941; 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=vdd/LdHNOZv0OgU/yOEL8RT/34+Pa/gXTM+9pBDnNFs=; b=wiDVIUPibwA0bDvrtbs1Y3eOQGK7EVw5NMnSKNRDXG7TCXVZL8kxksXYFLxzTRWkJA lgnVashawIUGd0uvMPr9fknc9I8OUbeEPpMpIsQINEHlXGFDt86J5QDWmdJ4fqqsK2Bp lfeve2liGPHMSjPqPTXrnTczEv/iUMVW8Xf04oBzt0goHtCYvpwSJftJU7zD865KaQTZ FPJG2lcGuhmLVTEnmGR1j5FEVebwHVSulW71gUP9FW11euh/AUIIGqcPFUmDMYoaHypt baFzHrh2Sj2ncvN9tky7AE/+Ul6jqTXjxFQwrbbdUwVGMuM5QUnxdNvpnclnnC1yPHRq qwzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712336141; x=1712940941; 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=vdd/LdHNOZv0OgU/yOEL8RT/34+Pa/gXTM+9pBDnNFs=; b=IRW7MbNv81kEX1pZDY1k/PUm9wurH4fEXJJ6x11lbzwbtRYy0LcaZEcgqRVqDE6wPK GG5NDVAVStcFpK1P4+CGtR3/gr7LlAQl3IegF494z6Ij+nSyKn4679s0bBJAL9kfZxST MPmcqqNHiZ0uwfT+imfp876TzVNyE2W+mdt8kpEWERbE+inEBlJW4jKtKhaneaJ1eX6T TbGh1UVy3vnXHTZNLsJiwBNFs4zX9+x4HS6FxSg2Ya2fWmsGd7JyYXDlmyVR4k4Vddsq AaRlEbacYRxC0Vlz5JwJgPbiHpgOsL/S8wVWSgAGjAM4/UJyhf+QHEd0369HNRZ/trvu znNQ== X-Gm-Message-State: AOJu0Yx7/YEw8AEHr81GPnLwFHeNHjoskG6A2Ld2dOULMDwaWyo4xwNZ LLVAyJIfcTCCtWGNDJ6MFTWf7JPOnYKA2dMHMdOiX/BCesvnYX/uDLn8v36/U0RPQk43OjXHL/h 7IgQ= X-Google-Smtp-Source: AGHT+IG4QoE3YJbpO/D8YWwLE1mAKU4gmJZft74cKKwAufK0qd4Sh8E9cDmTLgqdaRi5jy012QUheQ== X-Received: by 2002:a05:6a00:23d2:b0:6ec:f097:1987 with SMTP id g18-20020a056a0023d200b006ecf0971987mr2415285pfc.31.1712336141536; Fri, 05 Apr 2024 09:55:41 -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.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 09:55:40 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Akhil Goyal , Fan Zhang Subject: [PATCH v4 05/30] cryptodev: replace use of fixed size rte_memcpy Date: Fri, 5 Apr 2024 09:53:16 -0700 Message-ID: <20240405165518.367503-6-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/cryptodev/rte_cryptodev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cryptodev/rte_cryptodev.c b/lib/cryptodev/rte_cryptodev.c index 886eb7adc4..1377777525 100644 --- a/lib/cryptodev/rte_cryptodev.c +++ b/lib/cryptodev/rte_cryptodev.c @@ -2854,7 +2854,7 @@ crypto_caps_array(struct rte_tel_data *d, while ((dev_caps = &capabilities[i++])->op != RTE_CRYPTO_OP_TYPE_UNDEFINED) { memset(&caps_val, 0, CRYPTO_CAPS_SZ * sizeof(caps_val[0])); - rte_memcpy(caps_val, dev_caps, sizeof(capabilities[0])); + memcpy(caps_val, dev_caps, sizeof(capabilities[0])); for (j = 0; j < CRYPTO_CAPS_SZ; j++) rte_tel_data_add_array_uint(d, caps_val[j]); } -- 2.43.0