[U-Boot] [PATCH v3 12/16] drivers/net/vsc9953: Add commands to manipulate the FDB for VSC9953

Joe Hershberger joe.hershberger at gmail.com
Fri Aug 7 22:18:34 CEST 2015


Hi Codrin,

On Fri, Jul 24, 2015 at 8:55 AM, Codrin Ciubotariu
<codrin.ciubotariu at freescale.com> wrote:
> The new command:
> ethsw [port <port_no>] [vlan <vid>] fdb
>         { [help] | show | flush | { add | del } <mac> }
>
> 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 <port_no>]
> and [vlan <vid>], 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 <johnson.leung at freescale.com>
> Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu at freescale.com>
> ---
>
> Changes for v2:
>         - removed Change-id field;
>
> Changes for v3:
>         - replaced values returned by functions called by the parser with CMD_RET_* macros;
>         - removed "CONFIG_" from macros added in vsc9953.h;
>         - each variabled is declared on a separate line, with one space instead of tab(s);
>         - vsc9953_mac_table_poll_idle() returns -EBUSY if the table is not idle;
>         - the array used to hold the MAC address (mac_addr) has been renamed to ethaddr
>         and is allocated statically instead of dynamically;
>         - reformulate definition of VSC9953_FDB_HELP macro;
>         - used the function added by previous patch to check if a string has the format
>         of a MAC address;
>
>  common/cmd_ethsw.c    | 177 +++++++++++++++++++
>  drivers/net/vsc9953.c | 473 ++++++++++++++++++++++++++++++++++++++++++++++++++
>  include/ethsw.h       |  15 ++
>  include/vsc9953.h     |  28 +++
>  4 files changed, 693 insertions(+)

Acked-by: Joe Hershberger <joe.hershberger at ni.com>


More information about the U-Boot mailing list