• Ansuel Smith's avatar
    net: dsa: qca8k: add LAG support · def97530
    Ansuel Smith authored
    Add LAG support to this switch. In Documentation this is described as
    trunk mode. A max of 4 LAGs are supported and each can support up to 4
    port. The current tx mode supported is Hash mode with both L2 and L2+3
    mode.
    When no port are present in the trunk, the trunk is disabled in the
    switch.
    When a port is disconnected, the traffic is redirected to the other
    available port.
    The hash mode is global and each LAG require to have the same hash mode
    set. To change the hash mode when multiple LAG are configured, it's
    required to remove each LAG and set the desired hash mode to the last.
    An error is printed when it's asked to set a not supported hadh mode.
    Signed-off-by: default avatarAnsuel Smith <ansuelsmth@gmail.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    def97530
qca8k.h 15.5 KB