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 85F1643C12; Fri, 1 Mar 2024 18:21:37 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 789F443421; Fri, 1 Mar 2024 18:18:05 +0100 (CET) Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) by mails.dpdk.org (Postfix) with ESMTP id 01C81433DC for ; Fri, 1 Mar 2024 18:17:45 +0100 (CET) Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-1dca8b86ee7so22451265ad.2 for ; Fri, 01 Mar 2024 09:17:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709313464; x=1709918264; 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=jMz6Ftr4nvMxG1R+xSaYh5MuIJeioqEvkK0McRnF6d6wrAwfwm2+2G93dOzKNdRQg9 0DPv3t4/jT2GY0juHMMM3kGIM5Cc1IAYaZ2Ow0hTX2k4uYtcQQDj7NmJWrDGs1IK5XzZ 7vRGlrwJkM3EAbJtZEcJK6wAEIZOGOnIKxNfQHmx5+0TOpkKHnr4iVeCDsfIEpFnJv7Q LrMmrldxWw32/gC1GjNVUysunRT1ED+rOur5q5HtwgSkclNsG0Z6X8ovHlxszpYkVYlg L+wUImmDgS+YsvZaLyzDRgZcz+/Q71FYCbH3Nn5cTcaCjE8z18GgppBlkBxecZMEIfQ/ aLhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709313464; x=1709918264; 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=Ce8EIF0qbUbo6M5sMGgn/CPpSki9QB8+0MkSYaAl1owf7NBddnMyaR1UjEhMJGt3eQ UmWwgIZH2eutXkcVFEfVR+sgs3ZS6uRKuILeh29eKOovhBttXLqWoayIOdEHs15Rq7Xm tdQxvWM9SVAnvE5S8zHCRjTdp3JpeOJd/YhaniigDqvrheX12vlftCO7HrSk+eR50ICb 2yJKCAOOUtk1Gmxmifrz30+TG8Mq1K2ZTX80yXZChrbIbBUJR/ehYLNDRwfmZiwF03Iv jEpFxhJTnb6w53wRa0GNIrrTsfiZ7x+UTfWNrvaWwmosHywQrjysBXYfo5XTKnCxSLt5 zNrQ== X-Gm-Message-State: AOJu0YzcRZ0qM5jTAsUYvYP74+f9THOLWjo/rcpmjZ48//C971/gHcHf 2LgemRiToFI4mjTu8GawXoeDQNsKgA3CTLcaEVhZIBIixue29jzme9MVTjQGX6PpP75d/yoEB+b Oz/+8lg== X-Google-Smtp-Source: AGHT+IHCsH6dGZ1FiqEVpVBM1a7SizrBI1L5FMAZh/Xu5ZdL1n2H8acP9A6zwamIwFBE/FUnayIHNg== X-Received: by 2002:a17:902:868f:b0:1dc:a82f:c6cb with SMTP id g15-20020a170902868f00b001dca82fc6cbmr2102786plo.16.1709313464240; Fri, 01 Mar 2024 09:17:44 -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.17.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 09:17:43 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Jingjing Wu Subject: [PATCH v2 35/71] common/idpf: replace use of fixed size rte_memcpy Date: Fri, 1 Mar 2024 09:15:31 -0800 Message-ID: <20240301171707.95242-36-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/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