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 6C25043BAE; Fri, 1 Mar 2024 00:04:45 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9ABD04339F; Fri, 1 Mar 2024 00:01:25 +0100 (CET) Received: from mail-pg1-f178.google.com (mail-pg1-f178.google.com [209.85.215.178]) by mails.dpdk.org (Postfix) with ESMTP id 1F5F742FEF for ; Fri, 1 Mar 2024 00:00:32 +0100 (CET) Received: by mail-pg1-f178.google.com with SMTP id 41be03b00d2f7-5dc949f998fso1055107a12.3 for ; Thu, 29 Feb 2024 15:00:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709247631; x=1709852431; 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=npueT5+fmUJf9mvPIQ6RLyc+iR/26jgWeX1H5vyD1DA78bQl0/led4ul60ckY6GU94 BnP0h1fS++/8pTquqA+0FJK+jm+m+AvQ54Fbv1T5C/qjCWU+e2kGeBW9eo3hDu9uQnth gPibUccqT/ipjuy6Vl84HpQsKvC5Vpi8dSyJPKuhVweFE9B4nl/ETzaAdpg+YwZMoVZi f8RcCa0wy27XnJeoWzQ5YQdcX18O96JEB0j76A7ajxCIc0AsGm30PaBGENMMI8Ui2A+I vdt+dSxIfaXHZhz9Zd3eXzeqdDVLpJXkPr5go4SoM+BQRl37Hzcf87x6vBAIk8smQRFd Yq/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709247631; x=1709852431; 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=hDbhdnXy7lJIJSQ0IIiw4T+Cpl+O5us+h325hZ/TWoKzkNJ0LJbK7xiD9IkHiC0xrk FIUqLRzYjlsHhPYGSW9PMUjXLLXttA/ZAwNH9yHkUJVsNn+E1MIs2loWpR1CMn2+ROqF UFwJI3bi23I5gU+h+9j4XDDIcuAzvQwbPtcvAOPn02UhZt/PiQm0AgN2FhZYJhIWEszB nIw3r0AbEzNkCu5MoKKyUPbuTBtpLS7N2SEb6thwt+7eeYy8ZETGpGeg+s4jFCy+CUfn vRp9pWnzHH92bNeRNQhuf9+rO/2peHNS+ubnJAi5jdiYmevUSk68BxVXPCZRxH1QF4O6 BIrw== X-Gm-Message-State: AOJu0YxHCldEgADpdyxYmq289+ReSTmjJyxsn1Hyd36sFDpuExm5rGyM 87NqVTpND97XOg8IL+1NdV8zzI/j5Aru77zjUqfb709Gj1mWWzokNo5i8IXTJYtu93Gdshw7Izj 7 X-Google-Smtp-Source: AGHT+IE6FyCGvpQexAAVNIcat5LuBaHzrC2kJnwH2vjoM6CBFspRxEAY+AGd1Fm+q1y/v0d7q+srBA== X-Received: by 2002:a17:90a:cb94:b0:29b:171c:a787 with SMTP id a20-20020a17090acb9400b0029b171ca787mr35478pju.19.1709247631426; Thu, 29 Feb 2024 15:00:31 -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.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 15:00:30 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Kai Ji , Fan Zhang , Ashish Gupta Subject: [PATCH 37/71] compress/qat: replace use of fixed size rte_memcpy Date: Thu, 29 Feb 2024 14:58:24 -0800 Message-ID: <20240229225936.483472-38-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/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