Add two new port attributes which make EHT hosts limit configurable and export the current number of tracked EHT hosts: - IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT: configure/retrieve current limit - IFLA_BRPORT_MCAST_EHT_HOSTS_CNT: current number of tracked hosts Setting IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT to 0 is currently not allowed. Note that we have to increase RTNL_SLAVE_MAX_TYPE to 38 minimum, I've increased it to 40 to have space for two more future entries. v2: move br_multicast_eht_set_hosts_limit() to br_multicast_eht.c, no functional change
Showing the changes to include/uapi (1 of 6 files). Show all
Unified · Split
| @@ -525,6 +525,8 @@ enum { · 524 unmodified lines | ||
| 525 | 525 | IFLA_BRPORT_BACKUP_PORT, |
| 526 | 526 | IFLA_BRPORT_MRP_RING_OPEN, |
| 527 | 527 | IFLA_BRPORT_MRP_IN_OPEN, |
| 528 | + IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT, | |
| 529 | + IFLA_BRPORT_MCAST_EHT_HOSTS_CNT, | |
| 528 | 530 | __IFLA_BRPORT_MAX |
| 529 | 531 | }; |
| 530 | 532 | #define IFLA_BRPORT_MAX (__IFLA_BRPORT_MAX - 1) |