提交 c7ac1ab0 编写于 作者: Z zhenwei.pi 提交者: Gerd Hoffmann

usbredir: reorder fields in USBRedirDevice to reduce padding

Changing the current ordering saves 8 bytes per entry in x86_64.
Signed-off-by: Nzhenwei.pi <zhenwei.pi@youruncloud.com>
Message-id: 1520318781-22644-1-git-send-email-zhenwei.pi@youruncloud.com
Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
上级 e4ae62b8
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册