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 E608443C12; Fri, 1 Mar 2024 18:22:39 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D20C74346F; Fri, 1 Mar 2024 18:18:17 +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 B715543412 for ; Fri, 1 Mar 2024 18:17:52 +0100 (CET) Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-1dc49afb495so22720895ad.2 for ; Fri, 01 Mar 2024 09:17:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709313472; x=1709918272; 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=0X2ZlNRffbU8lumW96o5qjKL55GvanO22xjlz/60sIs=; b=atR+cTxU9VVxtDKQ0lA6Pdqi5tEpPezfiBffA0RhrnHvw6Np0l4avU3PWmkNaauzVv PEpHrDVOOOSA4mdWNEdymvGmG6V8uy0zuB0A72Dj+4VTo2Q5Im5oO+Qh8mDjio6lWmY1 UgbZqwT4JMMX878+lnCdamSd8z/MGljdhfjhQxMRGm7h9dl/20YVbvPmnN2345ux+LDm l3bm3LA+S5OHzocHf60hVKFs+gtENxtqUaZDBFOP0DziR46te6wlqgL7NhfN1QqhS3T+ HoI3nbfaPQV+u2HAWGc+NV/pUsFmYde/CeJ5CuDwVumARRMWSqeWpUeTmGK4j5Muxb4b 0NCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709313472; x=1709918272; 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=0X2ZlNRffbU8lumW96o5qjKL55GvanO22xjlz/60sIs=; b=MMulgVZSkSnDOx6uPoEN8wZJ3f7j5FcLoMdzJq3JRwtMJhtNLfV0twS194HNNEz4Ow CktrPpSIyTkEoXRY1vq+ARK9qOYxdrLDpVWzKrg62YAyvC3rqSpYN9+23MzWTw+WwXnq OWwkIydrbObME3C3fsPvf3fu146nbo20tcM3hXHzcoCk6K39eibyVff3KD1iRbb822ph HAL/1y0FfhU7PYjmvTlDSGt6F4lwfhMvCyV2sNTPV1dpg3/GHysG3qEOjFf5LhKoIkUy YIjC2YjkpQDrNGjN2SwvzqDlNwbyvIZNsMBvZLeKI5A3G6wJV7x40zT/W8thkfYQEnbq pTHA== X-Gm-Message-State: AOJu0YyRO9cvnDqYZ+UJqCtmwOYxVkd+qXX7hA71+NAfZCrQYfbVgQh8 AeBcI19nJVvbICo4uP8f1tO+jLchqxlI1k0RfBZDnEGs8XwF2ePv5qn04fUcqPW08NnKer+PMwR WVPL2IA== X-Google-Smtp-Source: AGHT+IEKgpkvXpWxA5zOm91U0L7GtY0i9MwuCaFBKPA1KR3oT96aW5NCWWtOgzimqFyNbFAq3Uzy8w== X-Received: by 2002:a17:902:da87:b0:1dc:8ba1:edc3 with SMTP id j7-20020a170902da8700b001dc8ba1edc3mr2817468plx.9.1709313472047; Fri, 01 Mar 2024 09:17:52 -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.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 09:17:51 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Abdullah Sevincer Subject: [PATCH v2 45/71] event/dlb2: replace use of fixed size rte_memcpy Date: Fri, 1 Mar 2024 09:15:41 -0800 Message-ID: <20240301171707.95242-46-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/event/dlb2/dlb2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/event/dlb2/dlb2.c b/drivers/event/dlb2/dlb2.c index 271bbce54a3a..5c1cd35dbda6 100644 --- a/drivers/event/dlb2/dlb2.c +++ b/drivers/event/dlb2/dlb2.c @@ -225,7 +225,7 @@ dlb2_hw_query_resources(struct dlb2_eventdev *dlb2) handle->info.hw_rsrc_max.reorder_window_size = dlb2->hw_rsrc_query_results.num_hist_list_entries; - rte_memcpy(dlb2_info, &handle->info.hw_rsrc_max, sizeof(*dlb2_info)); + memcpy(dlb2_info, &handle->info.hw_rsrc_max, sizeof(*dlb2_info)); return 0; } @@ -1671,7 +1671,7 @@ dlb2_hw_create_ldb_port(struct dlb2_eventdev *dlb2, qm_port->issued_releases = 0; /* Save config message too. */ - rte_memcpy(&qm_port->cfg.ldb, &cfg, sizeof(qm_port->cfg.ldb)); + memcpy(&qm_port->cfg.ldb, &cfg, sizeof(qm_port->cfg.ldb)); /* update state */ qm_port->state = PORT_STARTED; /* enabled at create time */ @@ -1872,7 +1872,7 @@ dlb2_hw_create_dir_port(struct dlb2_eventdev *dlb2, qm_port->issued_releases = 0; /* Save config message too. */ - rte_memcpy(&qm_port->cfg.dir, &cfg, sizeof(qm_port->cfg.dir)); + memcpy(&qm_port->cfg.dir, &cfg, sizeof(qm_port->cfg.dir)); /* update state */ qm_port->state = PORT_STARTED; /* enabled at create time */ -- 2.43.0