net/mlx5: Bridge, add tracepoints
authorVlad Buslov <vladbu@nvidia.com>
Fri, 2 Apr 2021 18:16:13 +0000 (21:16 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 10 Jun 2021 01:36:12 +0000 (18:36 -0700)
commit9724fd5d9c2a0d3686b799ed5ca90cb9378ca4f2
tree01cfdcd05ce96bd3bb5c4c23ef416750f20b034d
parentcc2987c44be5d188b0fdf5c07b65a5c952457ef9
net/mlx5: Bridge, add tracepoints

Move private bridge structures to dedicated headers that is accessible to
bridge tracepoint header. Implemented following tracepoints:

- Initialize FDB entry.
- Refresh FDB entry.
- Cleanup FDB entry.
- Create VLAN.
- Cleanup VLAN.
- Attach port to bridge.
- Detach port from bridge.

Usage example:

># cd /sys/kernel/debug/tracing
># echo mlx5:mlx5_esw_bridge_fdb_entry_init >> set_event
># cat trace
...
   kworker/u20:1-96      [001] ....   231.892503: mlx5_esw_bridge_fdb_entry_init: net_device=enp8s0f0_0 addr=e4:fd:05:08:00:02 vid=3 flags=0 lastuse=4294895695

Signed-off-by: Vlad Buslov <vladbu@nvidia.com>
Reviewed-by: Jianbo Liu <jianbol@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Documentation/networking/device_drivers/ethernet/mellanox/mlx5.rst
drivers/net/ethernet/mellanox/mlx5/core/esw/bridge.c
drivers/net/ethernet/mellanox/mlx5/core/esw/bridge_priv.h [new file with mode: 0644]
drivers/net/ethernet/mellanox/mlx5/core/esw/diag/bridge_tracepoint.h [new file with mode: 0644]