History

net: bridge: multicast: make tracked EHT hosts limit configurable

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

Nikolay Aleksandrov committed 5 years ago

Commit 2dba4071 parent 89268b06 files · +64 −2Browse files

Showing the changes to include/uapi (1 of 6 files). Show all

Unified · Split

include/uapi/linux/if_link.h+2−0
@@ -525,6 +525,8 @@ enum { · 524 unmodified lines
525525 IFLA_BRPORT_BACKUP_PORT,
526526 IFLA_BRPORT_MRP_RING_OPEN,
527527 IFLA_BRPORT_MRP_IN_OPEN,
528+ IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT,
529+ IFLA_BRPORT_MCAST_EHT_HOSTS_CNT,
528530 __IFLA_BRPORT_MAX
529531 };
530532 #define IFLA_BRPORT_MAX (__IFLA_BRPORT_MAX - 1)