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 8571943C12; Fri, 1 Mar 2024 18:23:27 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A657D434BB; Fri, 1 Mar 2024 18:18:26 +0100 (CET) Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) by mails.dpdk.org (Postfix) with ESMTP id 51FC84343B for ; Fri, 1 Mar 2024 18:17:58 +0100 (CET) Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-1d93edfa76dso21896045ad.1 for ; Fri, 01 Mar 2024 09:17:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709313477; x=1709918277; 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=dMPiXd0/hCsL0VN9KSHqb8rEh1MbVdnzFvElU0PLL3tpAslW3dL+Vbff5B6VKrjqSg D0mDPHTYr3iYRY4QCVkGllARquF0FIjGnIXGx4bsIWp/yOPe24oBFpbtY9dkG6aa/fUf eS7SkioUeYEuSu8yMlLH+U3LCRXWAbzKDyGf9CYuZg+zPydi77Y2GjU7FdCwbDBWXkhk vCSy3lDt5GOYOczmo0rqlrhGXBYCGGMmVqMi1RSyBjw//A0upSrXvE7ZXrK1hS6BGkaU VcITtDZzvGXtUTcbtk0oVLSfxUUcjtYqvPxh1Nd8+yKSUURbwM2erbZ1xhPOa5N5a0HL GDxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709313477; x=1709918277; 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=ggLD23PWjmTXAuGKAv3tt/00eucywrHYBHnME1dpQeTeMfyPas3znSMw79uVYOS6/A MVcJUxFqTGdPqnab6iVAO6+5uyuF5QotYvpVZe51UKh7ZqrjOBdi8lppKkUc76sfUgTL idBBPZgjInzU3QlxFxlAAUCBo+OvH9lqe9AkRIGHW5uy1OCHx/br9imzAtUrw/Vwvd8G GWW/mY4JTmjf4zKezzSvwUqtjcJtAaoe3ppgsnY06VaLQIxA3w36hh4gR+42bQ6hdkyY ULYUcy0nCh9ZOUcScWx692+7BRZStc35OvDLytdyJ9TcGZDgOc2xFyX1UFaFhnBdr8VC L8Vw== X-Gm-Message-State: AOJu0YzPwMObo+hzUXnMUWweUdFnI8xCNZaihw3HAgt/I4JRmsU4JYkn g01hyD9mgXUKQia+uZbD8KzjWs7qUfqFnQi+nYYE1MK7ZCbV1N8LyNLdhff1BuM3y3s8+1qh/P+ VkCXOVA== X-Google-Smtp-Source: AGHT+IHVM1d0j3ywVxMpGTi5nTrIJhCxUDd1pSVYGebpbEfsOH5zDagCk09TilGCMaXO86lAhyctqA== X-Received: by 2002:a17:903:41c2:b0:1dc:e469:6f58 with SMTP id u2-20020a17090341c200b001dce4696f58mr3038410ple.51.1709313477633; Fri, 01 Mar 2024 09:17:57 -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.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 09:17:57 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Steven Webster , Matt Peters Subject: [PATCH v2 52/71] net/avp: replace use of fixed size rte_memcpy Date: Fri, 1 Mar 2024 09:15:48 -0800 Message-ID: <20240301171707.95242-53-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 --- 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