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 3AEAE43C12; Fri, 1 Mar 2024 18:20:16 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1CB8443401; Fri, 1 Mar 2024 18:17:50 +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 C30BA43365 for ; Fri, 1 Mar 2024 18:17:35 +0100 (CET) Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-1dc418fa351so26370515ad.1 for ; Fri, 01 Mar 2024 09:17:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709313455; x=1709918255; 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=qlT84LLO8F031Gnwzj2I+iXnNWFtKWuZ85KZacOSKt4=; b=pUQPitGkeClSmOLlViZ3pvi31IWto8HAk/kpi3mk8LPpQOlwOT/o8SRrd+Q1iN3yko 2glli9owACGKmXnC/h2YnARvJ+NaisaeBJQpP3Dw2szAFCbYf12y88+7EcmofLwOSD6x R20OLK4SXYw55JLIPiuocHykGa3+bTDZ9tj8E6290BrJHPNE1vy8huGL4ns8wVucRmpe eF2M6q+0YyCsJUaA+zaAbpiJ5Csjy34XwvU1yhkOwkFNapAJwlETOtq8o6pNk9bpvE5n EyF4hmZa8a+A6dW7E9gc6pLCP5/0Hk0w9KTrLaScYf58x+5eAtBn9Xh6ry7GQmCJCfMH c0rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709313455; x=1709918255; 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=qlT84LLO8F031Gnwzj2I+iXnNWFtKWuZ85KZacOSKt4=; b=Sczv5AXiBtS3O0lOz31H//AIfEyWsv/A5q+0nclZqMrcetexI7TPd1mwbATdhGwkvH wn7lrWH3ysr2RmoNZjT6chU9jJxc234hpha82iDFj68Z85VSXWqmMIrAg+rn+wPEM+t7 d/B+9s3kFXWC7Gj1qHx8AZOTiQwrqqWqw+PWuzZPXaydlzLKkCdy+AjPmu8oykCRV5zS nlDPObvoZE3fB9OWdf3XFrT7fp9bGaNfqa1ltgTnHlaT/tGE54101hyaxvB8yaU9aACs QCsn2aESnUUoqifEi7OlW4hHUZrsJETBithfFnDeTJZXMIb4VwouqfLmnTYmxc6G7lnP XvKA== X-Gm-Message-State: AOJu0YzIGS/Zf3S0aTfpHt6mkwxC3ADucN1iH3SyPstll3zunsMedsVh l42o/N8mezqgpCpao0KV2uZOC8+cQB6Nh29sJ4HHA43lY6WWMZl+0E55Hsh7vHfA4eAqiTHym+6 rc3N7kw== X-Google-Smtp-Source: AGHT+IHwrLIj1m5+P+Uhj0VitTz5XT5Lqn2GXYydAOrJ5mtlCYoxo0x0x9cXuQVDlM7UzuKhcbnUbg== X-Received: by 2002:a17:902:d4d2:b0:1dc:b7d2:3f28 with SMTP id o18-20020a170902d4d200b001dcb7d23f28mr8187586plg.32.1709313455030; Fri, 01 Mar 2024 09:17:35 -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.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 09:17:34 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Sachin Saxena , Hemant Agrawal Subject: [PATCH v2 23/71] raw/skeleton: replace use of fixed size rte_memcpy Date: Fri, 1 Mar 2024 09:15:19 -0800 Message-ID: <20240301171707.95242-24-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/raw/skeleton/skeleton_rawdev.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/raw/skeleton/skeleton_rawdev.c b/drivers/raw/skeleton/skeleton_rawdev.c index 6e99d35536d7..967b3964f24a 100644 --- a/drivers/raw/skeleton/skeleton_rawdev.c +++ b/drivers/raw/skeleton/skeleton_rawdev.c @@ -245,8 +245,8 @@ static int skeleton_rawdev_queue_def_conf(struct rte_rawdev *dev, skelq = &skeldev->queues[queue_id]; if (queue_id < SKELETON_MAX_QUEUES) - rte_memcpy(queue_conf, skelq, - sizeof(struct skeleton_rawdev_queue)); + memcpy(queue_conf, skelq, + sizeof(struct skeleton_rawdev_queue)); return 0; } @@ -281,8 +281,7 @@ static int skeleton_rawdev_queue_setup(struct rte_rawdev *dev, if (skeldev->num_queues > queue_id && q->depth < SKELETON_QUEUE_MAX_DEPTH) { - rte_memcpy(q, queue_conf, - sizeof(struct skeleton_rawdev_queue)); + memcpy(q, queue_conf, sizeof(struct skeleton_rawdev_queue)); clear_queue_bufs(queue_id); } else { SKELETON_PMD_ERR("Invalid queue configuration"); -- 2.43.0