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
414414
415415 struct virtio_crypto_config {
416416 /* See VIRTIO_CRYPTO_OP_* above */
417− __u32 status;
417+ __le32 status;
418418
419419 /*
420420 * Maximum number of data queue
421421 */
422− __u32 max_dataqueues;
422+ __le32 max_dataqueues;
423423
424424 /*
425425 * Specifies the services mask which the device support,
426426 * see VIRTIO_CRYPTO_SERVICE_* above
427427 */
428− __u32 crypto_services;
428+ __le32 crypto_services;
429429
430430 /* 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;
437437 /* Maximum length of cipher key */
438− __u32 max_cipher_key_len;
438+ __le32 max_cipher_key_len;
439439 /* Maximum length of authenticated key */
440− __u32 max_auth_key_len;
441− __u32 reserve;
440+ __le32 max_auth_key_len;
441+ __le32 reserve;
442442 /* Maximum size of each crypto request's content */
443− __u64 max_size;
443+ __le64 max_size;
444444 };
445445
446446 struct 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