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 D56A343C12; Fri, 1 Mar 2024 18:21:48 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C7C534346A; Fri, 1 Mar 2024 18:18:07 +0100 (CET) Received: from mail-pg1-f182.google.com (mail-pg1-f182.google.com [209.85.215.182]) by mails.dpdk.org (Postfix) with ESMTP id 84E95433DE for ; Fri, 1 Mar 2024 18:17:46 +0100 (CET) Received: by mail-pg1-f182.google.com with SMTP id 41be03b00d2f7-5d8b887bb0cso2012024a12.2 for ; Fri, 01 Mar 2024 09:17:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709313466; x=1709918266; 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=9KW1zdzm5T01/a+cb3Ov3Qa2achdwwIyvlZZPbx3Vx0=; b=w+ftNlgj1jI2ELOQTMVXzjCQZhxJHC1hfN7e1xYa4OpYO4r0D076ebIGbTO4Sbi+gh xcVyZjheIn8TBCykWsAeJJtzbnfEk63zr7iWSCJ8HXSTEIuqqhQ5nDplsp9Hgc8KVt2o tPVyrips5XtVchi6vtxeozTLygxPdRxV0/flPlqKcELrzlmlp6XeC5oxWoggKPySGSfh UYDw7mIz8hakE6EVNc/eiHpxqaM5Nbh/xmTHvgVVNdcW3ZXDdjv0mXjhLcn2SSKdmvEw Z7WDZll17EQcF1wgy573BOeh0BGa4BlMi0E87vO/dSm4nxBJKYrkNXfPyYyxMmy5FTa3 z9tQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709313466; x=1709918266; 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=9KW1zdzm5T01/a+cb3Ov3Qa2achdwwIyvlZZPbx3Vx0=; b=InYmYHziUMkPvVQsnjxA35SVd5aCzVf1rryYhEPR/H7k5n6Qht1jsCPLTgry5boG6R k2vwTudQjLGVXBSld8VBxN1jDA8CZE81fF0EFvtPnQnDboICXuy6uQiDKMyNjrxAITQJ 3eWCTG9Zz0ynGjrfKmUTGCQZtVFJ7t1UNGeF1ZSR17gJ3xDwRRl8nFRhKu7/ZwxeqVSa jf/KISkAaiHepEuFjP/6qZOaSlbrRvdcYSkSDbSUW41OlY/pXfLPmdqWcmfTtuvP2A93 8dB3y5UZk5dnjwTSASleN8xIOso7IR2LYYy7gQRrZNzV7CDZdaJSC5OlZTrPyz45Kswu Q3Fw== X-Gm-Message-State: AOJu0YyWY33xrnZ1XxxBgG7jx6o1Q8IRuSKJkEAiexJS8TPax4/5Vu2p ol2G8UfeIZknTIhV2cbKJIUfgp+itfeJV3f6zznvjix5lgZ45VyJOXjT2Jp7DcLVbzS9Ros+MFW YyWsEPQ== X-Google-Smtp-Source: AGHT+IFsnkl6DQqpTmO9i/aoR0o7vJFDOGvfIDm0Ikzq29Sl6XtQq3ZuHa/22LayMrJnvAWFzBQ14w== X-Received: by 2002:a17:903:22c2:b0:1dc:7bc:d025 with SMTP id y2-20020a17090322c200b001dc07bcd025mr2712415plg.4.1709313465813; Fri, 01 Mar 2024 09:17:45 -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.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 09:17:45 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Kai Ji , Fan Zhang , Ashish Gupta Subject: [PATCH v2 37/71] compress/qat: replace use of fixed size rte_memcpy Date: Fri, 1 Mar 2024 09:15:33 -0800 Message-ID: <20240301171707.95242-38-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/compress/qat/qat_comp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/compress/qat/qat_comp.c b/drivers/compress/qat/qat_comp.c index 559948a46a12..5bcbefe395bf 100644 --- a/drivers/compress/qat/qat_comp.c +++ b/drivers/compress/qat/qat_comp.c @@ -375,7 +375,7 @@ qat_comp_build_multiple_requests(void *in_op, struct qat_qp *qp, QAT_DP_LOG(DEBUG, "op %p, parent_cookie %p", op, parent_cookie); /* copy original op to the local variable for restoring later */ - rte_memcpy(&op_backup, op, sizeof(op_backup)); + memcpy(&op_backup, op, sizeof(op_backup)); parent_cookie->nb_child_responses = 0; parent_cookie->nb_children = 0; @@ -401,7 +401,7 @@ qat_comp_build_multiple_requests(void *in_op, struct qat_qp *qp, } /* prepare local dst mbuf */ - rte_memcpy(&dst_mbuf, op->m_dst, sizeof(dst_mbuf)); + memcpy(&dst_mbuf, op->m_dst, sizeof(dst_mbuf)); rte_pktmbuf_reset(&dst_mbuf); dst_mbuf.buf_len = dst_data_size; dst_mbuf.data_len = dst_data_size; @@ -457,7 +457,7 @@ qat_comp_build_multiple_requests(void *in_op, struct qat_qp *qp, if (ret < 0) { QAT_DP_LOG(WARNING, "Failed to build child descriptor"); /* restore op and clear cookie */ - rte_memcpy(op, &op_backup, sizeof(op_backup)); + memcpy(op, &op_backup, sizeof(op_backup)); parent_cookie->split_op = 0; parent_cookie->nb_children = 0; return ret; @@ -468,7 +468,7 @@ qat_comp_build_multiple_requests(void *in_op, struct qat_qp *qp, } /* restore backed up original op */ - rte_memcpy(op, &op_backup, sizeof(op_backup)); + memcpy(op, &op_backup, sizeof(op_backup)); if (nb_descr != num_descriptors_built) QAT_DP_LOG(ERR, "split op. expected %d, built %d", -- 2.43.0