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 579DA43C12; Fri, 1 Mar 2024 18:19:21 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 18DB543389; Fri, 1 Mar 2024 18:17:40 +0100 (CET) Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) by mails.dpdk.org (Postfix) with ESMTP id 2D0894334D for ; Fri, 1 Mar 2024 18:17:30 +0100 (CET) Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-1dc0e5b223eso22794755ad.1 for ; Fri, 01 Mar 2024 09:17:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709313449; x=1709918249; 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=GEbsLnLgcuyzMnZrYqny/7Ykl6Zj5T6JhoXq2O6L540=; b=FjyaXwrX2JP7M9UcnOITeMbmDZm8dtjAHPW/xnSdWt5iC82jfaIsoUSAgnZOq9IBaa RH1cZGqZitZdQD0iDKqUb4Fjm9RYaFJeqiMPvabUBDgeu0OzunZHmVMQkcv96sYTzUBG Vl/fGEyqx+8u2W1Bc3qaFwuybTzBzdvko7qdliq7PW0NhZ5c4O6BFmXpJtm3KCXK6hTo S3am9Ey8k3WIcIhaDx5IiNl3v01iork/oujJb5BMrqlYsqB2fDH3nXZt5wxT5PPyirZ7 jg9MG+pzddY6mIWY8jbo2viYy/lNF/+o3EDNv64mcC1xSO6YUn1q74mhxpPkG9x1Mon4 l4sA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709313449; x=1709918249; 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=GEbsLnLgcuyzMnZrYqny/7Ykl6Zj5T6JhoXq2O6L540=; b=SdBIq/jvz+cnloYKiVZe729RVdFsKYe8k3MLx25L+xafryKmm5yv/mCz5SfkG6WRyQ u2snVeEUiS+aVdmNbCwuc4CZAh6KzsUsKnvlN5NnAKC17okWW6A/3gGqgFMd9GMyXj/j JX0xcoGM2v7rA6BXfPkbBc2xozz00xuBSVfvY9KBFDp045FjrWU+NtN6CxzzCa+q3TKd cV6SIe6HilIAr4zoxFxwqkLHAV6DqWVijJH76ucJpb2xtstHeT78bRceZcIoEBQsbozU wNqqedQIQFTslhT3q6eKfBjbGqcJGSt08cCp/2Lome3MQWbRFrkNUVChIp2vAuJuHT+A n8Qg== X-Gm-Message-State: AOJu0YynSQOhj5hntA8gNwlnYZ7QzlON9audE3z1lyxN813sP+Mn+ECd lfTOPnR/3L78E82F76XfzCV9JciPFo53in3HLQp7ZjAnukZ0Ocb9+RKZsTNz+8XbIxSt/b0PUmE anLUTAA== X-Google-Smtp-Source: AGHT+IExrb6jv4rJbviiYLAJZ1DcHinnjfQD622Sjmh0UbuYuaVw3sn5wmSaI0mZUQibBAAItVgGwg== X-Received: by 2002:a17:902:a384:b0:1dc:4a90:b87d with SMTP id x4-20020a170902a38400b001dc4a90b87dmr2073505pla.66.1709313449378; Fri, 01 Mar 2024 09:17:29 -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.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 09:17:29 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Jiawen Wu Subject: [PATCH v2 16/71] net/ngbe: replace use of fixed size rte_memcpy Date: Fri, 1 Mar 2024 09:15:12 -0800 Message-ID: <20240301171707.95242-17-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/ngbe/ngbe_pf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ngbe/ngbe_pf.c b/drivers/net/ngbe/ngbe_pf.c index 947ae7fe942a..48f578b06626 100644 --- a/drivers/net/ngbe/ngbe_pf.c +++ b/drivers/net/ngbe/ngbe_pf.c @@ -347,7 +347,7 @@ ngbe_vf_reset(struct rte_eth_dev *eth_dev, uint16_t vf, uint32_t *msgbuf) /* reply to reset with ack and vf mac address */ msgbuf[0] = NGBE_VF_RESET | NGBE_VT_MSGTYPE_ACK; - rte_memcpy(new_mac, vf_mac, RTE_ETHER_ADDR_LEN); + memcpy(new_mac, vf_mac, RTE_ETHER_ADDR_LEN); /* * Piggyback the multicast filter type so VF can compute the * correct vectors @@ -369,7 +369,7 @@ ngbe_vf_set_mac_addr(struct rte_eth_dev *eth_dev, struct rte_ether_addr *ea = (struct rte_ether_addr *)new_mac; if (rte_is_valid_assigned_ether_addr(ea)) { - rte_memcpy(vfinfo[vf].vf_mac_addresses, new_mac, 6); + memcpy(vfinfo[vf].vf_mac_addresses, new_mac, 6); return hw->mac.set_rar(hw, rar_entry, new_mac, vf, true); } return -1; -- 2.43.0