summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx5/core/diag
diff options
context:
space:
mode:
authorChris Mi <cmi@nvidia.com>2020-11-20 15:03:25 -0800
committerSaeed Mahameed <saeedm@nvidia.com>2020-11-26 18:43:47 -0800
commit38730630880c6f47ad73dd90524ff52443b8bc48 (patch)
tree1b8d48d42bd818ce082f92525ca66f1dcbd590b8 /drivers/net/ethernet/mellanox/mlx5/core/diag
parent2a2970891647fee7e7ea767425f895140faffaa8 (diff)
downloadlinux-stable-38730630880c6f47ad73dd90524ff52443b8bc48.tar.gz
linux-stable-38730630880c6f47ad73dd90524ff52443b8bc48.tar.bz2
linux-stable-38730630880c6f47ad73dd90524ff52443b8bc48.zip
net/mlx5: Add sampler destination type
The flow sampler object is a new destination type. Add a new member for the flow destination. Signed-off-by: Chris Mi <cmi@nvidia.com> Reviewed-by: Oz Shlomo <ozsh@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/diag')
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/diag/fs_tracepoint.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/diag/fs_tracepoint.c b/drivers/net/ethernet/mellanox/mlx5/core/diag/fs_tracepoint.c
index a700f3c86899..87d65f6b5310 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/diag/fs_tracepoint.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/diag/fs_tracepoint.c
@@ -247,6 +247,9 @@ const char *parse_fs_dst(struct trace_seq *p,
case MLX5_FLOW_DESTINATION_TYPE_TIR:
trace_seq_printf(p, "tir=%u\n", dst->tir_num);
break;
+ case MLX5_FLOW_DESTINATION_TYPE_FLOW_SAMPLER:
+ trace_seq_printf(p, "sampler_id=%u\n", dst->sampler_id);
+ break;
case MLX5_FLOW_DESTINATION_TYPE_COUNTER:
trace_seq_printf(p, "counter_id=%u\n", counter_id);
break;