• Amit Cohen's avatar
    mlxsw: reg: Add support for VLAN RIF as part of RITR register · b3820922
    Amit Cohen authored
    Router interfaces (RIFs) constructed on top of VLAN-aware bridges are of
    "VLAN" type, whereas RIFs constructed on top of VLAN-unaware bridges of
    "FID" type.
    
    In other words, the RIF type is derived from the underlying FID type.
    VLAN RIFs are used on top of 802.1Q FIDs, whereas FID RIFs are used on
    top of 802.1D FIDs.
    
    Currently 802.1Q FIDs are emulated using 802.1D FIDs, and therefore VLAN
    RIFs are emulated using FID RIFs.
    
    As part of converting the driver to use unified bridge, 802.1Q FIDs and
    VLAN RIFs will be used.
    
    Add the relevant fields to RITR register, add pack() function for VLAN
    RIF and rename one field to fit the internal name.
    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 avatarDavid S. Miller <davem@davemloft.net>
    b3820922
reg.h 368 KB