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 35F3F44093; Wed, 22 May 2024 05:31:07 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D561A40696; Wed, 22 May 2024 05:30:35 +0200 (CEST) Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) by mails.dpdk.org (Postfix) with ESMTP id 51A87402E2 for ; Wed, 22 May 2024 05:30:30 +0200 (CEST) Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-1ed0abbf706so41626625ad.2 for ; Tue, 21 May 2024 20:30:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1716348629; x=1716953429; 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=AEZfg0PTC83q7QtanbYE5tPbYShC8C5ssmh85aChEMhdUyRzmNXKzlwt+F6x0RnAH5 svDXR3pZeqZD3/3W1ZoMBcK+bjRMbjFyKc0OH40MWsu4i4odCh0EdTI7l+8JdHcDy2S4 X3Xj7WspB7WSMaX+n1MBGrtdt27e+6XP4vS73p3OPTIQZguWRbqf86O2TUT/bFKXDU4P sIcHp7GeY9cET4zC/XHaiUdqAAJsXlhmW5BvqCHAnrgQ/Ks0ToSkAL6rcIlFnJ2IYzW6 yBwlx71wJtnbv3B7ADbE6WfidiLdiNm0ZuIAxYxD/orP3Q4Xw7KPKRwru1n8oRUa4thw KxDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716348629; x=1716953429; 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=Dmjtv1tYNLjMoD/eEp3emRXgXC+VlkR0BVzXRUBxJWDMwFEXKJgB2AsMXWNY+MY6ML GESojuRKjwI6OqGN1Aq3qVzaA7CIlkls+nlL3ljztSFHENhm6o3CX/wTN9H0msEUb0EP q2r9M73fT1PsUrlQIBgHexQOKkjgnMluvQWbwg2ktbDTQTaRLxGUHblF/JG8Z8hivoSA EXnln8zbFjTMirTmSLBeszylA0EAwcgF79zQ3nzbmugUnAlBMEhn81gl+EOK3g6nCCGb 1LTlD8LBrUGuL90NMKPmsb3LZfxkdpeS7lFnsVDtDCSp5JEF82Grvqf66mJW5kcc+umr phlA== X-Gm-Message-State: AOJu0YwogFrlwcMljsjywCbFL2a3Sb4X46VOD1J60+A8EEEkU7o0r9Am 6TpqE6UHJr/q+ax+KcXQnu6YHGdTkaD7FL0IUSah8Lyej6j/uhvC89R6Tx8rB24EfKyj4FaS0c7 duL0= X-Google-Smtp-Source: AGHT+IGvp52EpEAc9FGvy/V8JQWw06FT0jKgQXIGHF2EuOJaNz1zXEvPbDLQXdc/ttYn4VqPLhLqEA== X-Received: by 2002:a17:902:b589:b0:1e2:3e1e:3d9 with SMTP id d9443c01a7336-1f31c9f7009mr8086745ad.63.1716348629562; Tue, 21 May 2024 20:30:29 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f323c70dafsm2264325ad.260.2024.05.21.20.30.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 20:30:29 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Akhil Goyal , Fan Zhang Subject: [PATCH v5 05/32] cryptodev: replace use of fixed size rte_memcpy Date: Tue, 21 May 2024 20:27:32 -0700 Message-ID: <20240522033009.143100-6-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240522033009.143100-1-stephen@networkplumber.org> References: <20240403163432.437275-1-stephen@networkplumber.org> <20240522033009.143100-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