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 23AEF43C12; Fri, 1 Mar 2024 18:21:43 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AAB0C43443; Fri, 1 Mar 2024 18:18:06 +0100 (CET) Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) by mails.dpdk.org (Postfix) with ESMTP id B3532433DC for ; Fri, 1 Mar 2024 18:17:45 +0100 (CET) Received: by mail-pl1-f171.google.com with SMTP id d9443c01a7336-1dc49b00bdbso24002875ad.3 for ; Fri, 01 Mar 2024 09:17:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709313465; x=1709918265; 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=aAjLk4Iaf+8+e4TQTVFmLRar/8o/9Yc6NekXpp7DMo88veyxvq0MxTpDzKFm1wwIKZ MQgQrvVmHXYHCmqg+pa30Mnk7Ku8QaXtSJPZAsKmit1ldFj5ZcCzINjfMhQXUmu6LrEg FG4P2/ZFnyUi22OFmYFA9U91IScrZqmOXVamZktsaBU9XWfCFgpNwXjHMApaAIWpWdJ4 XFUioasbjX0e9DvzWeaxLFsGJkIqfb35bFm8U8VNgXQ1XxKwD/eACWNjAQ6eIIa0WC8Z vZNmrGlWAYgUSJ5cGPj94zknHFJohNKhEzM9Sl/eIaNW8MDZZky8lkMaraoMeTRydo38 gnbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709313465; x=1709918265; 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=ii3if1mTdimoxUeVdc/SHMI+v9IDI1kB35Cs9LES2C7Jqt8R5u4wnn8zhIbpP1CnDV b6zlOXxwCQR8rfMpzcxDnJV1yCxDZg0ctQtNQBTFo+Um4OmaZ+c74rQj5kKHJW6gqsUM l9qI2SLKTF9bZnbaR/IL3eXeUIPjLk+y6VtkCUfsElwoJmhMCmAB4T1spVi07rSzC0gI O/6eFiBFpEvE705YK+GdB2GWvcantvHCDIguCLIEM+m/Hi+2kSOM9DWyFjyzJoxAQDmo J0W3OP5jZFbkSEhd6jknTAUGSI19nZiT3ebwJEee9Hpu8CcGrBesE4NhFCfOmvE+qDJ2 Hdzw== X-Gm-Message-State: AOJu0YylJkHNOoPUWB+BmTr6M1lT4TBWkTOvwSgTG47oR/8mWYzOU8sR ToWzqcnUsjAHtDUxIUiyojK+XguwbYJBpWyX0C7yeAeVwyfHmC0PduZ7WHloQ6PxxkJPoark5MU N8xu1ZQ== X-Google-Smtp-Source: AGHT+IGNylCTFVu1jVcQKUIBz0SiELIPtNbLhO2bGB50hCprxdUqGrIMtxR8ttCyAxQKOUOD6q00Cw== X-Received: by 2002:a17:902:6b4c:b0:1db:cb13:10f1 with SMTP id g12-20020a1709026b4c00b001dbcb1310f1mr1955515plt.19.1709313464970; Fri, 01 Mar 2024 09:17:44 -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.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 09:17:44 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Kai Ji Subject: [PATCH v2 36/71] common/qat: replace use of fixed size rte_memcpy Date: Fri, 1 Mar 2024 09:15:32 -0800 Message-ID: <20240301171707.95242-37-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/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