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 F316143DC8; Tue, 2 Apr 2024 23:56:36 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CF3B840696; Tue, 2 Apr 2024 23:55:52 +0200 (CEST) Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) by mails.dpdk.org (Postfix) with ESMTP id BBBC7402E8 for ; Tue, 2 Apr 2024 23:55:46 +0200 (CEST) Received: by mail-pl1-f174.google.com with SMTP id d9443c01a7336-1e28856ed7aso5552575ad.0 for ; Tue, 02 Apr 2024 14:55:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1712094946; x=1712699746; 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=TMfMtqhH3qAlam5QLnqtZZYMY3eU0jSFqblPPoJ+7gLQ/vSm8X/wZlraeSekU4W6tL I0YBk+CDZEFqhkcO1z+0j4mw0Q+DM5t2Qvr26+SSRRkWXo0G8a/bln16bnDF+RbWP7be xCZq+Vy8LtG8WGI2zq5SOyWVq934Q2azuCRPNgP/DjJZMNFSHBtf9NGeoJhutoirlCzw zjnTcRbWlRDHprOJkOuPjVhPKkjvDCnOhn4/yv5PipbqkrkBf7iOfIXmaVFqPUDud1c0 jKk2hfAaDBRI/+SPgkpzgnGkInVKasfVHCOpQ6IAn3TC7qFVbBNnRSXUwI4oDSBCQA/v 864g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712094946; x=1712699746; 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=ZOVftraB7HCoEqPvJnIjfD3Dyn6KB7+kObXlt+xf4w3yBnhTznqpThAA8Cl6AIWsOZ XudOnVEBEeyYIWz/5fUqLP+lgJbSXhQRRW7nWAAnF6kr07n64JKfrHTNynNWhZwA0mRZ cqWkbdI2PI+L8CwcPXXnFsrkbveh2wuj2fnJvbMu+4qFzoV6SFxlna8WKkKph3LqB7B+ jPa1jyUN46uKt1OYBcHe6BN+whlVdnxjL/stQ57t+qheA7Xc04iXE+TXw9n3uDx3CPHN PcSC9EZi26ij/1JOcB55V2uctOYw8fguozO8jPMsM+jOLKCmrsr0EUJmKm0b8Bpupjj+ C+sg== X-Gm-Message-State: AOJu0Yz9728XHWHV9Rp45G1p8cn9g55/Enk2a+6oWTKH/ghJbeIQshcu yzYgEPemZYUEB1gmBU0aYvjgdg4KWSMm2XETo/vE/qryH/PzJaO+qUJUJdzs8CB2BUISsD9KXUs w X-Google-Smtp-Source: AGHT+IH8KuRNFR+zXmrX1Zp1nvEwH7VkAIpzf4yRo+YRJzTO60qdvU5zM8hjj7IJ5E+EzRxD9UjN2Q== X-Received: by 2002:a17:902:d4cb:b0:1de:fbc2:99f0 with SMTP id o11-20020a170902d4cb00b001defbc299f0mr1231069plg.2.1712094946031; Tue, 02 Apr 2024 14:55:46 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id x15-20020a170902820f00b001dddf29b6e8sm11609381pln.299.2024.04.02.14.55.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 14:55:45 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v3 07/30] net: replace use of fixed size rte_memcpy Date: Tue, 2 Apr 2024 14:50:23 -0700 Message-ID: <20240402215502.278838-8-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240402215502.278838-1-stephen@networkplumber.org> References: <20240229225936.483472-1-stephen@networkplumber.org> <20240402215502.278838-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