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 F3E3E43E0C; Fri, 5 Apr 2024 18:57:32 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0133E40E32; Fri, 5 Apr 2024 18:55:57 +0200 (CEST) Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) by mails.dpdk.org (Postfix) with ESMTP id 0F97B40A6F for ; Fri, 5 Apr 2024 18:55:52 +0200 (CEST) Received: by mail-pf1-f177.google.com with SMTP id d2e1a72fcca58-6ecf05fd12fso1765849b3a.2 for ; Fri, 05 Apr 2024 09:55:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1712336151; x=1712940951; 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=t8IiiMVjqIJ9Nyl4AAxJjPF6IvqqEiV7liFyz4ccLN8=; b=dVhwLtxT16Xe1VLf/4u0OpwYuCZNVylVE+dqvdU6BMKx9T3jK9hN1ogA20zaYnHahI 38T26GOScs8zD4JAutylpflDaVN/FuumgK2WwktDxVkqqbsRvy2QeU9A2n6uYJ/ujPQj OlOHCoATdq1Y7zsAeKAykST43QZYIEAMSLwkxxzxqEyogvaXynlMpvNMfD9vNDb4oa+S YuCy4BJW+MgnvLF0jbLGIjeo5pIuQE+Oehrcrljl2kjwGL5nL7Ycp/CEZrxeCVL2oE5z ueC9QrwvTbrlreH3IkZBCfZp95sfeqga93FexJF+6W+3p+Ze2LNZi+IB7DT6FttK4PmJ BRYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712336151; x=1712940951; 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=t8IiiMVjqIJ9Nyl4AAxJjPF6IvqqEiV7liFyz4ccLN8=; b=c5R6SnrBUKXSaJKorvPsS2TqyQ5oOKHMHdIXd/HTb+7DPTgci9Z79yxo1BZvOZYooG u1pxj0PKnSvWGTAUcN8jsEdFGZGnAKcFNbeIaMgINM4LZmC3QGdU4AIjWa18offbxurr xmgv1knD9Vl/+iUoLtCHa946jfCUBPZsuQN7c4qLp+TK2v0E552KqJBA/akV6oouwFWk AU2RtjZvS6W7ELiMjurEUPBSnTW5S/6ulpwiKSIoVaP0wyB5UNnYsxbbW/868tUfYZ2G /yikwCTi/R7lUHhFjNPsMp9QnlQSBZdWLHvkaX103jyMnpt8W6kXtFz+9WekgRi3vdzh un5g== X-Gm-Message-State: AOJu0YyHJcb1ezNUAOExqq1nZKDF5kbbXEY9ar1Ywr6luBJWek4Yu48V PMr5cgeKrbCzfadj2KtVL06iMFOTx6OQp+rQ6jwLWLTTDhuymiglV8BFItyScc3HPOD8nApzG4f JkkU= X-Google-Smtp-Source: AGHT+IEusXR0iAmFcok5cXv1U2o1Imn9JlBWGARM8whDokEWZndb1+GhTtVyw2h9v+wpEJAounZWkA== X-Received: by 2002:a05:6a20:3218:b0:1a7:3635:fc9d with SMTP id hl24-20020a056a20321800b001a73635fc9dmr2036759pzc.26.1712336151303; Fri, 05 Apr 2024 09:55:51 -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.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 09:55:51 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Akhil Goyal , Anoob Joseph Subject: [PATCH v4 13/30] security: replace use of fixed size rte_memcpy Date: Fri, 5 Apr 2024 09:53:24 -0700 Message-ID: <20240405165518.367503-14-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/security/rte_security.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/security/rte_security.c b/lib/security/rte_security.c index e5c862f5f5..28d59ef388 100644 --- a/lib/security/rte_security.c +++ b/lib/security/rte_security.c @@ -384,7 +384,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]); } @@ -409,7 +409,7 @@ sec_caps_array(struct rte_tel_data *d, while ((dev_caps = &capabilities[i++])->action != RTE_SECURITY_ACTION_TYPE_NONE) { memset(&caps_val, 0, SEC_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 < SEC_CAPS_SZ; j++) rte_tel_data_add_array_uint(d, caps_val[j]); } -- 2.43.0