• Ioana Ciornei's avatar
    dpaa2-switch: add support for configuring learning state per port · 1e7cbabf
    Ioana Ciornei authored
    Add support for configuring the learning state of a switch port.
    When the user requests the HW learning to be disabled, a fast-age
    procedure on that specific port is run so that previously learnt
    addresses do not linger.
    
    At device probe as well as on a bridge leave action, the ports are
    configured with HW learning disabled since they are basically a
    standalone port.
    
    At the same time, at bridge join we inherit the bridge port BR_LEARNING
    flag state and configure it on the switch port.
    
    There were already some MC firmware ABI functions for changing the
    learning state, but those were per FDB (bridging domain) and not per
    port so we need to adjust those to use the new MC fw command which is
    per port.
    Signed-off-by: default avatarIoana Ciornei <ioana.ciornei@nxp.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    1e7cbabf
dpsw.c 41.9 KB