net/mlx5e: Add tc flower tracepoints
authorDmytro Linkin <dmitrolin@mellanox.com>
Thu, 27 Jun 2019 10:55:02 +0000 (10:55 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 21 Aug 2019 22:55:17 +0000 (15:55 -0700)
commit7a978759b4e0e7a2ad3f10cbf9077915a85ec956
treea3bdf4b07db1f3546098d1fe4c24443e3beadc0d
parent95435ad7999b1218367f0667ed5fe98d042ffe78
net/mlx5e: Add tc flower tracepoints

Implemented following tracepoints:
1. Configure flower (mlx5e_configure_flower)
2. Delete flower (mlx5e_delete_flower)
3. Stats flower (mlx5e_stats_flower)

Usage example:
 ># cd /sys/kernel/debug/tracing
 ># echo mlx5:mlx5e_configure_flower >> set_event
 ># cat trace
    ...
    tc-6535  [019] ...1  2672.404466: mlx5e_configure_flower: cookie=0000000067874a55 actions= REDIRECT

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

Signed-off-by: Dmytro Linkin <dmitrolin@mellanox.com>
Reviewed-by: Vlad Buslov <vladbu@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Documentation/networking/device_drivers/mellanox/mlx5.rst
drivers/net/ethernet/mellanox/mlx5/core/Makefile
drivers/net/ethernet/mellanox/mlx5/core/diag/en_tc_tracepoint.c [new file with mode: 0644]
drivers/net/ethernet/mellanox/mlx5/core/diag/en_tc_tracepoint.h [new file with mode: 0644]
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
include/net/flow_offload.h