summaryrefslogtreecommitdiffstats
path: root/include/linux/mlx5/fs.h
diff options
context:
space:
mode:
authorMaor Gottlieb2015-12-10 16:12:43 +0100
committerDavid S. Miller2015-12-12 06:15:24 +0100
commit2530236303d9e705db6a28eb9a10c8d79b288b37 (patch)
treeaa1da81cbec8394d7b2dfe52b059c61f43d6d208 /include/linux/mlx5/fs.h
parentnet/mlx5_core: Introduce flow steering API (diff)
downloadkernel-qcow2-linux-2530236303d9e705db6a28eb9a10c8d79b288b37.tar.gz
kernel-qcow2-linux-2530236303d9e705db6a28eb9a10c8d79b288b37.tar.xz
kernel-qcow2-linux-2530236303d9e705db6a28eb9a10c8d79b288b37.zip
net/mlx5_core: Flow steering tree initialization
Flow steering initialization is based on static tree which illustrates the flow steering tree when the driver is loaded. The initialization considers the max supported flow table level of the device, a minimum of 2 kernel flow tables(vlan and mac) are required to have kernel flow table functionality. The tree structures when the driver is loaded: root_namespace(receive nic) | priority-0 (kernel priority) | namespace(kernel namespace) | priority-0 (flow tables priority) In the following patches, When the EN driver will use the flow steering API, it create two flow tables and their flow groups under priority-0(flow tables priority). Signed-off-by: Maor Gottlieb <maorg@mellanox.com> Signed-off-by: Moni Shoua <monis@mellanox.com> Signed-off-by: Matan Barak <matanb@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/mlx5/fs.h')
-rw-r--r--include/linux/mlx5/fs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/mlx5/fs.h b/include/linux/mlx5/fs.h
index 34fd8dc0b3e1..16ae5233dc7b 100644
--- a/include/linux/mlx5/fs.h
+++ b/include/linux/mlx5/fs.h
@@ -35,6 +35,13 @@
#include <linux/mlx5/mlx5_ifc.h>
+#define MLX5_FS_DEFAULT_FLOW_TAG 0x0
+
+enum mlx5_flow_namespace_type {
+ MLX5_FLOW_NAMESPACE_KERNEL,
+ MLX5_FLOW_NAMESPACE_FDB,
+};
+
struct mlx5_flow_table;
struct mlx5_flow_destination {
@@ -42,6 +49,7 @@ struct mlx5_flow_destination {
union {
u32 tir_num;
struct mlx5_flow_table *ft;
+ u32 vport_num;
};
};
#endif