From: zhenwei.pi Date: Tue, 6 Mar 2018 06:46:21 +0000 (+0800) Subject: usbredir: reorder fields in USBRedirDevice to reduce padding X-Git-Tag: v2.12.1~213^2 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=c7ac1ab0201d47d12b75e1c98d79869bcdad5732;p=mirror_qemu.git 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 Message-id: 1520318781-22644-1-git-send-email-zhenwei.pi@youruncloud.com Signed-off-by: Gerd Hoffmann --- 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;