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 EAE4343BAE; Fri, 1 Mar 2024 00:05:35 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9145F432AC; Fri, 1 Mar 2024 00:01:34 +0100 (CET) Received: from mail-pg1-f176.google.com (mail-pg1-f176.google.com [209.85.215.176]) by mails.dpdk.org (Postfix) with ESMTP id 1D595432BC for ; Fri, 1 Mar 2024 00:00:39 +0100 (CET) Received: by mail-pg1-f176.google.com with SMTP id 41be03b00d2f7-5ca29c131ebso1171563a12.0 for ; Thu, 29 Feb 2024 15:00:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709247638; x=1709852438; 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=S9gHwdbRizg5WUp8I1MnZprnpbFS2yaj45eE9+rh2B+PU55ZgFg7MEafBAMTaTDwln Zz+zYA4dLGJZ4Rc6PUQyCleUB1d29VKlQNBU+ndl+/ESubh+vCmlrWnuzvBXWumCIE4w x2psDDNjj/ne9gMXSm6tvNl99GDPvK0IDlji8p/at8S9TR5wgMIjuoNjt4L182TWnY7G tGOZTuzHv4nb0WY6o6ra1Klx1DQm4yehVk58qSFl4H7GPgS2Z31+9xooVaZviVHIVIab BkddSMAzTgjzfWcdX541XuTr7BxiI1F91+9HRVBL0qXShOzQ9s7+49/d3zeISOjYZ3SV 9J5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709247638; x=1709852438; 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=TNdWQLxmWAjxt+qIOOPUtj/4bGE511/AksYdxJp6Z3E1XS1FU1X45pswJWTYmsbPBS 6gMZz7Dh7nIAw9wc/QoL80qKVgyh17xdPev9mD3J9QZZQw8hlgITQebwcX4gc15GgI9Z RmpvGxLFbg93qcYg+pm6/j+AfXmC/QsCPizhpH0/5FNf2XcS9T/Si56FtSPETxCAxU1S KbSX9zRulMXMUsFWhDc/XKHYRz7lIYc4u6sQoGgWkpKygiodLrQ7kSskmpDbUrPL9w07 IhqTFue06Gjd0OvTkeaKsO3hSEf5mNRSmKhzw/cSSPUXuclF7CEYYqqdmBu3wj4Ia5NT 7Q4A== X-Gm-Message-State: AOJu0YzAgBhC8LQJo6BUdv0fW1rlJrntd8mkCdje/yBVSbZgFQPp3ATW qp266+apV4co4KRLtYn+Diu3Pkh7WdBoBbsQsPu9mpnHwjnw5HoNwqNkpfWh/LY+F6ShYP87cN5 Z X-Google-Smtp-Source: AGHT+IFK2+FZvq3/95Ymapg50MZVrOFlRlJx7izgFPRdpW8D6MuX5z5GBgT9E6R1EpPgIfroxUjxFA== X-Received: by 2002:a17:90a:d685:b0:29a:c4a3:ca0a with SMTP id x5-20020a17090ad68500b0029ac4a3ca0amr43298pju.18.1709247638074; Thu, 29 Feb 2024 15:00:38 -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.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 15:00:37 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Abdullah Sevincer Subject: [PATCH 45/71] event/dlb2: replace use of fixed size rte_memcpy Date: Thu, 29 Feb 2024 14:58:32 -0800 Message-ID: <20240229225936.483472-46-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/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