Skip to content
Commit c85e96d0 authored by Ioana Ciornei's avatar Ioana Ciornei Committed by Peng Fan
Browse files

cmd: net: add a 'net stats' command to dump network statistics



Add a new option to the 'net' command which can be used to dump network
statistics.

To do this, 3 new callbacks are added to the eth_ops structure:
.get_sset_count(), .get_strings(), .get_stats(). These callbacks
have the same functions as in Linux: to return the number of counters,
the strings which describe those counters and the actual values.

Signed-off-by: default avatarIoana Ciornei <ioana.ciornei@nxp.com>
Reviewed-by: default avatarRamon Fried <rfried.dev@gmail.com>
Signed-off-by: default avatarPeng Fan <peng.fan@nxp.com>
parent 22df08d8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment