History

virtio_crypto: correct tags for config space fields

Since crypto is a modern-only device, tag config space fields as having little endian-ness.

Michael S. Tsirkin committed 6 years ago

Commit 24bcf351 parent dbe2dc81 file · +13 −13Browse files

Showing the changes to include/uapi/linux (1 of 1 file). Show all

Unified · Split

include/uapi/linux/virtio_crypto.h+13−13
@@ -414,33 +414,33 @@ struct virtio_crypto_op_data_req { · 413 unmodified lines
414 414
415struct virtio_crypto_config {415struct virtio_crypto_config {
416 /* See VIRTIO_CRYPTO_OP_* above */416 /* See VIRTIO_CRYPTO_OP_* above */
417 __u32 status;417 __le32 status;
418 418
419 /*419 /*
420 * Maximum number of data queue420 * Maximum number of data queue
421 */421 */
422 __u32 max_dataqueues;422 __le32 max_dataqueues;
423 423
424 /*424 /*
425 * Specifies the services mask which the device support,425 * Specifies the services mask which the device support,
426 * see VIRTIO_CRYPTO_SERVICE_* above426 * see VIRTIO_CRYPTO_SERVICE_* above
427 */427 */
428 __u32 crypto_services;428 __le32 crypto_services;
429 429
430 /* Detailed algorithms mask */430 /* Detailed algorithms mask */
431 __u32 cipher_algo_l;431 __le32 cipher_algo_l;
432 __u32 cipher_algo_h;432 __le32 cipher_algo_h;
433 __u32 hash_algo;433 __le32 hash_algo;
434 __u32 mac_algo_l;434 __le32 mac_algo_l;
435 __u32 mac_algo_h;435 __le32 mac_algo_h;
436 __u32 aead_algo;436 __le32 aead_algo;
437 /* Maximum length of cipher key */437 /* Maximum length of cipher key */
438 __u32 max_cipher_key_len;438 __le32 max_cipher_key_len;
439 /* Maximum length of authenticated key */439 /* Maximum length of authenticated key */
440 __u32 max_auth_key_len;440 __le32 max_auth_key_len;
441 __u32 reserve;441 __le32 reserve;
442 /* Maximum size of each crypto request's content */442 /* Maximum size of each crypto request's content */
443 __u64 max_size;443 __le64 max_size;
444};444};
445 445
446struct virtio_crypto_inhdr {446struct virtio_crypto_inhdr {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t