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 E85A543BAE; Fri, 1 Mar 2024 00:00:38 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 17FA2432A0; Fri, 1 Mar 2024 00:00:17 +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 BDF9243067 for ; Fri, 1 Mar 2024 00:00:02 +0100 (CET) Received: by mail-pf1-f169.google.com with SMTP id d2e1a72fcca58-6e4d48a5823so1310421b3a.1 for ; Thu, 29 Feb 2024 15:00:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709247602; x=1709852402; 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=C7kfBD3djBUDJJFpAGOmlkIh8y6zpuH5vxwEnCxBnrw=; b=GShHQn8MNWxqB9GRCjNYFAWVu9mW23OHQFV0XQPyX+VSxBnKdEyWMhw/L76vY7P2j6 vTd4CKbt6T09f2xuuUeSNJBQO550wBFGpm4/TP0IKq6qJHDfBHEm7WMoMdT7OXuWpq+m qqqrKEQTK9C+YUACYPD0jiVVJp45ObEyqGpf1mv1X22znB0x99OlNk6M+E4PpKTR8CX+ qcxtqrWkK8oJwWiL9+GCaFee+/Ql3Xy1ux1k0mhzFRJ38gTMnuRhsKhxXl66zgueoFm0 RW41y8RNizMDen99lCWMr/BVXZRNiQtg4LPV3GEPgppuZVGznO5LM+e3iPiQoPOZHm8e JRCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709247602; x=1709852402; 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=C7kfBD3djBUDJJFpAGOmlkIh8y6zpuH5vxwEnCxBnrw=; b=FrNoNdl4QYAd60/8LB14Nv/YfuupOwYDuN+Q/PsdVwywua5uDRwY26ELvKDyOrlEG6 ikwplq96LkEE8lBiKbLeJi6AWwU+qVDvGcq7LSBoOVI3yRoNamDg9s4CbacOrl6JKKm2 mB1HuaQyCIIf60pk/l9sNP+ziMghVs7Mb/ws7ZuSnKgfJ5dGqruDrq0C1hdyfinJojDJ DkLfXKqGK8EQ4gAYUNFF3gtI57jW4xY0RDNDpY+2aF1+HXtDhwfkTkewz1Oezsi4QvYx yzoOdsOmJi+rTqshNg1gyHpkQS/a+ZODr0leaJ79PHLkHI18b0WTb0u6JLT7NmDnUB3l YHGg== X-Gm-Message-State: AOJu0YzL7rHXGmO/lchMJB88J9CX9leafqcND+/0gedcDcQoNhJenH/W g4MP45IDrPcnOJVJE7OvFl/fGSmMn/VhjXXPwUy6tkoR0EytguGbL57Ofw1+eJZaKVuL+Myef0F l X-Google-Smtp-Source: AGHT+IF7e9drKg0LR/nlTPlzaUXHvxBdXumqpjlg/8vURMPFtJNf3cw/g4oLoJ0dKLb7LDaVqEB0mw== X-Received: by 2002:a05:6a21:1743:b0:19e:ce54:4731 with SMTP id nw3-20020a056a21174300b0019ece544731mr4707076pzb.50.1709247601842; Thu, 29 Feb 2024 15:00:01 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id l22-20020a17090b079600b0029a8e5355fcsm1965578pjz.53.2024.02.29.15.00.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 15:00:01 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Akhil Goyal , Fan Zhang Subject: [PATCH 05/71] cryptodev: replace use of fixed size rte_memcpy Date: Thu, 29 Feb 2024 14:57:52 -0800 Message-ID: <20240229225936.483472-6-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240229225936.483472-1-stephen@networkplumber.org> References: <20240229225936.483472-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 886eb7adc4a9..1377777525dc 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