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 C772943C12; Fri, 1 Mar 2024 18:19:01 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9468C4338C; Fri, 1 Mar 2024 18:17:36 +0100 (CET) Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) by mails.dpdk.org (Postfix) with ESMTP id 6DB54432BC for ; Fri, 1 Mar 2024 18:17:27 +0100 (CET) Received: by mail-pf1-f169.google.com with SMTP id d2e1a72fcca58-6e5a50d91b4so1803231b3a.2 for ; Fri, 01 Mar 2024 09:17:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709313446; x=1709918246; 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=f7ShVjOP7v3RAN9c6QxL/R4mkZ6ArXruvMZ0jTEazuM=; b=k+Ey1YmpGWTEY3nG2fEMO5e5eqwvxKB4xZ+pQNDv50kR51vPzDV+7iNTtys1PATWDL 6gWvKvwBW+72ixHDwok9LcF622eICgf2EPCYZ7FT4MHJTVnOTCwXRpgKizZVxVXSKWZm SDSRho8zDFo0Pee76mMUVnd73OqZjPBjs6E9p1Z9+wPv8b5+AyHr81/Gz9aVSgv5ySv9 97okd947ZxTgE8WrqBp5kzRwUz3jyj7QKBguqDuTvlg0hXj6UGdK+iY3xRW8cV47RO1Z F8tJOJz78COnflsRe07F68m9vaUzMzJ19+kAGHuvQpmCpaEIkJkTv7qP/7a+h/styzwY Ullg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709313446; x=1709918246; 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=f7ShVjOP7v3RAN9c6QxL/R4mkZ6ArXruvMZ0jTEazuM=; b=GnbKJVuV5yWXhr/xv6GU4Uh0mwVP6QAHjeLdgdIHPoYwsYNN4bx86CwacXjemNFks1 R/YmS2/PuQwNQNl1aXF0HgJQo4N0hzKR2KmjHRgPF6RjVO3TAEhamgPax6fj8mY89jch 1+4a4UagDrgAO0BRYtvS3Oi6ih0vQds+7/EO24KGH11MxXGq+ht9vmW+xqOQQVH8icyh qcffUr5XA8OJstUy8sgzBTNh4YjaMnXJoOMDfdzozxvj+lDkIvbGR9Yb+wWIIN+stG3t fu2rbu90FpJhMhT357fC5fPLQgold3aHo+fqSoPJqyTwoMpIEgfO5b83joM0gOGAXzmp UFqw== X-Gm-Message-State: AOJu0YwrunERl6oZTwmxtHYM7HtihTx/3CQmzr1F1h6K+GRoeFR3bd31 HSRM6MLIYMNTRIpQG7DrAG1QaRlr9bHSAb+2MOlyejZqnVURGOIv5ONZLqnrrQTiww5LTwW28F0 /Pzu/Uw== X-Google-Smtp-Source: AGHT+IFgXesCztuur5Q4eEIbOKwLkcw7b55oKx1Oa4EW9+mUgjEa2ksxcU3Lu0Bs7myv22HTfO5bAg== X-Received: by 2002:a05:6a20:da8a:b0:1a1:3812:aa29 with SMTP id iy10-20020a056a20da8a00b001a13812aa29mr2394274pzb.7.1709313446747; Fri, 01 Mar 2024 09:17:26 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id j14-20020a170902da8e00b001dc8d6a9d40sm3695764plx.144.2024.03.01.09.17.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 09:17:26 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Akhil Goyal , Anoob Joseph Subject: [PATCH v2 13/71] security: replace use of fixed size rte_memcpy Date: Fri, 1 Mar 2024 09:15:09 -0800 Message-ID: <20240301171707.95242-14-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240301171707.95242-1-stephen@networkplumber.org> References: <20240229225936.483472-1-stephen@networkplumber.org> <20240301171707.95242-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 e5c862f5f570..28d59ef38831 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