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 7CE2C45B1E; Sat, 12 Oct 2024 21:04:03 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0DB9540267; Sat, 12 Oct 2024 21:04:03 +0200 (CEST) Received: from mail-pj1-f44.google.com (mail-pj1-f44.google.com [209.85.216.44]) by mails.dpdk.org (Postfix) with ESMTP id BACB140265 for ; Sat, 12 Oct 2024 21:04:01 +0200 (CEST) Received: by mail-pj1-f44.google.com with SMTP id 98e67ed59e1d1-2e0d9b70455so2384971a91.3 for ; Sat, 12 Oct 2024 12:04:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1728759840; x=1729364640; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=1r4OYWSewwmPynd9y/+tBTMt7zrW+JaT4RRtXWPhvxo=; b=tunu4A5K2OZicWJcvBju7BTH95f3T8EvjhenpdUxtcmgOV/16m9xoiHVItnr7b3Ed4 6zSa5xYzGVIR31Dcxjo3Hk9fhfAEO8RJ2D9guMg1ydZx9ak0gG7w+sgZLmhCMrjHYnts Hk78/29aT614fHLrCKlKyGzDAr2s3uqyHbndZtcPCWaUN9ZioNsZNoI3Vswpqjtjg1Ge a/qanhPCumTbxUGu0gFM3Qtu8T1+9xlp4QiJtadC6ZBoZv4kEg8Kcu+GFaX1kYo3h3kz 6MZA6/QF/CzApbTzQc39ld51/JHlPtsUFncgnkwEes7DZYCFxu2CzsDT3vc+D6MH6Jeu lXsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728759840; x=1729364640; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1r4OYWSewwmPynd9y/+tBTMt7zrW+JaT4RRtXWPhvxo=; b=C+NAa1C3QlW11j7jP9IiykcSdPkY7l1bHeK5COE35E93XJpC6O8spISL/1yGHj++yX 0oXiS62TXm2vQnHaYBZGk81cfpuDumSp7pfx4GwsVUGIhJWrADq3Fw8rqTjjdTsWpsuc Z4enbKNfSrmCQUDNPEPFyh5md8FhR6M/TSBrEAaQeBipScs6JiG3vQyCQcNTxI/luw4O BmnklfLKF4bOZ7dM00rRrQcxFQdzT1LDIRFNmCR6WdtpAe4TBj+zwYya29jyMSW0JhOA t3loB90OgLvZElNSnPJf3y6cAHkWpVJCp5yLG7goAxc8Occzw00ikPZF4y37sHwDDVL5 B7xg== X-Gm-Message-State: AOJu0YwyazMxiNHW5/RMhBEIhJUf9FKSmOtU/UwBRTm3KP1El6kKQ8W5 9YvWZsbWTvcKT9uQrkuMJD5O6lylCF/hjATxQzpVjIXhVG2NmXWv0vwWKDn+NKw= X-Google-Smtp-Source: AGHT+IHeQNQ8Zz2FnjpMCxElMIswUa6FecixDLmCCLiKyjwApOSUTG+DwJPejyJ8m8MIr3UkwP4a0A== X-Received: by 2002:a17:90a:ce17:b0:2e2:9522:278f with SMTP id 98e67ed59e1d1-2e2f0d91b3emr7445907a91.32.1728759840562; Sat, 12 Oct 2024 12:04:00 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e2ffe0ba79sm3265821a91.8.2024.10.12.12.04.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Oct 2024 12:04:00 -0700 (PDT) Date: Sat, 12 Oct 2024 12:03:57 -0700 From: Stephen Hemminger To: Hanxiao Li Cc: dev@dpdk.org, wang.yong19@zte.com.cn, gakhil@marvell.com Subject: Re: [PATCH v9 12/12] crypto/zsda: add zsda crypto PMD Message-ID: <20241012120357.1315c4e9@hermes.local> In-Reply-To: <20241011015701.1429733-10-li.hanxiao@zte.com.cn> References: <20241011015003.1429360-2-li.hanxiao@zte.com.cn> <20241011015701.1429733-1-li.hanxiao@zte.com.cn> <20241011015701.1429733-10-li.hanxiao@zte.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 On Fri, 11 Oct 2024 09:56:32 +0800 Hanxiao Li wrote: > diff --git a/drivers/crypto/zsda/zsda_sym_capabilities.h b/drivers/crypto/zsda/zsda_sym_capabilities.h > new file mode 100644 > index 0000000000..dd387b36ad > --- /dev/null > +++ b/drivers/crypto/zsda/zsda_sym_capabilities.h > @@ -0,0 +1,112 @@ > +/* SPDX-License-Identifier: BSD-3-Clause > + * Copyright(c) 2024 ZTE Corporation > + */ > + > +#ifndef _ZSDA_SYM_CAPABILITIES_H_ > +#define _ZSDA_SYM_CAPABILITIES_H_ > + > +static const struct rte_cryptodev_capabilities zsda_crypto_sym_capabilities[] = { > + {/* SHA1 */ > + .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, > + { .sym = {.xform_type = RTE_CRYPTO_SYM_XFORM_AUTH, > + { .auth = { > + .algo = RTE_CRYPTO_AUTH_SHA1, > + .block_size = 64, > + .key_size = {.min = 0, .max = 0, .increment = 0}, > + .digest_size = {.min = 20, .max = 20, .increment = 2}, > + .iv_size = {0} }, > + } }, > + } > + }, > + {/* SHA224 */ > + .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, > + { .sym = { > + .xform_type = RTE_CRYPTO_SYM_XFORM_AUTH, > + { .auth = { > + .algo = RTE_CRYPTO_AUTH_SHA224, > + .block_size = 64, > + .key_size = {.min = 0, .max = 0, .increment = 0}, > + .digest_size = {.min = 28, .max = 28, .increment = 0}, > + .iv_size = {0} }, > + } }, > + } > + }, > + {/* SHA256 */ > + .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, > + { .sym = { > + .xform_type = RTE_CRYPTO_SYM_XFORM_AUTH, > + { .auth = { > + .algo = RTE_CRYPTO_AUTH_SHA256, > + .block_size = 64, > + .key_size = {.min = 0, .max = 0, .increment = 0}, > + .digest_size = {.min = 32, .max = 32, .increment = 0}, > + .iv_size = {0} }, > + } }, > + } > + }, > + {/* SHA384 */ > + .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, > + { .sym = { > + .xform_type = RTE_CRYPTO_SYM_XFORM_AUTH, > + { .auth = { > + .algo = RTE_CRYPTO_AUTH_SHA384, > + .block_size = 128, > + .key_size = {.min = 0, .max = 0, .increment = 0}, > + .digest_size = {.min = 48, .max = 48, .increment = 0}, > + .iv_size = {0} }, > + } }, > + } > + }, > + {/* SHA512 */ > + .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, > + { .sym = { > + .xform_type = RTE_CRYPTO_SYM_XFORM_AUTH, > + { .auth = { > + .algo = RTE_CRYPTO_AUTH_SHA512, > + .block_size = 128, > + .key_size = {.min = 0, .max = 0, .increment = 0}, > + .digest_size = {.min = 64, .max = 64, .increment = 0}, > + .iv_size = {0} }, > + } }, > + } > + }, > + {/* SM3 */ > + .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, > + { .sym = { > + .xform_type = RTE_CRYPTO_SYM_XFORM_AUTH, > + { .auth = { > + .algo = RTE_CRYPTO_AUTH_SM3, > + .block_size = 64, > + .key_size = {.min = 0, .max = 0, .increment = 0}, > + .digest_size = {.min = 32, .max = 32, .increment = 0}, > + .iv_size = {0} }, > + } }, > + } > + }, > + {/* AES XTS */ > + .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, > + { .sym = { > + .xform_type = RTE_CRYPTO_SYM_XFORM_CIPHER, > + { .cipher = { > + .algo = RTE_CRYPTO_CIPHER_AES_XTS, > + .block_size = 16, > + .key_size = {.min = 16, .max = 32, .increment = 16}, > + .iv_size = {.min = 16, .max = 16, .increment = 0} }, > + } }, > + } > + }, > + {/* SM4 XTS */ > + .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, > + { .sym = { > + .xform_type = RTE_CRYPTO_SYM_XFORM_CIPHER, > + { .cipher = { > + .algo = RTE_CRYPTO_CIPHER_SM4_XTS, > + .block_size = 16, > + .key_size = {.min = 32, .max = 32, .increment = 0}, > + .iv_size = {.min = 16, .max = 16, .increment = 0} }, > + } }, > + } > + } > +}; > +#endif /* _ZSDA_SYM_CAPABILITIES_H_ */ > + This produces warning on merge Applying: crypto/zsda: add zsda crypto PMD .git/rebase-apply/patch:144: new blank line at EOF. + warning: 1 line adds whitespace errors.