[U-Boot] [PATCH v3 09/16] drivers/net/vsc9953: Add command to show/clear port counters

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


Hi Codrin,

On Fri, Jul 24, 2015 at 8:55 AM, Codrin Ciubotariu
<codrin.ciubotariu at freescale.com> wrote:
> The new added command:
> ethsw [port <port_no>] 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 <codrin.ciubotariu at freescale.com>
> ---
>
> Changes for v2:
>         - removed Change-id field;
>
> Changes for v3:
>         - moved each variable declaration on a separate line, with one space only;
>         - replaced magic numbers on functions called by the parser with CMD_RET_* macros;
>
>
>  common/cmd_ethsw.c    |  42 +++++++++
>  drivers/net/vsc9953.c | 256 ++++++++++++++++++++++++++++++++++++++++++++++++++
>  include/ethsw.h       |   4 +
>  include/vsc9953.h     | 116 ++++++++++++++++++++++-
>  4 files changed, 415 insertions(+), 3 deletions(-)

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


More information about the U-Boot mailing list