summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/mellanox/mlx5/core/esw
diff options
context:
space:
mode:
authorChris Mi <cmi@nvidia.com>2020-08-31 08:28:35 +0300
committerSaeed Mahameed <saeedm@nvidia.com>2021-04-07 07:36:03 +0300
commit41c2fd949803a5ff8acfed1d81c0bbd62d8f660d (patch)
tree0b86882aac626c3b092297267fed7cbe6c5b0c81 /drivers/net/ethernet/mellanox/mlx5/core/esw
parentc935568271b5b25baea65ad623f146de72570cd7 (diff)
downloadlinux-41c2fd949803a5ff8acfed1d81c0bbd62d8f660d.tar.xz
net/mlx5e: TC, Parse sample action
Parse TC sample action and save sample parameters in flow attribute data structure. Signed-off-by: Chris Mi <cmi@nvidia.com> Reviewed-by: Oz Shlomo <ozsh@nvidia.com> Reviewed-by: Mark Bloch <mbloch@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/esw')
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/esw/sample.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/esw/sample.h b/drivers/net/ethernet/mellanox/mlx5/core/esw/sample.h
new file mode 100644
index 000000000000..35a5e6dddcd0
--- /dev/null
+++ b/drivers/net/ethernet/mellanox/mlx5/core/esw/sample.h
@@ -0,0 +1,13 @@
+/* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
+/* Copyright (c) 2021 Mellanox Technologies. */
+
+#ifndef __MLX5_EN_TC_SAMPLE_H__
+#define __MLX5_EN_TC_SAMPLE_H__
+
+struct mlx5_sample_attr {
+ u32 group_num;
+ u32 rate;
+ u32 trunc_size;
+};
+
+#endif /* __MLX5_EN_TC_SAMPLE_H__ */