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 17BD043BAE; Fri, 1 Mar 2024 00:04:26 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C4B8843390; Fri, 1 Mar 2024 00:01:21 +0100 (CET) Received: from mail-pg1-f169.google.com (mail-pg1-f169.google.com [209.85.215.169]) by mails.dpdk.org (Postfix) with ESMTP id 40BF6432BC for ; Fri, 1 Mar 2024 00:00:30 +0100 (CET) Received: by mail-pg1-f169.google.com with SMTP id 41be03b00d2f7-5d4a1e66750so1082186a12.0 for ; Thu, 29 Feb 2024 15:00:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709247629; x=1709852429; 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=ZKo3GX8T9YEP25rIsWFSPZg4wU3SDSgtwfmRWuCrJao=; b=VFIJQE2dk1uyhDsVT8rsQt/b9mldUSEUePND4d4k8f2UKv0ntFyu/+KyEHWEAEyHz2 6XgHUv2tvukafsbPfbmbV0lzQv9MVjGNtmvHdXY7vEYfk9PCFYzMM4uazjFOVFHBe1ME dbcjEKH7yY+1hl2u5EIQ1eBvToNS+yQrDumb1yjZpEEK1BKcfDSL94lpStQ/ZIJ5SeRk NCIwM3RjyZKM+4Z2M1j4ubLFqiCa5IGnWt99IuVP8X7ftKedEKbmm4omJrMDyvq2yYPJ A+N1cpy4n/p8SY6SOdSGjkUNsafOsr8EF4tclhgC8WJQ2ojF0WSQnVX2xQGFis/ppQiz JXww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709247629; x=1709852429; 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=ZKo3GX8T9YEP25rIsWFSPZg4wU3SDSgtwfmRWuCrJao=; b=fvBesukhzUFOXo/Bv87ha6a3yro+VeT2w3dWoyZQFixpp1R+w2ZZ/rqO5gw6E1D5gM rFHP+qWCunTr5w02D8ysI0f7So529LtqhKOq+nlpVYJ1pxUl/gbqP4WHSp2rsF6pbVJF CCXdXG3rvLNMAHPaR7Rlgb6mHm0/ytnMICaGfXjBoUDYOXDWcEL2/WgFMsTA+BfzTV5b J/ltpJrRU3N6xOPKxhwfaZJDvl8Qur/EixXYEAsZWBwGtABtC9IQfDrTo+HlaOnzUrfg b4Ie46y9SNLwdRNVnZIgrf94VbpLAQ7Y412bolbtqasCcAI5OYdkWbEUYO4xoG8bkBcH 4r/w== X-Gm-Message-State: AOJu0YzhvfuUuIDLDqIg1uvT0CwzFbMOhFDXsB2+fXiYjakE5BYAj0h8 mj62ixsqhQiPpRMwqIl9DXR/EQmjsi96iwn7kmupEkCfl5oiPV1DW19LbgqU+ZkzXUK0OCyFqOU Q X-Google-Smtp-Source: AGHT+IFQ9Soj06aaBm1ZYod5wv04pWc4aVSDJT0hegLmxCm6TDZZk+LNDbGHXOksTh8oI8ZVS3T05w== X-Received: by 2002:a05:6a20:8d07:b0:1a0:cd54:6d9f with SMTP id q7-20020a056a208d0700b001a0cd546d9fmr2931451pzi.23.1709247629349; Thu, 29 Feb 2024 15:00:29 -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.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 15:00:29 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Jingjing Wu Subject: [PATCH 35/71] common/idpf: replace use of fixed size rte_memcpy Date: Thu, 29 Feb 2024 14:58:22 -0800 Message-ID: <20240229225936.483472-36-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/common/idpf/idpf_common_device.c | 4 ++-- drivers/common/idpf/idpf_common_virtchnl.c | 8 +++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/common/idpf/idpf_common_device.c b/drivers/common/idpf/idpf_common_device.c index cc4207a46e5e..2cb66371c4bd 100644 --- a/drivers/common/idpf/idpf_common_device.c +++ b/drivers/common/idpf/idpf_common_device.c @@ -459,8 +459,8 @@ idpf_vport_init(struct idpf_vport *vport, vport->num_rx_q = vport_info->num_rx_q; vport->num_rx_bufq = vport_info->num_rx_bufq; vport->max_mtu = vport_info->max_mtu; - rte_memcpy(vport->default_mac_addr, - vport_info->default_mac_addr, ETH_ALEN); + memcpy(vport->default_mac_addr, vport_info->default_mac_addr, + ETH_ALEN); vport->rss_algorithm = vport_info->rss_algorithm; vport->rss_key_size = RTE_MIN(IDPF_RSS_KEY_LEN, vport_info->rss_key_size); diff --git a/drivers/common/idpf/idpf_common_virtchnl.c b/drivers/common/idpf/idpf_common_virtchnl.c index 6455f640da25..96232c29d64f 100644 --- a/drivers/common/idpf/idpf_common_virtchnl.c +++ b/drivers/common/idpf/idpf_common_virtchnl.c @@ -294,7 +294,8 @@ idpf_vc_caps_get(struct idpf_adapter *adapter) return err; } - rte_memcpy(&adapter->caps, args.out_buffer, sizeof(struct virtchnl2_get_capabilities)); + memcpy(&adapter->caps, args.out_buffer, + sizeof(struct virtchnl2_get_capabilities)); return 0; } @@ -331,7 +332,8 @@ idpf_vc_vport_create(struct idpf_vport *vport, return err; } - rte_memcpy(&(vport->vport_info.info), args.out_buffer, IDPF_DFLT_MBX_BUF_SIZE); + memcpy(&(vport->vport_info.info), args.out_buffer, + IDPF_DFLT_MBX_BUF_SIZE); return 0; } @@ -387,7 +389,7 @@ idpf_vc_queue_grps_add(struct idpf_vport *vport, return err; } - rte_memcpy(p2p_queue_grps_out, args.out_buffer, IDPF_DFLT_MBX_BUF_SIZE); + memcpy(p2p_queue_grps_out, args.out_buffer, IDPF_DFLT_MBX_BUF_SIZE); return 0; } -- 2.43.0