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 9747F43C12; Fri, 1 Mar 2024 18:22:46 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 02BF643498; Fri, 1 Mar 2024 18:18:19 +0100 (CET) Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) by mails.dpdk.org (Postfix) with ESMTP id A91334341C for ; Fri, 1 Mar 2024 18:17:53 +0100 (CET) Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-1dbae7b8ff2so7552445ad.3 for ; Fri, 01 Mar 2024 09:17:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709313473; x=1709918273; 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=1pKI+PC8GGOobXD0Rj0HyF7yHfXQeOvMDZSFZ7e298M=; b=QN32PEfTGYLsYP8QmTYE4MDu6CtGgj0xJgvwG2f1uotbh8FaW0amqgMMx0tlCRyyCv lrtQs/hPyEIg4Flxt1ktakg0wdPlohtDXqdB5Iq++fZIXUH1vQjMY8nSODgjY2Nt+LwR +JiUNjdZs8TAGqYeVuCe+Q6KmgZCB6k1IZIeCfiyK6c4DdxllIIqbQvcPqAnSaz4zXSS 448N6a1JQHNZhbXvE4x49vOefazRGNWt2crhkiuXJxp8DkjxJ/J2RiL04eejNLOL6i2M dPwJX3ZDW3mxjOu5KucratHp9WjRVUUkuQpJCNjB0Y4sI+Kow+aviQG5JZ0v6nbM9XmB xboA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709313473; x=1709918273; 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=1pKI+PC8GGOobXD0Rj0HyF7yHfXQeOvMDZSFZ7e298M=; b=Cn1dbuuyOe97rXi6RnpIJw6YbvPfDmrH8kZog+2vmAhQwdpTCc9qED8hHJaK3uimQ9 7LU6gZFqf0LB+lwUJdv/AXjGcflXBBY5XuSwuVX72PNzdF0JBbUU0RgwF4utwfQD9C13 jph+xHgcS8IxE0mN2ti5RXmRwN0yJhri7GYzr/ugPFnx4FQOYzCizDkjCzwTZbNxsu1G cQbl1mLGw7b5AOIgItEp4/vj9sZMy+LnX06WyCHx16jpHoDg2qNSYleHae34ZR7CSkKq +E2MHr/ficrqDtfHIZcOCjRRqZCfckZfvYNY+QgyMX3pmu5W0yJTio2+9cMPa3NfetV2 zB6A== X-Gm-Message-State: AOJu0YxP7qXoMZ1Bq11FqSj0skZFoCxMaq5ZKY7YcO8ngUGFQlMrj8oE z7B7HQuYT7NL5VJbv2JkjB31QnOkR9WpKULydxJtUiQrVeAzOFXOrBm76z6EckcKiK2cIldz1uN XbXILcA== X-Google-Smtp-Source: AGHT+IFsr+V4SPZReSO6TThybMXEez96phLSk1Iy6rJIYNmmGaoWxsol0ZUlL++cir40Ey8nS6DFLQ== X-Received: by 2002:a17:903:2349:b0:1db:68d5:6281 with SMTP id c9-20020a170903234900b001db68d56281mr2774169plh.35.1709313472830; 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.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 09:17:52 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Hemant Agrawal , Sachin Saxena Subject: [PATCH v2 46/71] event/dpaa2: replace use of fixed size rte_memcpy Date: Fri, 1 Mar 2024 09:15:42 -0800 Message-ID: <20240301171707.95242-47-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 Acked-by: Hemant Agrawal --- drivers/event/dpaa2/dpaa2_eventdev.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/event/dpaa2/dpaa2_eventdev.c b/drivers/event/dpaa2/dpaa2_eventdev.c index 1273455673ad..0331bb6fb91d 100644 --- a/drivers/event/dpaa2/dpaa2_eventdev.c +++ b/drivers/event/dpaa2/dpaa2_eventdev.c @@ -159,7 +159,7 @@ dpaa2_eventdev_enqueue_burst(void *port, const struct rte_event ev[], "Unable to allocate event object"); goto send_partial; } - rte_memcpy(ev_temp, event, sizeof(struct rte_event)); + memcpy(ev_temp, event, sizeof(struct rte_event)); DPAA2_SET_FD_ADDR((&fd_arr[loop]), (size_t)ev_temp); DPAA2_SET_FD_LEN((&fd_arr[loop]), sizeof(struct rte_event)); @@ -230,7 +230,7 @@ static void dpaa2_eventdev_process_parallel(struct qbman_swp *swp, RTE_SET_USED(rxq); - rte_memcpy(ev, ev_temp, sizeof(struct rte_event)); + memcpy(ev, ev_temp, sizeof(struct rte_event)); rte_free(ev_temp); qbman_swp_dqrr_consume(swp, dq); @@ -249,7 +249,7 @@ static void dpaa2_eventdev_process_atomic(struct qbman_swp *swp, RTE_SET_USED(swp); RTE_SET_USED(rxq); - rte_memcpy(ev, ev_temp, sizeof(struct rte_event)); + memcpy(ev, ev_temp, sizeof(struct rte_event)); rte_free(ev_temp); *dpaa2_seqn(ev->mbuf) = dqrr_index + 1; DPAA2_PER_LCORE_DQRR_SIZE++; -- 2.43.0