• Nikolay Aleksandrov's avatar
    net: bridge: vlan: use br_rports_fill_info() to export mcast router ports · dc002875
    Nikolay Aleksandrov authored
    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.
    Signed-off-by: default avatarNikolay Aleksandrov <nikolay@nvidia.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    dc002875
br_vlan_options.c 19 KB