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 CAD8943BAE; Fri, 1 Mar 2024 00:02:14 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F00984326A; Fri, 1 Mar 2024 00:00:55 +0100 (CET) Received: from mail-pj1-f53.google.com (mail-pj1-f53.google.com [209.85.216.53]) by mails.dpdk.org (Postfix) with ESMTP id D46A64325B for ; Fri, 1 Mar 2024 00:00:12 +0100 (CET) Received: by mail-pj1-f53.google.com with SMTP id 98e67ed59e1d1-29a378040daso1026592a91.1 for ; Thu, 29 Feb 2024 15:00:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709247612; x=1709852412; 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=ON9DjzS/nInovNMuR9RgwGvQJV2xo3wojblLhv8JlSyyf3oszS+sH2SDfUV8v6Dw99 FIXR46ToIA2y6lqSn3vr1d+jvoXcTc1p0y04zP3YARl/PlEZhpyyZFqiToKCUkKRFP8Q 7fDac1cAQWOTS1nJ9fwAkvd8Gg49WHe+UVvrlL4tM+OaaiwPaw1/I1aKiu5sLgX662a4 rp9A6nY8qCl5rIU/6Ot9Q6O1Pqlj7el20VDPxblMNapCzP+hdYCOdIMn6cz7GkqrL6SQ oNQC0d2q2GHX6SMGop3fk/Z3NFAB4PU7syKAHtUdKuQPWtoJ3uw9hs2L3t/A/tlhHTcn 9pTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709247612; x=1709852412; 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=oiWdzCtbah90+DSI40UqBHOANQzxKjKXCx3qgAhmrWjJx2h8vvfjwtYl/dRpCXQ029 D37kUfsWs/Zpq7fTvIaXTQsgl7IBK19U0GJRqDlGL1ecbqvThbZ7es19T4ONPsYeU5re U5GZFOHv7xfUxYNlkflc4RLcO+5DV7jT2JwmYPeKpnAgx76C/iNlGS51K27SNxbxziYw 45ENVw8mOMhCb2nFqaOAuIv/bHtDz6b02265df6hwuTLfHWCnCa20gvoOrYACt9RcVvY TikMPFU8iHvt/0ab+vr0HRZuf7b20I5x1qx5MIY2l+7ubEiZXxVEHxvvj6ha1a0hThO1 mg0g== X-Gm-Message-State: AOJu0YxdCBnO/cM4AGAMY0BicC6W7SetqNWb14wrI9GgTFdEJjbChjmv r3YXi7LDzYRGzFm3opdBzdomu1f3FmfZAbgrrLuh/0dx22SZKcwGU76PO7Fo4BkKS129Rv+6XHf v X-Google-Smtp-Source: AGHT+IG0N8LMDGdl+bB1S1sEEWJGO2wNT8t8g8FERt42X8DTG/7gp3UF9khanwqVskd6wLCJyEZLvQ== X-Received: by 2002:a17:90a:a606:b0:29a:a3a6:dde7 with SMTP id c6-20020a17090aa60600b0029aa3a6dde7mr29943pjq.18.1709247611321; Thu, 29 Feb 2024 15:00:11 -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.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 15:00:10 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Jiawen Wu Subject: [PATCH 16/71] net/ngbe: replace use of fixed size rte_memcpy Date: Thu, 29 Feb 2024 14:58:03 -0800 Message-ID: <20240229225936.483472-17-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/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