29 Jan, 2016

1 commit

  • You can now configure LAG on VSC9953's ports using the command:
    ethsw [port ] aggr {[help] | show | }

    A port must belong to a single LAG. By default, a port
    belongs to a LAG equal to the port's number.

    For each frame, a hash will be calculated based on
    Source/Destination MAC addresses, Source/Destination IP(v4/v6)
    addresses, Source/Destination ports. This hash will be used to
    select a single egress port from LAG. This also assures
    that frames from the same flow will always have the
    same egress port.

    Signed-off-by: Codrin Ciubotariu
    Acked-by: Joe Hershberger

    Codrin Ciubotariu
     

21 Sep, 2015

7 commits

  • The command:
    ethsw [port ] ingress filtering
    { [help] | show | enable | disable }
    - enable/disable VLAN ingress filtering on port

    can be used to enable/disable/show VLAN ingress filtering on a port.
    This command has also been added to the ethsw generic parser
    from common/cmd_ethsw.c

    Signed-off-by: Johnson Leung
    Signed-off-by: Codrin Ciubotariu
    Acked-by: Joe Hershberger
    Reviewed-by: York Sun

    Codrin Ciubotariu
     
  • The command:
    ethsw vlan fdb { [help] | show | shared | private }
    - make VLAN learning shared or private"

    configures the FDB to share the FDB entries learned on multiple VLANs
    or to keep them separated. By default, the FBD uses private VLAN
    learning. This command has also been added to the ethsw generic parser
    from common/cmd_ethsw.c

    Signed-off-by: Johnson Leung
    Signed-off-by: Codrin Ciubotariu
    Acked-by: Joe Hershberger
    Reviewed-by: York Sun

    Codrin Ciubotariu
     
  • The new added commands can be used to configure VLANs for a port
    on both ingress and egress.

    The new commands are:
    ethsw [port ] pvid { [help] | show | }
    - set/show PVID (ingress and egress VLAN tagging) for a port;
    ethsw [port ] vlan { [help] | show | add | del }
    - add a VLAN to a port (VLAN members);
    ethsw [port ] untagged { [help] | show | all | none | pvid }
    - set egress tagging mod for a port"
    ethsw [port ] egress tag { [help] | show | pvid | classified }
    - Configure VID source for egress tag. Tag's VID could be the
    frame's classified VID or the PVID of the port
    These commands have also been added to the ethsw generic parser from
    common/cmd_ethsw.c

    Signed-off-by: Johnson Leung
    Signed-off-by: Codrin Ciubotariu
    Acked-by: Joe Hershberger
    Reviewed-by: York Sun

    Codrin Ciubotariu
     
  • The new command:
    ethsw [port ] [vlan ] fdb
    { [help] | show | flush | { add | del } }

    Can be used to add and delete FDB entries. Also, the command can be used
    to show entries from the FDB tables. When used with [port ]
    and [vlan ], only the matching the FDB entries can be seen or
    flushed. The command has also been added to the generic ethsw parser
    from cmd_ethsw.c.

    Signed-off-by: Johnson Leung
    Signed-off-by: Codrin Ciubotariu
    Acked-by: Joe Hershberger
    Reviewed-by: York Sun

    Codrin Ciubotariu
     
  • The command:
    ethsw [port ] learning { [help] | show | auto | disable }

    can be used to enable/disable HW learning on a port.
    This patch also adds this command to the generic ethsw parser from
    cmd_ethsw.

    Signed-off-by: Johnson Leung
    Signed-off-by: Codrin Ciubotariu
    Acked-by: Joe Hershberger
    Reviewed-by: York Sun

    Codrin Ciubotariu
     
  • The new added command:
    ethsw [port ] statistics { [help] | [clear] }

    will print counters like the number of Rx/Tx frames,
    number of Rx/Tx bytes, number of Rx/Tx unicast frames, etc.
    This patch also adds this commnd in the genereric ethsw
    parser from cmd_ethsw.c

    Signed-off-by: Codrin Ciubotariu
    Acked-by: Joe Hershberger
    Reviewed-by: York Sun

    Codrin Ciubotariu
     
  • This patch creates a flexible parser for Ethernet Switch
    configurations that should support complex commands.
    The parser searches for predefined keywords in the command
    and calls the proper function when a match is found.
    Also, the parser allows for optional keywords, such as
    "port", to apply the command on a port
    or on all ports. For now, the defined commands are:
    ethsw [port ] { enable | disable | show }

    Signed-off-by: Codrin Ciubotariu
    Reviewed-by: York Sun

    Codrin Ciubotariu