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 1D1D344093; Wed, 22 May 2024 05:31:22 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A3F5B406B7; Wed, 22 May 2024 05:30:38 +0200 (CEST) Received: from mail-pg1-f169.google.com (mail-pg1-f169.google.com [209.85.215.169]) by mails.dpdk.org (Postfix) with ESMTP id 60B444067C for ; Wed, 22 May 2024 05:30:32 +0200 (CEST) Received: by mail-pg1-f169.google.com with SMTP id 41be03b00d2f7-656d8b346d2so1813268a12.2 for ; Tue, 21 May 2024 20:30:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1716348631; x=1716953431; 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=rIYIbSxL/BCBM8GbYg7307lWXBIOhsJQKZVDHnyGh94=; b=f4Zhk2rI562O18taCFBfAKfARqAE2IWR8Qvo/wSE+M5eZhtbw/+NVvyt9uRkEBtVWt vtrWJtl+tDOSxr3uBINRH0oos9LDTsBDELIGZZx8+EfhD2XPZk4bfvWjd69awB/kTcve hbaCt0TAuc951xZgLuPtgSkpNciQ6JEzQbpFmXCScWOYv07NGHe7B38yj25S4+1tRnnY SKkzZwQ2uD9Ma0WLej07bJHOKzv6wBjBBmymp9iUVZdtWYsm5yMqYaPNF8SdgCzC1pew 7emBW1CUgmTffkZuUQ3dLg6ZeA4wRzzvcE+pjvhzQhNeew/T3rriNltktLBf9YsveUfT m67g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716348631; x=1716953431; 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=rIYIbSxL/BCBM8GbYg7307lWXBIOhsJQKZVDHnyGh94=; b=s8MD/cRNPlZ1o3Nelgv99oSNdoavgx/OGS+BjU6swpxTZf7p2lwpKT98iYbn6jEC3g LfjAsfCV4wQCVLePkwTwX71QaR2Il1lNPBU8lMDDhW+u7rbRfstAgkVtPnmBgFBW9gmR IJ4e8xwR10kh6L4Ps8HKu0lPAG2uSxOjXMxN8ukC0LMQOsL/Mm5wmC6xTQqZ/f6ZBEhB ecrcfU+mpbfXf617ME2VNWUiZBM4qgjuCFHiHlyIoL/ktdC8eShqO9Hwpb9GqGvW+Iqa NyZf3ja087lWLSk5KNYhecDHvm+SEbfkW48zLxXWTA8v3jVtDRWA3NDCuWK/qPmlPdvI GUyw== X-Gm-Message-State: AOJu0YxYdZ3rRg0VnQSisnxlx5AkFp599efDie/qC6TGCgg47XBX/kS6 ESNaCzXkzj+LQTsWq9UAlLIh/OKoTAYzIN5X8rPTjdQoOo8pw0S9FlddXuTP4NQ/7Ye1UuQH54L OVCA= X-Google-Smtp-Source: AGHT+IHD2Fp+BQ94V7FCrTFrFLVaO7tkAT/o5IUYh+WBMpqeKkzVWxt+KyUUYXWd33IIIUhOwS46VA== X-Received: by 2002:a17:902:eb85:b0:1ea:6fb2:5a88 with SMTP id d9443c01a7336-1f31ca5273cmr8700265ad.68.1716348631367; Tue, 21 May 2024 20:30:31 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f323c70dafsm2264325ad.260.2024.05.21.20.30.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 20:30:30 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v5 07/32] net: replace use of fixed size rte_memcpy Date: Tue, 21 May 2024 20:27:34 -0700 Message-ID: <20240522033009.143100-8-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240522033009.143100-1-stephen@networkplumber.org> References: <20240403163432.437275-1-stephen@networkplumber.org> <20240522033009.143100-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 --- lib/net/rte_ether.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/net/rte_ether.c b/lib/net/rte_ether.c index f59c20289d..761b38f805 100644 --- a/lib/net/rte_ether.c +++ b/lib/net/rte_ether.c @@ -13,7 +13,7 @@ rte_eth_random_addr(uint8_t *addr) uint64_t rand = rte_rand(); uint8_t *p = (uint8_t *)&rand; - rte_memcpy(addr, p, RTE_ETHER_ADDR_LEN); + memcpy(addr, p, RTE_ETHER_ADDR_LEN); addr[0] &= (uint8_t)~RTE_ETHER_GROUP_ADDR; /* clear multicast bit */ addr[0] |= RTE_ETHER_LOCAL_ADMIN_ADDR; /* set local assignment bit */ } -- 2.43.0