diff options
author | Chris Mi <cmi@nvidia.com> | 2020-09-18 17:46:57 +0800 |
---|---|---|
committer | Saeed Mahameed <saeedm@nvidia.com> | 2021-04-06 21:36:03 -0700 |
commit | 2a9ab10a5689a4612d441df1cc628c381dc75ed3 (patch) | |
tree | 472c51e21d94fbd86afc6031ddf21cc972b35202 /drivers/net/ethernet/mellanox/mlx5/core/Kconfig | |
parent | 41c2fd949803a5ff8acfed1d81c0bbd62d8f660d (diff) | |
download | linux-stable-2a9ab10a5689a4612d441df1cc628c381dc75ed3.tar.gz linux-stable-2a9ab10a5689a4612d441df1cc628c381dc75ed3.tar.bz2 linux-stable-2a9ab10a5689a4612d441df1cc628c381dc75ed3.zip |
net/mlx5e: TC, Add sampler termination table API
Sampled packets are sent to software using termination tables. There
is only one rule in that table that is to forward sampled packets to
the e-switch management vport.
Create a sampler termination table and rule for each eswitch.
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/Kconfig')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/Kconfig | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/Kconfig b/drivers/net/ethernet/mellanox/mlx5/core/Kconfig index 9d623e38d783..461a43f338e6 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/Kconfig +++ b/drivers/net/ethernet/mellanox/mlx5/core/Kconfig @@ -104,6 +104,18 @@ config MLX5_TC_CT If unsure, set to Y +config MLX5_TC_SAMPLE + bool "MLX5 TC sample offload support" + depends on MLX5_CLS_ACT + default y + help + Say Y here if you want to support offloading sample rules via tc + sample action. + If set to N, will not be able to configure tc rules with sample + action. + + If unsure, set to Y + config MLX5_CORE_EN_DCB bool "Data Center Bridging (DCB) Support" default y |