The latest development version of this page may be more current than this released 2.1.0 version.
CONFIG_NET_PKT_TXTIME_STATS

Enable network packet TX time statistics

Type: bool

Help

Enable network packet TX time statistics support. This is used to calculate how long on average it takes for a packet to travel from application to just before it is sent to network. The TX timing information can then be seen in network interface statistics in net-shell. The RX calculation is done only for UDP or TCP packets, but for TX we do not know the protocol so the TX packet timing is done for all network protocol packets. Note that CONFIG_NET_PKT_TXTIME cannot be set at the same time because net_pkt shares the time variable for statistics and TX time.

Direct dependencies

(NET_UDP || NET_TCP) && !NET_PKT_TXTIME && NETWORKING

(Includes any dependencies from ifs and menus.)

Defaults

No defaults. Implicitly defaults to n.

Symbols selected by this symbol

Kconfig definition

At subsys/net/ip/Kconfig:698

Included via Kconfig:8Kconfig.zephyr:41subsys/Kconfig:22subsys/net/Kconfig:80

Menu path: (Top) → Networking → Link layer and IP networking support → IP stack

config NET_PKT_TXTIME_STATS
    bool "Enable network packet TX time statistics"
    select NET_PKT_TIMESTAMP
    select NET_STATISTICS
    depends on (NET_UDP || NET_TCP) && !NET_PKT_TXTIME && NETWORKING
    help
      Enable network packet TX time statistics support. This is used to
      calculate how long on average it takes for a packet to travel from
      application to just before it is sent to network. The TX timing
      information can then be seen in network interface statistics in
      net-shell.
      The RX calculation is done only for UDP or TCP packets, but for TX
      we do not know the protocol so the TX packet timing is done for all
      network protocol packets.
      Note that CONFIG_NET_PKT_TXTIME cannot be set at the same time
      because net_pkt shares the time variable for statistics and TX time.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)