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 E024D43DC8; Tue, 2 Apr 2024 23:57:31 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7948840DCB; Tue, 2 Apr 2024 23:56:02 +0200 (CEST) Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) by mails.dpdk.org (Postfix) with ESMTP id EA34D40698 for ; Tue, 2 Apr 2024 23:55:52 +0200 (CEST) Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-1e034607879so45946955ad.0 for ; Tue, 02 Apr 2024 14:55:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1712094952; x=1712699752; 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=BMbk26AMIq+ulk5JfGqTYDZFhAAAzze5x6rNeNdmPFUBezDeiSYXh+fj3xD+UAMCR2 q4FzpMgtSJeNnmJxj/KByt/0BoAFSdNlGsBrzRrmyQtYrN2fpieE2htKkSMW0Dd2jd8R qQlfhWKSO0sAEXYIAyo1E4M17sSEyJ17bL3hcAzig6Gbsla19XpWKlbSQ+Eoxb/rg/Sd /KYiW5CAR03NmglJBHkyt26BRVjgf3U84McNqvY8A0I/3evzXqJOcYu1bjWovVLAIyVw bwOfFonguRX62MhZvhwCm5pZ7MYFH7PkgkJF9UACbITjTFhUKJQRDjNaA57VpxeGfbs9 vlfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712094952; x=1712699752; 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=mY+G7LHRmdzuXaK5IhOYf2lWO0nK+Xf6DRsHx3BIZUaHOxeJa7PMzolQc7ktE08mbZ nmaldQ4i0wiPSr3U2rYu+RR3TLX15BHfZj0p+2DUX2/LbXDof/zQUCU0VnSC6zGAaqwo +9Yl3xgYWsfrawS5OQ5tiLGPcY18HnEzPIXgVUZ6Uu5aHU2dYVyhCsoL8ZzHMEk8YYrM fdyG+PHmk4+iycUovanjF8bmR/zmRrYvpoIpnCfyYa0zcF6pSulyHK6HmHsWHWR72ayV 4kyy0cS4jKGXp1U82VDkRJS1QIYSD+2HRHD5fqW1muKuWqUpkoihLEe9tz73XOM4q+zc VG7w== X-Gm-Message-State: AOJu0YzY4C0yQ4AJzlkKBvbVBEXQUxUPvTn5/ikBr59cWpCBQFTTK+c1 9BbLSDkqa06zZbB4cDbPQk30jnooVXVfXIx7GuD/W4VRJ5q9HjAX3xQkdyZVj0Kp0SgumPalaRS x X-Google-Smtp-Source: AGHT+IGBZ4jRcTGdHS8tSZs4yuDEGq4BE6BPtZBnDdf5/f4mVnRFNr9oYqzPpUW+M5FjYa1vgS3S2Q== X-Received: by 2002:a17:902:f645:b0:1e2:8664:2a28 with SMTP id m5-20020a170902f64500b001e286642a28mr2202807plg.37.1712094950703; Tue, 02 Apr 2024 14:55:50 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id x15-20020a170902820f00b001dddf29b6e8sm11609381pln.299.2024.04.02.14.55.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 14:55:50 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Akhil Goyal , Anoob Joseph Subject: [PATCH v3 13/30] security: replace use of fixed size rte_memcpy Date: Tue, 2 Apr 2024 14:50:29 -0700 Message-ID: <20240402215502.278838-14-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240402215502.278838-1-stephen@networkplumber.org> References: <20240229225936.483472-1-stephen@networkplumber.org> <20240402215502.278838-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