mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-09-06 18:05:37 +00:00
linux-user: add new netlink types
Add QEMU_IFLA_MIN_MTU, QEMU_IFLA_MAX_MTU (from linux v4.19) QEMU_IFLA_BRPORT_ISOLATED (from linux v4.18) and QEMU_IFLA_BRPORT_BACKUP_PORT (from linux v4.19). These new types fix this error flow with sudo: ... Unknown host QEMU_IFLA type: 50 Unknown host QEMU_IFLA type: 51 Unknown QEMU_IFLA_BRPORT type 33 ... Signed-off-by: Laurent Vivier <laurent@vivier.eu> Message-Id: <20190206193211.6683-1-laurent@vivier.eu>
This commit is contained in:
parent
9d0bd0cdd0
commit
0f5faca782
|
@ -129,6 +129,8 @@ enum {
|
||||||
QEMU_IFLA_CARRIER_UP_COUNT,
|
QEMU_IFLA_CARRIER_UP_COUNT,
|
||||||
QEMU_IFLA_CARRIER_DOWN_COUNT,
|
QEMU_IFLA_CARRIER_DOWN_COUNT,
|
||||||
QEMU_IFLA_NEW_IFINDEX,
|
QEMU_IFLA_NEW_IFINDEX,
|
||||||
|
QEMU_IFLA_MIN_MTU,
|
||||||
|
QEMU_IFLA_MAX_MTU,
|
||||||
QEMU___IFLA_MAX
|
QEMU___IFLA_MAX
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -166,6 +168,8 @@ enum {
|
||||||
QEMU_IFLA_BRPORT_BCAST_FLOOD,
|
QEMU_IFLA_BRPORT_BCAST_FLOOD,
|
||||||
QEMU_IFLA_BRPORT_GROUP_FWD_MASK,
|
QEMU_IFLA_BRPORT_GROUP_FWD_MASK,
|
||||||
QEMU_IFLA_BRPORT_NEIGH_SUPPRESS,
|
QEMU_IFLA_BRPORT_NEIGH_SUPPRESS,
|
||||||
|
QEMU_IFLA_BRPORT_ISOLATED,
|
||||||
|
QEMU_IFLA_BRPORT_BACKUP_PORT,
|
||||||
QEMU___IFLA_BRPORT_MAX
|
QEMU___IFLA_BRPORT_MAX
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -510,6 +514,7 @@ static abi_long host_to_target_slave_data_bridge_nlattr(struct nlattr *nlattr,
|
||||||
case QEMU_IFLA_BRPORT_VLAN_TUNNEL:
|
case QEMU_IFLA_BRPORT_VLAN_TUNNEL:
|
||||||
case QEMU_IFLA_BRPORT_BCAST_FLOOD:
|
case QEMU_IFLA_BRPORT_BCAST_FLOOD:
|
||||||
case QEMU_IFLA_BRPORT_NEIGH_SUPPRESS:
|
case QEMU_IFLA_BRPORT_NEIGH_SUPPRESS:
|
||||||
|
case QEMU_IFLA_BRPORT_ISOLATED:
|
||||||
break;
|
break;
|
||||||
/* uint16_t */
|
/* uint16_t */
|
||||||
case QEMU_IFLA_BRPORT_PRIORITY:
|
case QEMU_IFLA_BRPORT_PRIORITY:
|
||||||
|
@ -523,6 +528,7 @@ static abi_long host_to_target_slave_data_bridge_nlattr(struct nlattr *nlattr,
|
||||||
break;
|
break;
|
||||||
/* uin32_t */
|
/* uin32_t */
|
||||||
case QEMU_IFLA_BRPORT_COST:
|
case QEMU_IFLA_BRPORT_COST:
|
||||||
|
case QEMU_IFLA_BRPORT_BACKUP_PORT:
|
||||||
u32 = NLA_DATA(nlattr);
|
u32 = NLA_DATA(nlattr);
|
||||||
*u32 = tswap32(*u32);
|
*u32 = tswap32(*u32);
|
||||||
break;
|
break;
|
||||||
|
@ -787,6 +793,8 @@ static abi_long host_to_target_data_link_rtattr(struct rtattr *rtattr)
|
||||||
case QEMU_IFLA_GSO_MAX_SIZE:
|
case QEMU_IFLA_GSO_MAX_SIZE:
|
||||||
case QEMU_IFLA_CARRIER_UP_COUNT:
|
case QEMU_IFLA_CARRIER_UP_COUNT:
|
||||||
case QEMU_IFLA_CARRIER_DOWN_COUNT:
|
case QEMU_IFLA_CARRIER_DOWN_COUNT:
|
||||||
|
case QEMU_IFLA_MIN_MTU:
|
||||||
|
case QEMU_IFLA_MAX_MTU:
|
||||||
u32 = RTA_DATA(rtattr);
|
u32 = RTA_DATA(rtattr);
|
||||||
*u32 = tswap32(*u32);
|
*u32 = tswap32(*u32);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue