• Scott Feldman's avatar
    rocker: install/remove router MAC for untagged VLAN when joining/leaving bridge · 027e00dc
    Scott Feldman authored
    When the port joins a bridge, the port's internal VLAN ID needs to change
    to the bridge's internal VLAN ID.  Likewise, when leaving the bridge, the
    internal VLAN ID reverts back the port's original internal VLAN ID.  (The
    internal VLAN ID is used by device to internally mark untagged pkts with
    some VLAN, which will eventually be removed on egress...think PVID).  When
    the internal VLAN ID changes, we need to update the VLAN table entries and
    the router MAC entries for IP/IPv6 to reflect the new internal VLAN ID.
    
    This patch makes use of the common rocker_port_vlan_add/del functions to
    make sure the tables are updated for the current internal VLAN ID.
    Signed-off-by: default avatarScott Feldman <sfeldma@gmail.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    027e00dc
rocker.c 141 KB