• Luiz Angelo Daros de Luca's avatar
    net: dsa: realtek: rtl8365mb: allow non-cpu extint ports · 6147631c
    Luiz Angelo Daros de Luca authored
    External interfaces can be configured, even if they are not CPU ports.
    The first CPU port will also be the trap port (for receiving trapped
    frames from the switch).
    
    The CPU information was dropped from chip data as it was not used
    outside setup. The only other place it was used is when it wrongly
    checks for CPU port when it should check for extint.
    
    The supported modes check now uses port type and not port usage.
    
    As a byproduct, more than one CPU can be configured. although this
    might not work well with DSA setups. Also, this driver is still only
    blindly forwarding all traffic to CPU port(s).
    
    This change was not tested in a device with multiple active external
    interfaces ports.
    
    realtek_priv->cpu_port is now only used by rtl8366rb.c
    Signed-off-by: default avatarLuiz Angelo Daros de Luca <luizluca@gmail.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    6147631c
rtl8365mb.c 62.3 KB