• Grygorii Strashko's avatar
    net: ethernet: ti: ale: add static configuration · 6a68df93
    Grygorii Strashko authored
    As existing, as newly introduced CPSW ALE versions have differences in
    supported features and ALE table formats. Especially it's actual for the
    recent AM65x/J721E/J7200 SoC and feature AM64x, which supports features
    like: auto-aging, classifiers, Link aggregation, additional hw filtering,
    etc.
    
    Existing ALE configuration interface is not practical in terms of adding
    new features and requires consumers to program a lot static parameters. Any
    attempt to add new options will case endless adding and maintaining
    different combination of flags and options.
    
    Hence CPSW ALE configuration is static and fixed for SoC (or set of SoC) It
    is reasonable to add support for static ALE configurations inside ALE
    module. This patch adds static ALE configuration table for different ALE
    versions and provides option for consumers to select required ALE
    configuration by providing ALE const char *dev_id identifier.
    
    This feature is not enabled by default until existing CPSW drivers will be
    modified by follow up patches.
    Signed-off-by: default avatarGrygorii Strashko <grygorii.strashko@ti.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    6a68df93
cpsw_ale.h 3.8 KB