1.. _net_stats_interface: 2 3Network Statistics 4################## 5 6.. contents:: 7 :local: 8 :depth: 2 9 10Overview 11******** 12 13Network statistics are collected if :kconfig:option:`CONFIG_NET_STATISTICS` is set. 14Individual component statistics for IPv4 or IPv6 can be turned off 15if those statistics are not needed. See various options in 16:zephyr_file:`subsys/net/ip/Kconfig.stats` file for details. 17 18By default, the system collects network statistics per network interface. This 19can be controlled by :kconfig:option:`CONFIG_NET_STATISTICS_PER_INTERFACE` option. 20 21The :kconfig:option:`CONFIG_NET_STATISTICS_USER_API` option can be set if the 22application wants to collect statistics for further processing. The network 23management interface API is used for that. See :ref:`net_mgmt_interface` for 24details. 25 26The :kconfig:option:`CONFIG_NET_STATISTICS_ETHERNET` option can be set to collect 27generic Ethernet statistics. If the 28:kconfig:option:`CONFIG_NET_STATISTICS_ETHERNET_VENDOR` option is set, then 29Ethernet device driver can collect Ethernet device specific statistics. 30These statistics can then be transferred to application for processing. 31 32If the :kconfig:option:`CONFIG_NET_SHELL` option is set, then network shell can 33show statistics information with ``net stats`` command. 34 35API Reference 36************* 37 38.. doxygengroup:: net_stats 39