• Amit Cohen's avatar
    mlxsw: reg: Add ingress RIF related fields to SVFA register · dd326565
    Amit Cohen authored
    SVFA register controls the VID to FID mapping and {Port, VID} to FID
    mapping for virtualized ports. As preparation for unified bridge model,
    add some required fields for future use.
    
    On ingress, after ingress ACL, a packet needs to be classified to a FID.
    The key for this lookup can be one of:
    1. VID. When port is not in virtual mode.
    2. {RQ, VID}. When port is in virtual mode.
    3. FID. When FID was set by ingress ACL.
    
    Since RITR no longer performs ingress configuration, the ingress RIF for
    the first two entry types needs to be set via new fields in SVFA -
    'irif_v' and 'irif'.
    
    Add the two mentioned fields for future use and increase the length of
    the register accordingly.
    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>
    dd326565
reg.h 361 KB