[v3] vhost: include AKCIPHER algorithms in crypto_config

Message ID 20250107182551.2141-1-gmuthukrishn@marvell.com (mailing list archive)
State Awaiting Upstream
Delegated to: Maxime Coquelin
Headers
Series [v3] vhost: include AKCIPHER algorithms in crypto_config |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/loongarch-compilation success Compilation OK
ci/loongarch-unit-testing success Unit Testing PASS
ci/Intel-compilation success Compilation OK
ci/intel-Testing success Testing PASS
ci/github-robot: build success github build: passed
ci/intel-Functional success Functional PASS
ci/iol-abi-testing success Testing PASS
ci/iol-unit-amd64-testing success Testing PASS
ci/iol-compile-amd64-testing success Testing PASS
ci/iol-unit-arm64-testing success Testing PASS
ci/iol-broadcom-Performance success Performance Testing PASS
ci/iol-mellanox-Performance success Performance Testing PASS
ci/iol-intel-Functional success Functional Testing PASS
ci/iol-intel-Performance success Performance Testing PASS
ci/iol-marvell-Functional success Functional Testing PASS
ci/iol-sample-apps-testing success Testing PASS

Commit Message

Gowrishankar Muthukrishnan Jan. 7, 2025, 6:25 p.m. UTC
Update virtio_crypto_config structure to include AKCIPHER algorithms,
as per VirtIO standard.

Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>
---
v3:
 - rebased on main.

 lib/vhost/virtio_crypto.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Maxime Coquelin Feb. 6, 2025, 8:56 a.m. UTC | #1
On 1/7/25 7:25 PM, Gowrishankar Muthukrishnan wrote:
> Update virtio_crypto_config structure to include AKCIPHER algorithms,
> as per VirtIO standard.
> 
> Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com>
> Acked-by: Akhil Goyal <gakhil@marvell.com>
> ---
> v3:
>   - rebased on main.
> 
>   lib/vhost/virtio_crypto.h | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lib/vhost/virtio_crypto.h b/lib/vhost/virtio_crypto.h
> index e3b93573c8..28877a5da3 100644
> --- a/lib/vhost/virtio_crypto.h
> +++ b/lib/vhost/virtio_crypto.h
> @@ -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;
>   };

Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>

Thanks,
Maxime
  
Maxime Coquelin Feb. 7, 2025, 2:10 p.m. UTC | #2
On 1/7/25 7:25 PM, Gowrishankar Muthukrishnan wrote:
> Update virtio_crypto_config structure to include AKCIPHER algorithms,
> as per VirtIO standard.
> 
> Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com>
> Acked-by: Akhil Goyal <gakhil@marvell.com>
> ---
> v3:
>   - rebased on main.
> 
>   lib/vhost/virtio_crypto.h | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lib/vhost/virtio_crypto.h b/lib/vhost/virtio_crypto.h
> index e3b93573c8..28877a5da3 100644
> --- a/lib/vhost/virtio_crypto.h
> +++ b/lib/vhost/virtio_crypto.h
> @@ -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
  

Patch

diff --git a/lib/vhost/virtio_crypto.h b/lib/vhost/virtio_crypto.h
index e3b93573c8..28877a5da3 100644
--- a/lib/vhost/virtio_crypto.h
+++ b/lib/vhost/virtio_crypto.h
@@ -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;
 };