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 EFF6843BAE; Fri, 1 Mar 2024 00:06:35 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 41E1E432BE; Fri, 1 Mar 2024 00:01:45 +0100 (CET) Received: from mail-pj1-f42.google.com (mail-pj1-f42.google.com [209.85.216.42]) by mails.dpdk.org (Postfix) with ESMTP id E89B1432E0 for ; Fri, 1 Mar 2024 00:00:43 +0100 (CET) Received: by mail-pj1-f42.google.com with SMTP id 98e67ed59e1d1-299566373d4so1085587a91.1 for ; Thu, 29 Feb 2024 15:00:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709247643; x=1709852443; 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=4IfoUpHHXH5RcaWSJbL8DbKLH5aCTDa+W+jP7s5eerI=; b=oQIC7dKhh05jwG8YEOZ70xRFCsbNG+VtjyOujIt/08WGvlntj5lHNnnrVlnr4UEgf+ +RYzY6rrqd5a/WInKoSiIwt2XlmUaG2NTApsdWVKqrGvj6gppAWqx3XNbZzo3dfftzM6 Kl4wbdjiDXuTUr9nlG4mUA2vB/4EGinXhpT0pFXeSPSSO9GanQXHEjq4TR0FGTmyusGE zb9vJC0eRcruhrN8VfKTwGIAEFgTlCT7aO487V30wR2HNUoI+UkoAfGTTHrHivoccqEL PPglWF24MD5P5jCSsUkP6nV1uy17wxFTy8JBUxpETfwqdwPNFegWFHunBIQYxYhuwEfH mivA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709247643; x=1709852443; 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=4IfoUpHHXH5RcaWSJbL8DbKLH5aCTDa+W+jP7s5eerI=; b=OJntcNKo4zUfUESQJeVSHcOIKOI2pk7TMWbetyLw0XABk1EaBKcrUFQjdZrufzmEZL jzVoslUnYmYZ4CIBszrvUTEx704841mCeO21OWxlkb1IM53cXlf+bNqg3M3YwENWSP0c UqiCwwPOEYCj4frTkehmh0w+ijim8Ddthze36iM1vHWOzSMqs7gQrilJoc9KmiBhoySZ WwJUTuK8nXM66I+0Sq2r2rq4dSm+BJhhaarjmNqoQwUILyD3G45NkA5NNO6R7SlR40/2 wu1p88uvCJj+1rmnBSJm7SDXSf8CVbaOwBrKa09e6paxvVm7PFoInr1n5I8diB6FwcgE OyXQ== X-Gm-Message-State: AOJu0Yxj/TN85Ylz5Ch/aOIpdGNCX7tq5YIOBfHmQmJQl5HHLd2xVdQ4 nzqSo94ylJLaSUVMOS07FcyMx4uXdXkiX0QT2IJKywmeC38tvJ4KSCrcUoHMj4EZ2dYuPlz/l8I V X-Google-Smtp-Source: AGHT+IHk8pHV6HXmX9DmKEY+XaCaiHloX5kyvIO3cWScNiZIaxZLQ+k5BpBTlEy+w75RPBg/b5tGYQ== X-Received: by 2002:a17:90a:990b:b0:29b:10bc:acaf with SMTP id b11-20020a17090a990b00b0029b10bcacafmr22430pjp.30.1709247643155; Thu, 29 Feb 2024 15:00:43 -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.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 15:00:42 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Ciara Loftus Subject: [PATCH 51/71] net/af_xdp: replace use of fixed size rte_memcpy Date: Thu, 29 Feb 2024 14:58:38 -0800 Message-ID: <20240229225936.483472-52-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/af_xdp/rte_eth_af_xdp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/af_xdp/rte_eth_af_xdp.c b/drivers/net/af_xdp/rte_eth_af_xdp.c index 2d151e45c7cd..8efc0e707a78 100644 --- a/drivers/net/af_xdp/rte_eth_af_xdp.c +++ b/drivers/net/af_xdp/rte_eth_af_xdp.c @@ -2094,7 +2094,7 @@ get_iface_info(const char *if_name, if (ioctl(sock, SIOCGIFHWADDR, &ifr)) goto error; - rte_memcpy(eth_addr, ifr.ifr_hwaddr.sa_data, RTE_ETHER_ADDR_LEN); + memcpy(eth_addr, ifr.ifr_hwaddr.sa_data, RTE_ETHER_ADDR_LEN); close(sock); return 0; -- 2.43.0