diff options
author | Yishai Hadas <yishaih@mellanox.com> | 2018-06-19 15:23:36 +0300 |
---|---|---|
committer | Leon Romanovsky <leonro@mellanox.com> | 2018-07-24 08:51:20 +0300 |
commit | 664000b6bb4352295dc774108a1fc87c4a1ad0e3 (patch) | |
tree | 11c07e989ff910befafdcb0c5b13bef1e33b25ce /drivers/net/ethernet/mellanox/mlx5/core/fs_core.c | |
parent | net/mlx5: Add forward compatible support for the FTE match data (diff) | |
download | linux-dev-664000b6bb4352295dc774108a1fc87c4a1ad0e3.tar.xz linux-dev-664000b6bb4352295dc774108a1fc87c4a1ad0e3.zip |
net/mlx5: Add support for flow table destination number
Add support to set a destination from a flow table number.
This functionality will be used in downstream patches from this
series by the DEVX stuff.
Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Acked-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/fs_core.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/fs_core.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/fs_core.c b/drivers/net/ethernet/mellanox/mlx5/core/fs_core.c index a8d7d00f92f6..0d8378243903 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/fs_core.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/fs_core.c @@ -1356,7 +1356,9 @@ static bool mlx5_flow_dests_cmp(struct mlx5_flow_destination *d1, (d1->type == MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE && d1->ft == d2->ft) || (d1->type == MLX5_FLOW_DESTINATION_TYPE_TIR && - d1->tir_num == d2->tir_num)) + d1->tir_num == d2->tir_num) || + (d1->type == MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE_NUM && + d1->ft_num == d2->ft_num)) return true; } |