aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPaul Blakey <paulb@mellanox.com>2019-11-14 17:02:59 +0200
committerSaeed Mahameed <saeedm@mellanox.com>2020-01-16 15:48:58 -0800
commit79cdb0aaea8b5478db34afa1d4d5ecc808689a67 (patch)
tree5c4937dda2efec6d7fa8958fc1f136023aff72c2 /include
parentnet/mlx5: Add ignore level support fwd to table rules (diff)
downloadlinux-dev-79cdb0aaea8b5478db34afa1d4d5ecc808689a67.tar.xz
linux-dev-79cdb0aaea8b5478db34afa1d4d5ecc808689a67.zip
net/mlx5: Allow creating autogroups with reserved entries
Exclude the last n entries for an autogrouped flow table. Reserving entries at the end of the FT will ensure that this FG will be the last to be evaluated. This will be used in the next patch to create a miss group enabling custom actions on FT miss. Signed-off-by: Paul Blakey <paulb@mellanox.com> Reviewed-by: Roi Dayan <roid@mellanox.com> Reviewed-by: Oz Shlomo <ozsh@mellanox.com> Reviewed-by: Mark Bloch <markb@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mlx5/fs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mlx5/fs.h b/include/linux/mlx5/fs.h
index 81f393fb7d96..4cae16016b2b 100644
--- a/include/linux/mlx5/fs.h
+++ b/include/linux/mlx5/fs.h
@@ -155,6 +155,7 @@ struct mlx5_flow_table_attr {
struct {
int max_num_groups;
+ int num_reserved_entries;
} autogroup;
};