Since crypto is a modern-only device, tag config space fields as having little endian-ness.
Showing the changes to include/uapi/linux (1 of 1 file). Show all
Unified · Split
| @@ -414,33 +414,33 @@ struct virtio_crypto_op_data_req { · 413 unmodified lines | ||
| 414 | 414 | |
| 415 | 415 | struct virtio_crypto_config { |
| 416 | 416 | /* See VIRTIO_CRYPTO_OP_* above */ |
| 417 | − __u32 status; | |
| 417 | + __le32 status; | |
| 418 | 418 | |
| 419 | 419 | /* |
| 420 | 420 | * Maximum number of data queue |
| 421 | 421 | */ |
| 422 | − __u32 max_dataqueues; | |
| 422 | + __le32 max_dataqueues; | |
| 423 | 423 | |
| 424 | 424 | /* |
| 425 | 425 | * Specifies the services mask which the device support, |
| 426 | 426 | * see VIRTIO_CRYPTO_SERVICE_* above |
| 427 | 427 | */ |
| 428 | − __u32 crypto_services; | |
| 428 | + __le32 crypto_services; | |
| 429 | 429 | |
| 430 | 430 | /* Detailed algorithms mask */ |
| 431 | − __u32 cipher_algo_l; | |
| 432 | − __u32 cipher_algo_h; | |
| 433 | − __u32 hash_algo; | |
| 434 | − __u32 mac_algo_l; | |
| 435 | − __u32 mac_algo_h; | |
| 436 | − __u32 aead_algo; | |
| 431 | + __le32 cipher_algo_l; | |
| 432 | + __le32 cipher_algo_h; | |
| 433 | + __le32 hash_algo; | |
| 434 | + __le32 mac_algo_l; | |
| 435 | + __le32 mac_algo_h; | |
| 436 | + __le32 aead_algo; | |
| 437 | 437 | /* Maximum length of cipher key */ |
| 438 | − __u32 max_cipher_key_len; | |
| 438 | + __le32 max_cipher_key_len; | |
| 439 | 439 | /* Maximum length of authenticated key */ |
| 440 | − __u32 max_auth_key_len; | |
| 441 | − __u32 reserve; | |
| 440 | + __le32 max_auth_key_len; | |
| 441 | + __le32 reserve; | |
| 442 | 442 | /* Maximum size of each crypto request's content */ |
| 443 | − __u64 max_size; | |
| 443 | + __le64 max_size; | |
| 444 | 444 | }; |
| 445 | 445 | |
| 446 | 446 | struct virtio_crypto_inhdr { |