From patchwork Tue Apr 2 21:50:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 139039 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3FDE643DC8; Tue, 2 Apr 2024 23:56:23 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 380354067B; Tue, 2 Apr 2024 23:55:50 +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 7AED3402E1 for ; Tue, 2 Apr 2024 23:55:45 +0200 (CEST) Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-1e0b889901bso45959885ad.1 for ; Tue, 02 Apr 2024 14:55:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1712094945; x=1712699745; 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=vdd/LdHNOZv0OgU/yOEL8RT/34+Pa/gXTM+9pBDnNFs=; b=0VhA8Y6AIuBzYLNCblhD2s9EJQnk9rgdCQw3OxWkTrZvb8Vz+qcptf+3p271Zyp8lH Iyiv12qo/RIc5yaw1j/GV84XaARVJiy+sKsnUwV6zJ0njclF6Mx/qjUGo0Hch35o9ak6 j/HvF9YytRtQT8kDGisa6qCS3tiEXM0oqLC5EpSv0OhiptAOuVfLzho5kyJJ3NDIRnKZ oPjV+l5C/hKEKbtMKQBT7y1EUY31FzUjYn8+GxUl7laTco3IDurtDKPTW3kVR6F1b3Br /uBsvDwyAITA3k/ylPNamrL9k5yJxr75nXAFuYrmtVh8j1LtoPcifya2C68d1h6WYECr 03SQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712094945; x=1712699745; 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=vdd/LdHNOZv0OgU/yOEL8RT/34+Pa/gXTM+9pBDnNFs=; b=ZtOP1GYSdlJ0bjGexa67xXyPT+nl3sneYnnIXWuLXwsvh2kjZgsLmQ0evV8BBZZPHl HZ6RQAjBJQNZeO86V3IFr3WvxbCF4ZN0HaQlWsuaCzk6iUdz77jl/vz0UIEJ8F64lqGD baDh7w8ADEISMnvo2JnDwMloHuQAKjdPpRIsWSph6tieZanaeGSuOSnKc/4OUIPCMfCV Tlmw/Lxyz6PRoo+x3/86hts7axOB2DYc6+8Uu+tdQ1y739z5NgTzD1oADX5GAWn7ExLs Qr+f9BJw/rOu2BwkdRtJjSnm/S1cUm71y4VGecHitxqlxP+EbmPpYErNsZXHvDiyxAMb dUZQ== X-Gm-Message-State: AOJu0YzdzgvPO4W+SiB3kRQjhjGV1fBqSmYoSUIg9EruL7XX4Ka0RokJ uKTN8NkLKWJ11oYVBzuVf88JMOTFAd80sg5GrlbZ56BP55DFmExwljCH/SDtw5CVVHwD1mWzsYN b X-Google-Smtp-Source: AGHT+IHgxSnxNBEHUJN6JirjI4A7YD6FPTFLkSLP370Lr1L/kZfWxxZ9fPuH+hFwOz1wMuJDUyeu9w== X-Received: by 2002:a17:903:2ca:b0:1e1:a54:1fe8 with SMTP id s10-20020a17090302ca00b001e10a541fe8mr14271437plk.53.1712094944634; Tue, 02 Apr 2024 14:55:44 -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.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 14:55:44 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Akhil Goyal , Fan Zhang Subject: [PATCH v3 05/30] cryptodev: replace use of fixed size rte_memcpy Date: Tue, 2 Apr 2024 14:50:21 -0700 Message-ID: <20240402215502.278838-6-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 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 886eb7adc4..1377777525 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]); }