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 3BA0844093; Wed, 22 May 2024 05:32:06 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DEEC840DD8; Wed, 22 May 2024 05:30:46 +0200 (CEST) Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) by mails.dpdk.org (Postfix) with ESMTP id 36FDC406B6 for ; Wed, 22 May 2024 05:30:37 +0200 (CEST) Received: by mail-pl1-f171.google.com with SMTP id d9443c01a7336-1f05b669b6cso6976785ad.3 for ; Tue, 21 May 2024 20:30:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1716348636; x=1716953436; 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=t1gCxCfqFcPo4V4dZQBC72vtAXfErTY3p/CtSO4Mr0dYVwYtL9WojKhbpNigty6hGo LPa0gSys1pj3Xz7Mq7R7GWd06Xv+q2OVeFwC0nCEgZpXOYb7PnGW0jKtG7Gvp95HlYT6 pzWQpsauvttac/QD1CdL6TGc4g/LJb8docBXu25BT2n9D9YxrvpvxcPuEmdOwWWKphM4 a1wguZSUpJWahq2bi6EnhgloyeySl4wK6yTanuLg9xA5Vp9n803OpFXQhLRy71RZ9RXT NmuxjSTFZ6oCmy6DV1Z4jsepcXZIDvYdIiCUsSXaXa+swm3Wjb9mj0px1XsJ9B//pHWh 4LNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716348636; x=1716953436; 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=VL4YsPbgBOdEzPiyJFl+k+lxpwVTr1nGBz5XV5Bkotd3/vaWmhYbuB2sbSKH/8DWni dw5rT95pIszTneVo9/nJ808c8cfaEmirkn3tSh5vHq3RIqGXO181PSzj1l0K2eNCAEjU URKulOsAF55aPLIMPiXFFo8vLFssqMPtD/ytyoC1GYRU2/7LwL9hTkLjVUZoj7JICVaZ /EgUrTuX0APRzY72nbugD4kF4fQcnNhVlihT8Ll6SH6OrzpK67H2ss96bUa5Ot/NXnz7 u+rU2Dy/jbxc1ZRR2PhlR7yHbW+i0BYqv0CT32eJQzKZqz1IggSaLH+4fqLbvq9C3rdp WgZg== X-Gm-Message-State: AOJu0YySiPIaYn1tuP6mp4i4EqHJyhMfVopBhbH2B8462UfAqO7dx5L2 TyUVHo26FgyKlu9BUogna0gew1l0PUnTJwpzo6Mys+IVvSH7iFkcNyYcw8BSOUbd1j/q8X77VU1 xNwY= X-Google-Smtp-Source: AGHT+IF2Dy9d6vzz2IdYpq3J+qZozQ7UBJHX5dXcUBBjv5ahgL9k8fmC2b9ldIozaNr04YCce4UY0g== X-Received: by 2002:a17:902:b197:b0:1ea:cb6f:ee5b with SMTP id d9443c01a7336-1f31c991397mr7704875ad.38.1716348636275; Tue, 21 May 2024 20:30:36 -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.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 20:30:35 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Akhil Goyal , Anoob Joseph Subject: [PATCH v5 13/32] security: replace use of fixed size rte_memcpy Date: Tue, 21 May 2024 20:27:40 -0700 Message-ID: <20240522033009.143100-14-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/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