aboutsummaryrefslogtreecommitdiff
path: root/hw/usb
diff options
context:
space:
mode:
authorzhenwei.pi <zhenwei.pi@youruncloud.com>2018-03-06 14:46:21 +0800
committerGerd Hoffmann <kraxel@redhat.com>2018-03-12 11:43:49 +0100
commitc7ac1ab0201d47d12b75e1c98d79869bcdad5732 (patch)
tree39c07ac88dd096bf149f502096ac04c5f682f9b7 /hw/usb
parente4ae62b802cec437f877f2cadc4ef059cc0eca76 (diff)
usbredir: reorder fields in USBRedirDevice to reduce padding
Changing the current ordering saves 8 bytes per entry in x86_64. Signed-off-by: zhenwei.pi <zhenwei.pi@youruncloud.com> Message-id: 1520318781-22644-1-git-send-email-zhenwei.pi@youruncloud.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb')
-rw-r--r--hw/usb/redirect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/usb/redirect.c b/hw/usb/redirect.c
index ec174309db..65a9196c1a 100644
--- a/hw/usb/redirect.c
+++ b/hw/usb/redirect.c
@@ -106,10 +106,10 @@ struct USBRedirDevice {
USBDevice dev;
/* Properties */
CharBackend cs;
+ bool enable_streams;
uint8_t debug;
- char *filter_str;
int32_t bootindex;
- bool enable_streams;
+ char *filter_str;
/* Data passed from chardev the fd_read cb to the usbredirparser read cb */
const uint8_t *read_buf;
int read_buf_size;