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 B5B0745F2A; Tue, 24 Dec 2024 08:37:30 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 50162402AD; Tue, 24 Dec 2024 08:37:30 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 8944040263 for ; Tue, 24 Dec 2024 08:37:28 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4BO7ApgI003101; Mon, 23 Dec 2024 23:37:27 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=pfpt0220; bh=KxQHP5IHeQmp2N5THFLI4ZU H/0fgJCtPBEg8zIBlqZU=; b=IHXmtE50mDPZp8oSqOqoJvWRVL18j8gG8ligm+y kWxvj8TxmuYpUKsStiTxL1HbAY1EZR5jqV1KB635s2cGkzGa/p0BctbRUER93mCb DePDnBnkhoTyLUj1ksIxpYxwgnmrnKUfeSTjelJV2lLUI+KBBBO2E0lrJJ3t5W/s WDZtxPOqq+VKbd8+ArJoiD4ulJe0B25vWbfneYlRklLjvbGftgpU3dyPLGTSE/6w GE6+Hp8cH8kgXw2ySPEXOy/9gL6m9Q873URTXBqMvP43cRVnWf0DNJj43X8FX5yu VxP2vce8GMS+c8A81GXtO0Q/uwkFDPa/2bdmccf+CwgHl/Q== Received: from dc6wp-exch02.marvell.com ([4.21.29.225]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 43qrb801yj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 23 Dec 2024 23:37:27 -0800 (PST) Received: from DC6WP-EXCH02.marvell.com (10.76.176.209) by DC6WP-EXCH02.marvell.com (10.76.176.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Mon, 23 Dec 2024 23:37:26 -0800 Received: from maili.marvell.com (10.69.176.80) by DC6WP-EXCH02.marvell.com (10.76.176.209) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Mon, 23 Dec 2024 23:37:26 -0800 Received: from IN-lckQE5Rwctls.marvell.com (IN-lckQE5Rwctls.marvell.com [10.28.163.68]) by maili.marvell.com (Postfix) with ESMTP id DF8553F705D; Mon, 23 Dec 2024 23:37:22 -0800 (PST) From: Gowrishankar Muthukrishnan To: , Akhil Goyal , Maxime Coquelin , Chenbo Xia , Fan Zhang , Jay Zhou CC: , , Rajesh Mudimadugula , Gowrishankar Muthukrishnan Subject: [v1 00/16] crypto/virtio: vDPA and asymmetric support Date: Tue, 24 Dec 2024 13:06:58 +0530 Message-ID: X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: JGxM2-3ayyCIl09N-QyROPP9_VnFFKEp X-Proofpoint-GUID: JGxM2-3ayyCIl09N-QyROPP9_VnFFKEp X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 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 This series introduces vDPA backend support to virtio crypto PMD. Also added asymmetric RSA support. Gowrishankar Muthukrishnan (14): vhost: include AKCIPHER algorithms in crypto_config crypto/virtio: add asymmetric RSA support test/crypto: check for RSA capability test/crypto: add asymmetric tests for virtio PMD vhost: add asymmetric RSA support examples/vhost_crypto: add asymmetric support crypto/virtio: fix dataqueues iteration crypto/virtio: refactor queue operations crypto/virtio: add packed ring support common/virtio: common virtio log common/virtio: move vDPA to common directory common/virtio: support cryptodev in vdev setup crypto/virtio: add vhost backend to virtio_user test/crypto: test virtio_crypto_user PMD Rajesh Mudimadugula (2): crypto/virtio: remove redundant crypto queue free test/crypto: return proper codes in create session .mailmap | 1 + app/test/test_cryptodev.c | 45 +- app/test/test_cryptodev.h | 1 + app/test/test_cryptodev_asym.c | 68 + app/test/test_cryptodev_rsa_test_vectors.h | 4 + drivers/common/virtio/meson.build | 13 + drivers/common/virtio/version.map | 9 + drivers/{net => common}/virtio/virtio_logs.h | 16 +- .../virtio/virtio_user/vhost.h | 2 - .../virtio/virtio_user/vhost_vdpa.c | 31 +- drivers/crypto/virtio/meson.build | 11 +- drivers/crypto/virtio/virtio_crypto_algs.h | 2 +- .../virtio/virtio_crypto_capabilities.h | 19 + .../{virtio_logs.h => virtio_crypto_logs.h} | 30 +- drivers/crypto/virtio/virtio_cryptodev.c | 1105 +++++++++++------ drivers/crypto/virtio/virtio_cryptodev.h | 16 +- drivers/crypto/virtio/virtio_cvq.c | 229 ++++ drivers/crypto/virtio/virtio_cvq.h | 33 + drivers/crypto/virtio/virtio_pci.h | 38 +- drivers/crypto/virtio/virtio_ring.h | 65 +- drivers/crypto/virtio/virtio_rxtx.c | 707 ++++++++++- drivers/crypto/virtio/virtio_rxtx.h | 13 + .../crypto/virtio/virtio_user/vhost_vdpa.c | 310 +++++ .../virtio/virtio_user/virtio_user_dev.c | 774 ++++++++++++ .../virtio/virtio_user/virtio_user_dev.h | 88 ++ drivers/crypto/virtio/virtio_user_cryptodev.c | 586 +++++++++ drivers/crypto/virtio/virtqueue.c | 229 +++- drivers/crypto/virtio/virtqueue.h | 223 +++- drivers/meson.build | 1 + drivers/net/virtio/meson.build | 4 +- drivers/net/virtio/virtio.c | 3 +- drivers/net/virtio/virtio_ethdev.c | 5 +- drivers/net/virtio/virtio_net_logs.h | 30 + drivers/net/virtio/virtio_pci.c | 3 +- drivers/net/virtio/virtio_pci_ethdev.c | 3 +- drivers/net/virtio/virtio_rxtx.c | 3 +- drivers/net/virtio/virtio_rxtx_packed.c | 3 +- drivers/net/virtio/virtio_rxtx_packed.h | 3 +- drivers/net/virtio/virtio_rxtx_packed_avx.h | 3 +- drivers/net/virtio/virtio_rxtx_simple.h | 3 +- drivers/net/virtio/virtio_user/vhost_kernel.c | 4 +- .../net/virtio/virtio_user/vhost_kernel_tap.c | 3 +- drivers/net/virtio/virtio_user/vhost_user.c | 2 +- .../net/virtio/virtio_user/virtio_user_dev.c | 6 +- .../net/virtio/virtio_user/virtio_user_dev.h | 24 +- drivers/net/virtio/virtio_user_ethdev.c | 5 +- drivers/net/virtio/virtqueue.c | 3 +- drivers/net/virtio/virtqueue.h | 3 +- examples/vhost_crypto/main.c | 54 +- lib/cryptodev/cryptodev_pmd.h | 6 + lib/vhost/vhost_crypto.c | 504 +++++++- lib/vhost/vhost_user.h | 33 +- lib/vhost/virtio_crypto.h | 82 +- 53 files changed, 4846 insertions(+), 615 deletions(-) create mode 100644 drivers/common/virtio/meson.build create mode 100644 drivers/common/virtio/version.map rename drivers/{net => common}/virtio/virtio_logs.h (61%) rename drivers/{net => common}/virtio/virtio_user/vhost.h (98%) rename drivers/{net => common}/virtio/virtio_user/vhost_vdpa.c (96%) rename drivers/crypto/virtio/{virtio_logs.h => virtio_crypto_logs.h} (74%) create mode 100644 drivers/crypto/virtio/virtio_cvq.c create mode 100644 drivers/crypto/virtio/virtio_cvq.h create mode 100644 drivers/crypto/virtio/virtio_rxtx.h create mode 100644 drivers/crypto/virtio/virtio_user/vhost_vdpa.c create mode 100644 drivers/crypto/virtio/virtio_user/virtio_user_dev.c create mode 100644 drivers/crypto/virtio/virtio_user/virtio_user_dev.h create mode 100644 drivers/crypto/virtio/virtio_user_cryptodev.c create mode 100644 drivers/net/virtio/virtio_net_logs.h -- 2.25.1