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 D671C43BAE; Fri, 1 Mar 2024 00:06:43 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8D2E943419; Fri, 1 Mar 2024 00:01:46 +0100 (CET) Received: from mail-pg1-f172.google.com (mail-pg1-f172.google.com [209.85.215.172]) by mails.dpdk.org (Postfix) with ESMTP id C453F432F6 for ; Fri, 1 Mar 2024 00:00:44 +0100 (CET) Received: by mail-pg1-f172.google.com with SMTP id 41be03b00d2f7-5d8ddbac4fbso1296113a12.0 for ; Thu, 29 Feb 2024 15:00:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709247644; x=1709852444; 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=Nfrm44DPjmag7kpP9gtPqq7De/oX3KXQugUZcgN/YrM=; b=svGTt8x4zpcBYmHl9UkJayK5N58uqocLE04KZQEiDZw3bdgO4LBCPy9NDDPrGVYAzU TEQ5xkGw0asQOyG6VKIWYIoSN0mK6PAXZIeXmuBy43z5xSouWnhchbLFhzsqV8Ns13+7 3YVAfNjYianlZpvEfXtFBvFKyJ4g0D36jtWmzXEcybd/u5HU8HmKGkADWU7ltTnHrTNj EMm89HlTkelLj42Ne6s0/IUmN04eKqekf6cYyGbfZ7GpBqLCz6BXx47Ndh7xEV/pFvny utl1uri7/Z7zGPHXngm3NPO2jZlFLf+Dnhs6z6hLslJEJAg6anjpjN29jgIAv6KGR6Hu fo9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709247644; x=1709852444; 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=Nfrm44DPjmag7kpP9gtPqq7De/oX3KXQugUZcgN/YrM=; b=fU5QEqEUXVVb/XnUWntQbcr3YEWHs9C2J7fRaOLjrh54K1sDFpJEmNCDduUG5Pa3Tg JH1y67342+K0c+bQy7eOEO8kmqWGudX26pcQXv0z7w1YGlmAlsAmLg5rvykXb89ngGxJ qFdBM1UvzGQuFWcG6sio4Cotm9vNZMGS7/9Shl4QUYUJnEDIuSxipBu7eniwBuK3xLAW lGN3As35BHWVEhZ0BVQwwZLNYefHw6FXRCpfrR+sGNGTZT/053fWbMDQRpRZ7iu3dUl4 f4c4pm6J0aGAYh9bzf4pQSf7VgcckS9XX1V1nJ0tNMvbGKNwwCg3dFVT+KkAqXbvzi6E a0rw== X-Gm-Message-State: AOJu0YyvLxMurXK/7WxvxTbD+OQsZVnKXCfbzgvY6SfTGQOMxu/fhq56 0E/RcqmcuIQ6nefgbUCf+eKQknAVHYLIUxkvD/fT9+dkwNGkgfRFNw28+8ysxIUxwkKsK/TKSV8 1 X-Google-Smtp-Source: AGHT+IGLe+9eh96DA9JF8jF26gLxkeQmDyem+mA9XpO2kA2eZhyLtNZGO5zxefr4V4pH0beep3hFMA== X-Received: by 2002:a05:6a21:394c:b0:1a0:eddb:f2f7 with SMTP id ac12-20020a056a21394c00b001a0eddbf2f7mr4182667pzc.51.1709247644044; Thu, 29 Feb 2024 15:00:44 -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.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 15:00:43 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Steven Webster , Matt Peters Subject: [PATCH 52/71] net/avp: replace use of fixed size rte_memcpy Date: Thu, 29 Feb 2024 14:58:39 -0800 Message-ID: <20240229225936.483472-53-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/avp/avp_ethdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/avp/avp_ethdev.c b/drivers/net/avp/avp_ethdev.c index 53d9e38c939b..9bd05301720e 100644 --- a/drivers/net/avp/avp_ethdev.c +++ b/drivers/net/avp/avp_ethdev.c @@ -248,7 +248,7 @@ avp_dev_process_request(struct avp_dev *avp, struct rte_avp_request *request) while (avp_fifo_get(avp->resp_q, (void **)&resp_addr, 1)) PMD_DRV_LOG(DEBUG, "Discarding stale response\n"); - rte_memcpy(avp->sync_addr, request, sizeof(*request)); + memcpy(avp->sync_addr, request, sizeof(*request)); count = avp_fifo_put(avp->req_q, &avp->host_sync_addr, 1); if (count < 1) { PMD_DRV_LOG(ERR, "Cannot send request %u to host\n", @@ -285,7 +285,7 @@ avp_dev_process_request(struct avp_dev *avp, struct rte_avp_request *request) } /* copy to user buffer */ - rte_memcpy(request, avp->sync_addr, sizeof(*request)); + memcpy(request, avp->sync_addr, sizeof(*request)); ret = 0; PMD_DRV_LOG(DEBUG, "Result %d received for request %u\n", -- 2.43.0