• Amit Cohen's avatar
    mlxsw: spectrum_switchdev: Rename MID structure · eede53a4
    Amit Cohen authored
    Currently the structure which represents MDB entry is called
    'struct mlxsw_sp_mid'. This name is not accurate as a MID entry stores a
    bitmap of ports to which a packet needs to be replicated and a MDB entry
    stores the mapping from {MAC, FID} to PGT index (MID).
    
    Rename the structure to 'struct mlxsw_sp_mdb_entry'. The structure
    'mlxsw_sp_mid' is defined as part of spectrum.h. The only file which
    uses it is spectrum_switchdev.c, so there is no reason to expose it to
    other files. Move the definition to spectrum_switchdev.c.
    Signed-off-by: default avatarAmit Cohen <amcohen@nvidia.com>
    Signed-off-by: default avatarIdo Schimmel <idosch@nvidia.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    eede53a4
spectrum.h 50.5 KB