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 9059443C12; Fri, 1 Mar 2024 18:24:06 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2E646434DB; Fri, 1 Mar 2024 18:18:34 +0100 (CET) Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) by mails.dpdk.org (Postfix) with ESMTP id 9125A4345F for ; Fri, 1 Mar 2024 18:18:03 +0100 (CET) Received: by mail-pl1-f179.google.com with SMTP id d9443c01a7336-1dcafff3c50so19854395ad.0 for ; Fri, 01 Mar 2024 09:18:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709313483; x=1709918283; 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=fSqPyec4CONQ6KlWxsKNBqbhoyQg0bqoiNujRlP+HRGNpUvjgby3pM28+81czzteYX hHmqpUOY6WhleSGUBifnUHUMTN9qvB++fjMmfmSz3NQDB/AmUvswywmQjvFZu43idTWB cc6imzlF2Vck4BL1yYK2uuqomx3BtLums/mXYRQyd/JGX5OFaBHJ1IxkbgUCnGlUxQ+P 0N4JmABr31dsQM9iNeBU5EdsDTcbdOTp5sy6x0+qkyEfkNcqZAUv/pzdRuphg+8zKslG evcxSHIpbHb/I+gusoEgU3UN/nFCkC98ilst3l840KdcAzyZTecUJEbikz1r52VsK6zw +Jwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709313483; x=1709918283; 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=HhiTk14exYGvdfuhRs5pidKYe70BGhRv4DFjTWN+VPJGkWsusrnE5tU09/ulWq6cZb wD3YoXI3l2H7AWNW/H9sl88wegqKd65tC8ixofHSSJiuuzCOWr6fGD5DFhuuHisL+D9O +R1Z2bhqBAQVBpDbUgGyva/P/9Dx8woYOhoL2Kst6ihaGGokvUNRRvW/33bQWLYvSapg 6ZhMSj6pLUCN9dCqaZ3jAcbm2vyaEjICr1ngB2OHYw5LoLJlx6vC8gfG+HVSxy7Rs+Y7 ksD9G3pa20cGE87WQyFDnYzrmpqxJM/HJtfUNzJlz7NhCJ5gWXOr7ExB92VZZReuUyMY RdSA== X-Gm-Message-State: AOJu0YwK8dzvUIqHOdV9mXc+8kgu9yD3Ky3kNQYtrFXYz/7VAvh7Fdwl iAPliUTHPSioCLGwJ8yolrZuNIkKLCRkQTY5PmCEhWqP4PwF1KPnM2Qnu8NSY63sGzhsEp+BJ3u uZXFZlQ== X-Google-Smtp-Source: AGHT+IFvB0IQRwoSllztg9lPWgVkXsECfY9h3rf/Djz/uSYo1ftzGWu5GcyBMQP/UVEKRK/liTB1Sw== X-Received: by 2002:a17:902:cec1:b0:1dc:3517:1486 with SMTP id d1-20020a170902cec100b001dc35171486mr2584911plg.49.1709313482859; Fri, 01 Mar 2024 09:18:02 -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.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 09:18:02 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Yuying Zhang Subject: [PATCH v2 58/71] net/cpfl: replace use of fixed size rte_memcpy Date: Fri, 1 Mar 2024 09:15:54 -0800 Message-ID: <20240301171707.95242-59-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/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