• Ido Schimmel's avatar
    mlxsw: spectrum_acl: Add region association callback · a6b9c87d
    Ido Schimmel authored
    In Spectrum-2, ACL regions that use 8 or 12 key blocks require several
    consecutive hardware regions.
    
    In order to allow defragmentation, the device stores a mapping from a
    logical region ID to an hardware region ID, which is similar to the page
    table that is used to translate virtual addresses to physical addresses.
    
    Add the region association callback to the region create sequence and
    implement it as a NOP in Spectrum which does not require it.
    Signed-off-by: default avatarIdo Schimmel <idosch@mellanox.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    a6b9c87d
spectrum.h 26.1 KB