linux-user: move QEMU_IFLA_BR_MULTI_BOOLOPT to the good function
PATCH 1/1 linux-user: move QEMU_IFLA_BR_MULTI_BOOLOPT to the good function
QEMU_IFLA_BR_MULTI_BOOLOPT has been added to the wrong function host_to_target_slave_data_bridge_nlattr(). Move it to host_to_target_data_bridge_nlattr().
This fixes following error:
Unknown QEMU_IFLA_BR type 46
--- linux-user/fd-trans.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
linux-user/fd-trans.c +6 -6
@@ -483,6 +483,12 @@ static abi_long host_to_target_data_bridge_nlattr(struct nlattr *nlattr,case QEMU_IFLA_BR_ROOT_ID :case QEMU_IFLA_BR_BRIDGE_ID :break ; +/* br_boolopt_multi { uint32_t, uint32_t } */ +case QEMU_IFLA_BR_MULTI_BOOLOPT : + u32 =NLA_DATA (nlattr); + u32[0 ] =tswap32 (u32[0 ]);/* optval */ + u32[1 ] =tswap32 (u32[1 ]);/* optmask */ +break ;default :gemu_log ("Unknown QEMU_IFLA_BR type %d\n" , nlattr->nla_type);break ;
@@ -546,12 +552,6 @@ static abi_long host_to_target_slave_data_bridge_nlattr(struct nlattr *nlattr,case QEMU_IFLA_BRPORT_ROOT_ID :case QEMU_IFLA_BRPORT_BRIDGE_ID :break ; -/* br_boolopt_multi { uint32_t, uint32_t } */ -case QEMU_IFLA_BR_MULTI_BOOLOPT : - u32 =NLA_DATA (nlattr); - u32[0 ] =tswap32 (u32[0 ]);/* optval */ - u32[1 ] =tswap32 (u32[1 ]);/* optmask */ -break ;default :gemu_log ("Unknown QEMU_IFLA_BRPORT type %d\n" , nlattr->nla_type);break ;
Signature · 1 line
2.21.0
Patchew URL: https://patchew.org/QEMU/[email protected]/
Patchew URL: https://patchew.org/QEMU/[email protected]/
Hi,
This series failed build test on s390x host. Please find the details below.
The full log is available at
http://patchew.org/logs/[email protected]/testing.s390x/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to [email protected]
Laurent Vivier
AppliedLe 26/06/2019 à 17:08, Laurent Vivier a écrit :
Quoted 34 lines
QEMU_IFLA_BR_MULTI_BOOLOPThas been added to the wrong functionhost_to_target_slave_data_bridge_nlattr(). Move it tohost_to_target_data_bridge_nlattr().This fixes following error:
UnknownQEMU_IFLA_BRtype 46Fixes 61b463fbf6cb ("linux-user: add new netlink types")Signed-off-by Laurent Vivier <[email protected]>--- linux-user/fd-trans.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)linux-user/fd-trans.c +6
-0@@ -483,6 +483,12 @@ static abi_long host_to_target_data_bridge_nlattr(struct nlattr *nlattr,case QEMU_IFLA_BR_ROOT_ID :case QEMU_IFLA_BR_BRIDGE_ID :break ; +/* br_boolopt_multi { uint32_t, uint32_t } */ +case QEMU_IFLA_BR_MULTI_BOOLOPT : + u32 =NLA_DATA (nlattr); + u32[0 ] =tswap32 (u32[0 ]);/* optval */ + u32[1 ] =tswap32 (u32[1 ]);/* optmask */ +break ;default :gemu_log ("Unknown QEMU_IFLA_BR type %d\n" , nlattr->nla_type);break ;@@ -546,12 +552,6 @@ static abi_long host_to_target_slave_data_bridge_nlattr(struct nlattr *nlattr,case QEMU_IFLA_BRPORT_ROOT_ID :case QEMU_IFLA_BRPORT_BRIDGE_ID :
linux-user/fd-trans.c static abi_long host_to_target_slave_data_bridge_nlattr(struct nlattr *nlattr, · line 557
Quoted 10 lines
linux-user/fd-trans.c +0
-6break ; -/* br_boolopt_multi { uint32_t, uint32_t } */ -case QEMU_IFLA_BR_MULTI_BOOLOPT : - u32 =NLA_DATA (nlattr); - u32[0 ] =tswap32 (u32[0 ]);/* optval */ - u32[1 ] =tswap32 (u32[1 ]);/* optmask */ -break ;default :gemu_log ("Unknown QEMU_IFLA_BRPORT type %d\n" , nlattr->nla_type);break ;
Applied to my linux-user branch.
Thanks,
Laurent