Skip to contentSkip to conversation

vhost: include AKCIPHER algorithms in crypto_config

PATCH Superseded Gowrishankar Muthukrishnan 3 participants 6 messages Nov 19, 2024 – Feb 7, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vhost: include AKCIPHER algorithms in crypto_config

Update virtio_crypto_config structure to include AKCIPHER algorithms, as per VirtIO standard.

Change-Id I227bfa9b2bb840a92d50b21b538892927379f3f2
---
 lib/vhost/virtio_crypto.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/vhost/virtio_crypto.h +1 -1
index e3b93573c8..28877a5da3 100644
@@ -410,7 +410,7 @@ struct virtio_crypto_config {
 	uint32_t max_cipher_key_len;
 	/* Maximum length of authenticated key */
 	uint32_t max_auth_key_len;
-	uint32_t reserve;
+	uint32_t akcipher_algo;
 	/* Maximum size of each crypto request's content */
 	uint64_t max_size;
 };
Signature · 1 line
2.37.1
#1 lore raw

PATCH v2 1/1 vhost: include AKCIPHER algorithms in crypto_config

Update virtio_crypto_config structure to include AKCIPHER algorithms, as per VirtIO standard.

---
v1:
- updated patch description.
---

 lib/vhost/virtio_crypto.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/vhost/virtio_crypto.h +1 -1
index e3b93573c8..28877a5da3 100644
@@ -410,7 +410,7 @@ struct virtio_crypto_config {
 	uint32_t max_cipher_key_len;
 	/* Maximum length of authenticated key */
 	uint32_t max_auth_key_len;
-	uint32_t reserve;
+	uint32_t akcipher_algo;
 	/* Maximum size of each crypto request's content */
 	uint64_t max_size;
 };
Signature · 1 line
2.37.1
#3 lore raw

PATCH v3 1/1 vhost: include AKCIPHER algorithms in crypto_config

In reply to Gowrishankar Muthukrishnan

Update virtio_crypto_config structure to include AKCIPHER algorithms, as per VirtIO standard.

---
v3:
- rebased on main.

 lib/vhost/virtio_crypto.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/vhost/virtio_crypto.h +1 -1
index e3b93573c8..28877a5da3 100644
@@ -410,7 +410,7 @@ struct virtio_crypto_config {
 	uint32_t max_cipher_key_len;
 	/* Maximum length of authenticated key */
 	uint32_t max_auth_key_len;
-	uint32_t reserve;
+	uint32_t akcipher_algo;
 	/* Maximum size of each crypto request's content */
 	uint64_t max_size;
 };
Signature · 1 line
2.25.1
Reviewed-by on v3 1/1
#4 lore raw
Quoted 17 lines · Gowrishankar Muthukrishnan

Update virtio_crypto_config structure to include AKCIPHER algorithms, as per VirtIO standard.

---
v3:
- rebased on main.

  lib/vhost/virtio_crypto.h | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
lib/vhost/virtio_crypto.h +0 -0
index e3b93573c8..28877a5da3 100644

lib/vhost/virtio_crypto.h struct virtio_crypto_config { · line 416

Quoted 8 lines
lib/vhost/virtio_crypto.h +1 -1
@@ -410,7 +410,7 @@ struct virtio_crypto_config {
  	uint32_t max_cipher_key_len;
  	/* Maximum length of authenticated key */
  	uint32_t max_auth_key_len;
-	uint32_t reserve;
+	uint32_t akcipher_algo;
  	/* Maximum size of each crypto request's content */
  	uint64_t max_size;
  };

Thanks,
Maxime

#5 lore raw
In reply to Gowrishankar Muthukrishnan
Quoted 17 lines · Gowrishankar Muthukrishnan

Update virtio_crypto_config structure to include AKCIPHER algorithms, as per VirtIO standard.

---
v3:
- rebased on main.

  lib/vhost/virtio_crypto.h | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
lib/vhost/virtio_crypto.h +0 -0
index e3b93573c8..28877a5da3 100644

lib/vhost/virtio_crypto.h struct virtio_crypto_config { · line 416

Quoted 8 lines
lib/vhost/virtio_crypto.h +1 -1
@@ -410,7 +410,7 @@ struct virtio_crypto_config {
  	uint32_t max_cipher_key_len;
  	/* Maximum length of authenticated key */
  	uint32_t max_auth_key_len;
-	uint32_t reserve;
+	uint32_t akcipher_algo;
  	/* Maximum size of each crypto request's content */
  	uint64_t max_size;
  };

Applied to next-virtio/for-next-net.

Thanks,
Maxime