History

net: bridge: vlan: use br_rports_fill_info() to export mcast router ports

Embed the standard multicast router port export by br_rports_fill_info() into a new global vlan attribute BRIDGE_VLANDB_GOPTS_MCAST_ROUTER_PORTS. In order to have the same format for the global bridge mcast context and the per-vlan mcast context we need a double-nesting: - BRIDGE_VLANDB_GOPTS_MCAST_ROUTER_PORTS - MDBA_ROUTER Currently we don't compare router lists, if any router port exists in the bridge mcast contexts we consider their option sets as different and export them separately. In addition we export the router port vlan id when dumping similar to the router port notification format.

Nikolay Aleksandrov committed 5 years ago

Commit dc002871 parent e04d3774 files · +38 −13Browse files

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

Unified · Split

include/uapi/linux/if_bridge.h+1−0
@@ -562,6 +562,7 @@ enum { · 561 unmodified lines
562562 BRIDGE_VLANDB_GOPTS_MCAST_STARTUP_QUERY_INTVL,
563563 BRIDGE_VLANDB_GOPTS_MCAST_QUERIER,
564564 BRIDGE_VLANDB_GOPTS_MCAST_ROUTER,
565+ BRIDGE_VLANDB_GOPTS_MCAST_ROUTER_PORTS,
565566 __BRIDGE_VLANDB_GOPTS_MAX
566567 };
567568 #define BRIDGE_VLANDB_GOPTS_MAX (__BRIDGE_VLANDB_GOPTS_MAX - 1)