• Vladimir Oltean's avatar
    net: dsa: sja1105: Make room for P/Q/R/S FDB operations · 9dfa6911
    Vladimir Oltean authored
    The DSA callbacks were written with the E/T (first generation) in mind,
    which is quite different.
    
    For P/Q/R/S completely new implementations need to be provided, which
    are held as function pointers in the priv->info structure.  We are
    taking a slightly roundabout way for this (a function from
    sja1105_main.c reads a structure defined in sja1105_spi.c that
    points to a function defined in sja1105_main.c), but it is what it is.
    
    The FDB dump callback works for both families, hence no function pointer
    for that.
    Signed-off-by: default avatarVladimir Oltean <olteanv@gmail.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    9dfa6911
sja1105_main.c 48.6 KB