Le 19/12/2021 à 16:45, Laurent Vivier a écrit :
add IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT and IFLA_BRPORT_MCAST_EHT_HOSTS_CNT

   # QEMU_LOG=unimp ip a
   Unknown QEMU_IFLA_BRPORT type 37
   Unknown QEMU_IFLA_BRPORT type 38

Signed-off-by: Laurent Vivier <laur...@vivier.eu>
---
  linux-user/fd-trans.c | 4 ++++
  1 file changed, 4 insertions(+)

diff --git a/linux-user/fd-trans.c b/linux-user/fd-trans.c
index 36e4a4c2aae8..a17d05c07923 100644
--- a/linux-user/fd-trans.c
+++ b/linux-user/fd-trans.c
@@ -182,6 +182,8 @@ enum {
      QEMU_IFLA_BRPORT_BACKUP_PORT,
      QEMU_IFLA_BRPORT_MRP_RING_OPEN,
      QEMU_IFLA_BRPORT_MRP_IN_OPEN,
+    QEMU_IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT,
+    QEMU_IFLA_BRPORT_MCAST_EHT_HOSTS_CNT,
      QEMU___IFLA_BRPORT_MAX
  };
@@ -607,6 +609,8 @@ static abi_long host_to_target_slave_data_bridge_nlattr(struct nlattr *nlattr,
      /* uin32_t */
      case QEMU_IFLA_BRPORT_COST:
      case QEMU_IFLA_BRPORT_BACKUP_PORT:
+    case QEMU_IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT:
+    case QEMU_IFLA_BRPORT_MCAST_EHT_HOSTS_CNT:
          u32 = NLA_DATA(nlattr);
          *u32 = tswap32(*u32);
          break;


Applied to my linux-user-for-7.0 branch.

Thanks,
Laurent

Reply via email to