summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx5/core/fs_core.h
diff options
context:
space:
mode:
authorMaor Gottlieb2017-07-16 14:18:45 +0200
committerSaeed Mahameed2017-09-26 19:52:01 +0200
commit75d1d187b2ac86d1af2f1fd125ec21f104ca34b0 (patch)
treefcccaae5b7c530ffae0f83283dae526985e93168 /drivers/net/ethernet/mellanox/mlx5/core/fs_core.h
parentnet/mlx5: Avoid NULL pointer dereference on steering cleanup (diff)
downloadkernel-qcow2-linux-75d1d187b2ac86d1af2f1fd125ec21f104ca34b0.tar.gz
kernel-qcow2-linux-75d1d187b2ac86d1af2f1fd125ec21f104ca34b0.tar.xz
kernel-qcow2-linux-75d1d187b2ac86d1af2f1fd125ec21f104ca34b0.zip
net/mlx5: Move the entry index allocator to flow group
When new flow table entry is added, we search for free index in the flow group and not in the flow table, therefore we can move the allocator from flow table to flow group. In downstream patches it will enable us to lock smaller part of the steering tree. Signed-off-by: Maor Gottlieb <maorg@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/fs_core.h')
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/fs_core.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/fs_core.h b/drivers/net/ethernet/mellanox/mlx5/core/fs_core.h
index 5509a752f98e..02c969c3d333 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/fs_core.h
+++ b/drivers/net/ethernet/mellanox/mlx5/core/fs_core.h
@@ -119,7 +119,6 @@ struct mlx5_flow_table {
/* FWD rules that point on this flow table */
struct list_head fwd_rules;
u32 flags;
- struct ida fte_allocator;
struct rhltable fgs_hash;
};
@@ -199,6 +198,7 @@ struct mlx5_flow_group {
struct mlx5_flow_group_mask mask;
u32 start_index;
u32 max_ftes;
+ struct ida fte_allocator;
u32 id;
struct rhashtable ftes_hash;
struct rhlist_head hash;