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 1609143C12; Fri, 1 Mar 2024 18:18:18 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D4FB043344; Fri, 1 Mar 2024 18:17:28 +0100 (CET) Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) by mails.dpdk.org (Postfix) with ESMTP id D47AE432D6 for ; Fri, 1 Mar 2024 18:17:22 +0100 (CET) Received: by mail-pl1-f180.google.com with SMTP id d9443c01a7336-1d93edfa76dso21891125ad.1 for ; Fri, 01 Mar 2024 09:17:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709313442; x=1709918242; 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=/Qu1uDcO72pNt9gZI74NAYZ43yqBgR5SOgUCdZ/xFmU=; b=bVtuvKtjvU2kQ9mnUHvgrwUsUbTntOOWf9vfRjQtLFDIVYdNp57PK9HlgDJhgaJbrq uzzkIHMRT4MuIF641pkMWRKirDN1UR5r0c0RKnkiMDdzhkw/kkLsfG6v8cjm6HK8Hr5Y dq4l62ARQQJPtgZF45Y1oD/6/xmloFCGpD8/PULe10cnsc4MVoZCjKQA7TEp74+SO/xK iA5MbUIqpDVbKegX5xk64DI+3Byhp7ZWK7GCCZWGVN659vRZhmK+sN324hsn24i54Gri HIwUYqOTx1mnzdBrvF2GlM2YJ1iA1RqwvaJmohmo8ZmG34n+ox6QoK81P2H0mKb515CH 6iCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709313442; x=1709918242; 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=/Qu1uDcO72pNt9gZI74NAYZ43yqBgR5SOgUCdZ/xFmU=; b=WmkWRrrvq2Jr//hee6inCAlzTRvKlX4XNDz+HhFhBGpSXy8ZvQNta1oakL24Ff4fTF kk6EfkF89iF+uWBaCGOBuuwGvvrC2rrwdvTsgtg9fREk15CN0E3l1ai1z01GojKLpsTK mg4CjnETTg/muVA9N7Y8iqgMkKnarQToD7Xriq/W0C3+9IXHA1Qq+GuECo4NLTo2Y/oM nP5nrx6SLMKTjyp2aEBSMq5z6HcI57wiC2CiMl8u6L9rq9265TjykR8+f+7/bykCz+43 WbCjte6gc7ykbE9m4wXdLfWBmgAK06cIsfw862IT8y9s0Wuv7v1C5f9W0lrwQc0C2Yu0 440Q== X-Gm-Message-State: AOJu0YzvWu7YlN6HfCCfdXqL11xxRju5vfoYAsQdFUfqCj2IN4R4mnE9 QqBvDsY9D+lRSFyE3758JY0h/430fovXrAGFVy2orp3hZV6aQMXArVuuWUh6eRhPZi4X3qIqai4 XT7JePA== X-Google-Smtp-Source: AGHT+IHbH/f80wzOrSrKgzKR0VO5rl97goCnK0JIy1mIDCW8ygfiSPqdrX3rtPcM/bHyTriEdgOy9Q== X-Received: by 2002:a17:903:41c2:b0:1dc:e469:6f58 with SMTP id u2-20020a17090341c200b001dce4696f58mr3035995ple.51.1709313442070; Fri, 01 Mar 2024 09:17:22 -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.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 09:17:21 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v2 07/71] net: replace use of fixed size rte_memcpy Date: Fri, 1 Mar 2024 09:15:03 -0800 Message-ID: <20240301171707.95242-8-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 --- 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 f59c20289d37..761b38f8053f 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