summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorMaor Gottlieb <maorg@mellanox.com>2016-06-06 18:09:35 +0300
committerLeon Romanovsky <leon@kernel.org>2016-08-18 18:49:59 +0300
commit87d22483ce68e609818d61e3a65361f5634c6cd6 (patch)
treeb842f7bc6c6f10b54bb6f20a920f5bb5203a9a0b /include/linux
parentcea824d416522ce63d83b45fc0dc53c0f5b68cee (diff)
downloadlinux-87d22483ce68e609818d61e3a65361f5634c6cd6.tar.xz
net/mlx5: Add sniffer namespaces
Add sniffer TX and RX namespaces to receive ingoing and outgoing traffic. Each outgoing/incoming packet is duplicated and steered to the sniffer TX/RX namespace in addition to the regular flow. Signed-off-by: Maor Gottlieb <maorg@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mlx5/fs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mlx5/fs.h b/include/linux/mlx5/fs.h
index 8803212fc3aa..93ebc5e21334 100644
--- a/include/linux/mlx5/fs.h
+++ b/include/linux/mlx5/fs.h
@@ -63,6 +63,8 @@ enum mlx5_flow_namespace_type {
MLX5_FLOW_NAMESPACE_FDB,
MLX5_FLOW_NAMESPACE_ESW_EGRESS,
MLX5_FLOW_NAMESPACE_ESW_INGRESS,
+ MLX5_FLOW_NAMESPACE_SNIFFER_RX,
+ MLX5_FLOW_NAMESPACE_SNIFFER_TX,
};
struct mlx5_flow_table;