• Hauke Mehrtens's avatar
    net: dsa: lantiq: Add VLAN aware bridge offloading · 9bbb1c05
    Hauke Mehrtens authored
    The VLAN aware bridge offloading is similar to the VLAN unaware
    offloading, this makes it possible to offload the VLAN bridge
    functionalities.
    
    The hardware supports up to 64 VLAN bridge entries, we already use one
    entry for each LAN port to prevent forwarding of packets between the
    ports when the ports are not in a bridge, so in the end we have 57
    possible VLANs.
    
    The VLAN filtering is currently only active when the ports are in a
    bridge, VLAN filtering for ports not in a bridge is not implemented.
    
    It is currently not possible to change between VLAN filtering and not
    filtering while the port is already in a bridge, this would make the
    driver more complicated.
    
    The VLANs are only defined on bridge entries, so we will not add
    anything into the hardware when the port joins a bridge if it is doing
    VLAN filtering, but only when an allowed VLAN is added.
    Signed-off-by: default avatarHauke Mehrtens <hauke@hauke-m.de>
    Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    9bbb1c05
lantiq_gswip.c 51.5 KB