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>
This commit is contained in:
zhenwei.pi 2018-03-06 14:46:21 +08:00 committed by Gerd Hoffmann
parent e4ae62b802
commit c7ac1ab020
1 changed files with 3 additions and 3 deletions

View File

@ -106,10 +106,10 @@ struct USBRedirDevice {
USBDevice dev;
/* Properties */
CharBackend cs;
uint8_t debug;
char *filter_str;
int32_t bootindex;
bool enable_streams;
uint8_t debug;
int32_t bootindex;
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;