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 224E143BAE; Fri, 1 Mar 2024 00:04:32 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4558743392; Fri, 1 Mar 2024 00:01:23 +0100 (CET) Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) by mails.dpdk.org (Postfix) with ESMTP id 1936C4027C for ; Fri, 1 Mar 2024 00:00:31 +0100 (CET) Received: by mail-pj1-f51.google.com with SMTP id 98e67ed59e1d1-29aa8c4710bso1170576a91.1 for ; Thu, 29 Feb 2024 15:00:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709247630; x=1709852430; 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=MBJ9KbebiLctnXbRqq3++6bQ1vDYpL0QWPR9AA8xA1k=; b=NHAM0JG26SouS6zPAApkXduXxMED4zyJ8EclVJrcRtZv5ki5K/VAuqiM4J/hnhX6cp PqD5RIMWAyQ0Pr1DOJdX72PYl8m0jw5XaOXjDcNjKi3n6cQsZjK+KX1edOnDQRwYDusc 7wVMy5kGEDKJd7ksS7PQEskIFEoAQdWShuzRqqn9J6CzGifqFew229oYAhhJaU2rkxmf 7Cj2oCXmQgizAZIl3iPgqeiKK0X5r5E3G4g3o4suPIS8ChJOGMnvb2UgUKWltIKw3ohX XhjFq70RbYacwxFTmt57yNqeT9/rhRNmt96JR8zAl2Cd5tQ3wDJ+INSKQzDOWjIgIOz8 G0ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709247630; x=1709852430; 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=MBJ9KbebiLctnXbRqq3++6bQ1vDYpL0QWPR9AA8xA1k=; b=fXc3xCeuZNc4W1esnS2lNizzcYEiXwwmnOCdY1n5b3E3FfdtT0Xv8zXAM5Zgd/xjTg it1jhrLoPJgQFS/WsOnrv45oW7QhTarDyOQOl3rRWwuABl+3TNrM1MPv+L99jL046TiK OqGoBGgpV0n5oNrzyDY5xCCKh+HqftxUK/Eh/wza52o50mbj6DRTO/C0D9xoyKadwQL5 tTiQ/5X82upbEmxey/TCZgZx2wOlruQ+Q5U4JJtJxgfhlGh962LQK3FZHudHDn+opL3q SkHmn8ar25lFJo5ma2Lnwc+GoHolrvHze6jHt02sS3ZJWuUolka9LSVCricUzXUikKL7 cjRA== X-Gm-Message-State: AOJu0YwXy/riuMu8ljnf63wGoiNtURDnQir+LryLTcdQNugk8x04rh0a nM/SqCkuO2pVnERXGfVFpy5rf/PRoJS43fxuigCtc3R3M/3TJCkYWqPG5DAIxlFKBzj6KzLftad Y X-Google-Smtp-Source: AGHT+IE4kClvKcYaF4mLCJmcD6yuorXd7yDayBSzLNIy0C4OHnalDM5xv/jxhQzAuV3SgC9duj38Jg== X-Received: by 2002:a17:90a:b10b:b0:299:3780:e9c7 with SMTP id z11-20020a17090ab10b00b002993780e9c7mr504689pjq.2.1709247630096; Thu, 29 Feb 2024 15:00:30 -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.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 15:00:29 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Kai Ji Subject: [PATCH 36/71] common/qat: replace use of fixed size rte_memcpy Date: Thu, 29 Feb 2024 14:58:23 -0800 Message-ID: <20240229225936.483472-37-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/common/qat/qat_qp.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/common/qat/qat_qp.c b/drivers/common/qat/qat_qp.c index f95dd33375a0..0c30c4d8c18d 100644 --- a/drivers/common/qat/qat_qp.c +++ b/drivers/common/qat/qat_qp.c @@ -871,9 +871,8 @@ qat_cq_get_fw_cipher_crc_cap(struct qat_qp *qp) return -EINVAL; } - rte_memcpy(src_data_addr, - cipher_crc_cap_check_plaintext, - sizeof(cipher_crc_cap_check_plaintext)); + memcpy(src_data_addr, cipher_crc_cap_check_plaintext, + sizeof(cipher_crc_cap_check_plaintext)); phy_src_addr = rte_mem_virt2iova(src_data_addr); if (phy_src_addr == 0 || phy_src_addr == RTE_BAD_IOVA) { @@ -892,9 +891,8 @@ qat_cq_get_fw_cipher_crc_cap(struct qat_qp *qp) auth_param = (void *)((uint8_t *)cipher_param + ICP_QAT_FW_HASH_REQUEST_PARAMETERS_OFFSET); - rte_memcpy(cipher_param->u.cipher_IV_array, - cipher_crc_cap_check_iv, - sizeof(cipher_crc_cap_check_iv)); + memcpy(cipher_param->u.cipher_IV_array, cipher_crc_cap_check_iv, + sizeof(cipher_crc_cap_check_iv)); cipher_param->cipher_offset = cipher_crc_cap_check_cipher_offset; cipher_param->cipher_length = -- 2.43.0