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 4564244093; Wed, 22 May 2024 05:34:10 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8C53440EE4; Wed, 22 May 2024 05:31:25 +0200 (CEST) Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) by mails.dpdk.org (Postfix) with ESMTP id AE56740E54 for ; Wed, 22 May 2024 05:30:56 +0200 (CEST) Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-1edfc57ac0cso6549285ad.3 for ; Tue, 21 May 2024 20:30:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1716348656; x=1716953456; 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=o4Y6MUo/S6WXe45zI9bdnmnOgez9fmJ8RCTxIxpifsk=; b=WOptJwOmDrCVTTtOCnTGUOWbgTYpPZYAGOBpCN50Ko+wJXQVac74mMqtmSaun5KLQQ VBGnHr97ODZ44WpxUeCwzgAi4hMI/KChGa2vvfJMkEwUuINglF0Ik6oJ5ZFUMA2RJf+1 VK1rrAiA4ma5vGDJmYEBzkNyU5oNvrkGGMg1H8a0U7RfhTQPQLvDOBQJlzaPXQRpwApS aR4ZbifgABcbNxKdJ0VyigGbY62pYKAkx9/aEGtRqckeBRdzwm4txPcdH/AnTMqJ4a4n ifp8dXBrgXmUPcGeqNq8MEHWWzVYfC4ri02EVeqzK5FXKam0TwU3GOVsAb4eURoX3RHR 5fXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716348656; x=1716953456; 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=o4Y6MUo/S6WXe45zI9bdnmnOgez9fmJ8RCTxIxpifsk=; b=PL/u8j/UA69+ZYmWN6BwGrp1c+QiMuDlufcZ2wYNyHQkihQzURclBL3Q6jqKBk+2iV TZH9iEHqHs1YlugjEHK729hm4eqsMtzGrhrLSygTf9v56rhKSCLSc94zdqpgdMgkj2q+ dsm2tl+5BBdBTokP6VMBWannwKny+HDwsKbFOayjpq6mqZqRIkD0rAze5hdop2xU+4Lv bZUBpwvcU9NXCngF8K84vWhecW8OwAWfSrDbSqr7xuy7dQBPM0cQ1zHaea1bmgVmi3nq EuhGQsydsRW5KZHWOFxhZ10OwUQ6+7wKX3fBk47Duvn4TT+cdTrnEIrf5SEZ1IQ08qVz e2Lg== X-Gm-Message-State: AOJu0YzUGbBbh7cCFunX0JohCzC+ZvpzGIIaSJIzs8TfSjAcJdy8pduY XKTUNX+dpFrTccjoPv21mq1WD4ZwSY2r0NEwZGq0mSoFKMNctoY3yGoxZuNXYGxyB2CETI3oLpf 3lKk= X-Google-Smtp-Source: AGHT+IH1nMyauq7BZ10xW/ucwnVE26uT0awtibp2yzMwdMjS+nZyo1aGXoJgzl68kfpPw/9QjRy20w== X-Received: by 2002:a17:902:c20d:b0:1f2:f107:5a71 with SMTP id d9443c01a7336-1f31c9f4ddamr7674485ad.44.1716348655961; Tue, 21 May 2024 20:30:55 -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.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 20:30:55 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Ciara Loftus Subject: [PATCH v5 32/32] net/af_xdp:: replace use of fixed size rte_memcpy Date: Tue, 21 May 2024 20:27:59 -0700 Message-ID: <20240522033009.143100-33-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 --- 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 6ba455bb9b..afaf358019 100644 --- a/drivers/net/af_xdp/rte_eth_af_xdp.c +++ b/drivers/net/af_xdp/rte_eth_af_xdp.c @@ -2096,7 +2096,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