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 8BB6043C12; Fri, 1 Mar 2024 18:24:33 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 18DEA434F2; Fri, 1 Mar 2024 18:18:39 +0100 (CET) Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) by mails.dpdk.org (Postfix) with ESMTP id AB4B743464 for ; Fri, 1 Mar 2024 18:18:06 +0100 (CET) Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-1dcce5e84bcso21119015ad.1 for ; Fri, 01 Mar 2024 09:18:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709313486; x=1709918286; 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=JOANpzi1ifQoaA4VhE1b6CgmCmpwuT76cyLQX4CJIYs=; b=XfMAPm+KiAsaPteIppZF4yFuc0CNful3sotoS2SVITtuYBElm+JvU7BUqsBAxbYpGt IdFFUsWAEa5sXp1DLJ/RWBh8hrIVHzWfMxaHB0/vZcQCJzwwCz3KWdZ7Ar5ep/O2qNn8 OlMoxZ02M+hacV3k53tGycq9lejnblgUJCWcJeBSdHBC5ViEPAbrWe5JQSNyAZASEsqY XVBYNgk+aAVdEdLLe6zv+GUdYQF8xE5VBrD0x3KWGlU0/Va0Qn/eNgEXmJi4lHSNJ1r9 ltu99kT6/ciwAWtsgZiLmwRr68t8qQa9oroHp3+dLEpMMvWggCZ9x1Dnpkkz6cVaieFh KveQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709313486; x=1709918286; 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=JOANpzi1ifQoaA4VhE1b6CgmCmpwuT76cyLQX4CJIYs=; b=jUWNUviZA/HhlEglDMJluxK9uNgSyHwnER34aD3rKthPGU0zQYNDMPPEAIga3N2T7W DJpeoBTVl0LKWjOtSSjXbv7RawB2mRLvUJPMiuouqgJHup1TOvAW8faryC+PZQOhQuJF JFFg9gp8nf9rCjNUvkDIAUpSecSP4DZGu6rrbzRn5vNyoCNXEVObFxA261tLm8IDL9sh ulZY1hpPatnVt4PTwN1awhIuS+uT1xPS/Q5HEFOLsZI/0r9OEvDQAY0t4eCU1NpcFlk6 nm9EgmmkcbSCUhrj6pTt8h7C+4cVKdedSmiIaKdygoQRw/T+KLVo/ciQbp0hZN1RN/66 t4Ow== X-Gm-Message-State: AOJu0Yx2UvbbCyUuF+BCzB+ltPcGU7/z0Jrt4of8C05XLqkOuY4hV9ks fmbN5HBT6a8UBExd2H3In90twJFBwDU/A+6KSPlRJT7d5IBrWmLmyhOP5GACJvUhgcMS98rCph4 1hvkwPA== X-Google-Smtp-Source: AGHT+IG6ROi5KbJjmXBHgTIwhfml//DxYjgT2iJO/JjYwxWCI2RbP8vp7oq2tJ5llQYS0U248I7TIQ== X-Received: by 2002:a17:902:d489:b0:1dc:d6ba:ed4c with SMTP id c9-20020a170902d48900b001dcd6baed4cmr2670138plg.2.1709313485940; Fri, 01 Mar 2024 09:18:05 -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.18.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 09:18:05 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , John Daley , Hyong Youb Kim Subject: [PATCH v2 62/71] net/enic: replace use of fixed size rte_memcpy Date: Fri, 1 Mar 2024 09:15:58 -0800 Message-ID: <20240301171707.95242-63-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 --- drivers/net/enic/enic_main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_main.c index a6aaa760ca91..a940c160c9f1 100644 --- a/drivers/net/enic/enic_main.c +++ b/drivers/net/enic/enic_main.c @@ -1221,8 +1221,8 @@ static int enic_set_rsskey(struct enic *enic, uint8_t *user_key) /* Save for later queries */ if (!err) { - rte_memcpy(&enic->rss_key, rss_key_buf_va, - sizeof(union vnic_rss_key)); + memcpy(&enic->rss_key, rss_key_buf_va, + sizeof(union vnic_rss_key)); } enic_free_consistent(enic, sizeof(union vnic_rss_key), rss_key_buf_va, rss_key_buf_pa); @@ -1243,7 +1243,7 @@ int enic_set_rss_reta(struct enic *enic, union vnic_rss_cpu *rss_cpu) if (!rss_cpu_buf_va) return -ENOMEM; - rte_memcpy(rss_cpu_buf_va, rss_cpu, sizeof(union vnic_rss_cpu)); + memcpy(rss_cpu_buf_va, rss_cpu, sizeof(union vnic_rss_cpu)); err = enic_set_rss_cpu(enic, rss_cpu_buf_pa, @@ -1254,7 +1254,7 @@ int enic_set_rss_reta(struct enic *enic, union vnic_rss_cpu *rss_cpu) /* Save for later queries */ if (!err) - rte_memcpy(&enic->rss_cpu, rss_cpu, sizeof(union vnic_rss_cpu)); + memcpy(&enic->rss_cpu, rss_cpu, sizeof(union vnic_rss_cpu)); return err; } -- 2.43.0