• Amit Cohen's avatar
    mlxsw: spectrum_switchdev: Add support of QinQ traffic · 80dfeafd
    Amit Cohen authored
    802.1ad, also known as QinQ is an extension to the 802.1q standard, which
    is concerned with passing possibly 802.1q-tagged packets through another
    VLAN-like tunnel. The format of 802.1ad tag is the same as 802.1q, except
    it uses the EtherType of 0x88a8, unlike 802.1q's 0x8100.
    
    Add support for 802.1ad protocol. Most of the configuration is the same
    as 802.1q. The difference is that before a port joins an 802.1ad bridge it
    needs to be configured to recognize 802.1ad packets as tagged and other
    packets (e.g., 802.1q) as untagged.
    
    VXLAN is not currently supported with 802.1ad bridge, so return an error
    with an appropriate extack message.
    Signed-off-by: default avatarAmit Cohen <amcohen@nvidia.com>
    Reviewed-by: default avatarPetr Machata <petrm@nvidia.com>
    Signed-off-by: default avatarIdo Schimmel <idosch@nvidia.com>
    Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
    80dfeafd
spectrum.h 44.5 KB