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 EE97F43BAE; Fri, 1 Mar 2024 00:07:28 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0F71343436; Fri, 1 Mar 2024 00:01:59 +0100 (CET) Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) by mails.dpdk.org (Postfix) with ESMTP id 76EA643306 for ; Fri, 1 Mar 2024 00:00:50 +0100 (CET) Received: by mail-pj1-f48.google.com with SMTP id 98e67ed59e1d1-29a8911d11cso1031037a91.1 for ; Thu, 29 Feb 2024 15:00:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709247649; x=1709852449; 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=5nmo9BK1Og/gZ6s0zOgoE7yxSApmEIe1cya3yqZhKEg=; b=X4gRR8+JuCSw+btVZsL+KaG4vlF6Wd4AwHZeVdfxaTYLeC1Gw1Jh23slj9lnldQ6h/ j+VpHqe5pryS6Aw9lSzBGdXjc4ildNBeSl2E33B0nWTeTqDr1a8IQcPAOmVno4SkmpV7 MFGAmN7QZ7AOEDv4NPCOVB/+MlYeONNvhQreIBZRZVS16ZIIpIQ6QklbitUWWilrknyz 6+VKrZN2RHb9d0mKcsc3jVN+5XFlggpPZf+O5e+LaLWzeP8IbxYKSQ/3meOw9hwQ0wMd 42/O2gbO1FODwrb7Z8uq3SfW4TvAaSucpU2qYlODmQkNTunDYD0RYrot6DRZapecrE+e eNIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709247649; x=1709852449; 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=5nmo9BK1Og/gZ6s0zOgoE7yxSApmEIe1cya3yqZhKEg=; b=K3tOXiviVy5a6qGH2GrKBMs1iCC/TpWQPUMsOsRyiwd7JXu6jvbq9EWtP2s5D2jhHv 7wUr6N28f5FsRRDb32tlIHNJuxzMXsEaIsJ8IYclS75kBwa13D98uWqeLiTl06qncI0U BA6b1y8KfTtFinif4iUBPoqo3PbpJOiYQ/JkPt27GJy8eeQujr473lb/G2Vh8y2X3B5p pijs0mkUusRG9zeO/n6kdFFqDj5PeYF1oiB6khuX16hOnVH3uUqCbBgWGUjgxZ3ZiYe6 w3ZtGmQ6G84Gtsi1XODM9qMTKiuw12N/23PKefyngboyfgSIbumYXjsbzL8Y7zJAG8XM ctJA== X-Gm-Message-State: AOJu0YxXKw2GEEHbJcvLfX+/EppmqL5OWQkvvQKl4bx0SJ+ip76L0IVl oBygCa3di6DkmndjcYf4dtgvuI0p6EyPGMt6a4BlA6obwfrrSg5yKRocLHMINzffmiQQXFbRvV4 n X-Google-Smtp-Source: AGHT+IEpXRzS577SQTncmM/XxTwJlemk3AVzONQqEGH/7p881ElNT4r4+2v5lokLJX/O5mLzkrlRDw== X-Received: by 2002:a17:90b:60b:b0:296:416e:ce88 with SMTP id gb11-20020a17090b060b00b00296416ece88mr18938pjb.49.1709247649506; Thu, 29 Feb 2024 15:00:49 -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.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 15:00:49 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Yuying Zhang Subject: [PATCH 58/71] net/cpfl: replace use of fixed size rte_memcpy Date: Thu, 29 Feb 2024 14:58:45 -0800 Message-ID: <20240229225936.483472-59-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 --- drivers/net/cpfl/cpfl_ethdev.c | 3 ++- drivers/net/cpfl/cpfl_vchnl.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/net/cpfl/cpfl_ethdev.c b/drivers/net/cpfl/cpfl_ethdev.c index ef19aa1b6a96..1037aec68d2d 100644 --- a/drivers/net/cpfl/cpfl_ethdev.c +++ b/drivers/net/cpfl/cpfl_ethdev.c @@ -2292,7 +2292,8 @@ cpfl_adapter_ext_init(struct rte_pci_device *pci_dev, struct cpfl_adapter_ext *a strncpy(adapter->name, pci_dev->device.name, PCI_PRI_STR_SIZE); - rte_memcpy(&base->caps, &req_caps, sizeof(struct virtchnl2_get_capabilities)); + memcpy(&base->caps, &req_caps, + sizeof(struct virtchnl2_get_capabilities)); ret = idpf_adapter_init(base); if (ret != 0) { diff --git a/drivers/net/cpfl/cpfl_vchnl.c b/drivers/net/cpfl/cpfl_vchnl.c index 7d277a0e8e83..e914014d8a9b 100644 --- a/drivers/net/cpfl/cpfl_vchnl.c +++ b/drivers/net/cpfl/cpfl_vchnl.c @@ -32,7 +32,7 @@ cpfl_cc_vport_list_get(struct cpfl_adapter_ext *adapter, return err; } - rte_memcpy(response, args.out_buffer, IDPF_DFLT_MBX_BUF_SIZE); + memcpy(response, args.out_buffer, IDPF_DFLT_MBX_BUF_SIZE); return 0; } @@ -66,7 +66,7 @@ cpfl_cc_vport_info_get(struct cpfl_adapter_ext *adapter, return err; } - rte_memcpy(response, args.out_buffer, sizeof(*response)); + memcpy(response, args.out_buffer, sizeof(*response)); return 0; } -- 2.43.0