]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Add trace point for neigh update
authorVlad Buslov <vladbu@mellanox.com>
Tue, 25 Jun 2019 19:40:20 +0000 (22:40 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 21 Aug 2019 22:55:18 +0000 (15:55 -0700)
commitdf87b03d55ba0e6012de0e29dde2bced94faa188
treee15858334dae586ce697472ef1a7a3628da45332
parent7a2c6f1009f187bf1bd2522678f559c6bb4ad00f
net/mlx5e: Add trace point for neigh update

Allow tracing neigh state during neigh update task that is executed on
workqueue and is scheduled by neigh state change event.

Usage example:
 ># cd /sys/kernel/debug/tracing
 ># echo mlx5:mlx5e_rep_neigh_update >> set_event
 ># cat trace
    ...
    kworker/u48:7-2221  [009] ...1  1475.387435: mlx5e_rep_neigh_update:
netdev: ens1f0 MAC: 24:8a:07:9a:17:9a IPv4: 1.1.1.10 IPv6: ::ffff:1.1.1.10 neigh_connected=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_rep_tracepoint.h [new file with mode: 0644]
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c