OSDN Git Service

net/mlx5e: Add trace point for neigh used value update
authorVlad Buslov <vladbu@mellanox.com>
Tue, 25 Jun 2019 19:33:15 +0000 (22:33 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 21 Aug 2019 22:55:18 +0000 (15:55 -0700)
commitc786fe596bede275f887f212eebee74490043b84
tree5e4e2257892babc7c881b2289edca537a7d78052
parent7a978759b4e0e7a2ad3f10cbf9077915a85ec956
net/mlx5e: Add trace point for neigh used value update

Allow tracing result of neigh used value update task that is executed
periodically on workqueue.

Usage example:
 ># cd /sys/kernel/debug/tracing
 ># echo mlx5:mlx5e_tc_update_neigh_used_value >> set_event
 ># cat trace
    ...
    kworker/u48:4-8806  [009] ...1 55117.882428: mlx5e_tc_update_neigh_used_value:
netdev: ens1f0 IPv4: 1.1.1.10 IPv6: ::ffff:1.1.1.10 neigh_used=1

Added corresponding documentation in
    Documentation/networking/device-driver/mellanox/mlx5.rst

Signed-off-by: Vlad Buslov <vladbu@mellanox.com>
Reviewed-by: Dmytro Linkin <dmitrolin@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Documentation/networking/device_drivers/mellanox/mlx5.rst
drivers/net/ethernet/mellanox/mlx5/core/diag/en_tc_tracepoint.h
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c