summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx5/core/fs_core.h
diff options
context:
space:
mode:
authorAviv Heller2016-05-09 11:57:05 +0200
committerLeon Romanovsky2016-08-18 17:49:56 +0200
commitaaff1bea16bb7f259a263c3ae4633d092e2da799 (patch)
tree6c4f82ed6a6abac3f8c95eaf020dbca0ebee5b66 /drivers/net/ethernet/mellanox/mlx5/core/fs_core.h
parentnet/mlx5: LAG and SRIOV cannot be used together (diff)
downloadkernel-qcow2-linux-aaff1bea16bb7f259a263c3ae4633d092e2da799.tar.gz
kernel-qcow2-linux-aaff1bea16bb7f259a263c3ae4633d092e2da799.tar.xz
kernel-qcow2-linux-aaff1bea16bb7f259a263c3ae4633d092e2da799.zip
net/mlx5: LAG demux flow table support
Add interfaces to allow the creation and destruction of a LAG demux flow table. It is a special flow table used during LAG for redirecting non user-mode packets from PF0 to PF1 root ft, if a packet was received on phys port two. Signed-off-by: Aviv Heller <avivh@mellanox.com> Reviewed-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 'drivers/net/ethernet/mellanox/mlx5/core/fs_core.h')
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/fs_core.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/fs_core.h b/drivers/net/ethernet/mellanox/mlx5/core/fs_core.h
index 9cffb6aeb4e9..23e46e35413f 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/fs_core.h
+++ b/drivers/net/ethernet/mellanox/mlx5/core/fs_core.h
@@ -51,6 +51,11 @@ enum fs_flow_table_type {
FS_FT_FDB = 0X4,
};
+enum fs_flow_table_op_mod {
+ FS_FT_OP_MOD_NORMAL,
+ FS_FT_OP_MOD_LAG_DEMUX,
+};
+
enum fs_fte_status {
FS_FTE_STATUS_EXISTING = 1UL << 0,
};
@@ -93,6 +98,7 @@ struct mlx5_flow_table {
unsigned int max_fte;
unsigned int level;
enum fs_flow_table_type type;
+ enum fs_flow_table_op_mod op_mod;
struct {
bool active;
unsigned int required_groups;