Commit 166245dd authored by Doug Ledford's avatar Doug Ledford

Merge tag 'mlx5-updates-2017-10-06' of...

Merge tag 'mlx5-updates-2017-10-06' of git://git.kernel.org/pub/scm/linux/kernel/git/mellanox/linux into k.o/for-next

Merge Mellanox shared pull request
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parents 318a8ab7 a369d4ac
...@@ -65,6 +65,8 @@ enum fs_fte_status { ...@@ -65,6 +65,8 @@ enum fs_fte_status {
struct mlx5_flow_steering { struct mlx5_flow_steering {
struct mlx5_core_dev *dev; struct mlx5_core_dev *dev;
struct kmem_cache *fgs_cache;
struct kmem_cache *ftes_cache;
struct mlx5_flow_root_namespace *root_ns; struct mlx5_flow_root_namespace *root_ns;
struct mlx5_flow_root_namespace *fdb_root_ns; struct mlx5_flow_root_namespace *fdb_root_ns;
struct mlx5_flow_root_namespace *esw_egress_root_ns; struct mlx5_flow_root_namespace *esw_egress_root_ns;
...@@ -80,9 +82,12 @@ struct fs_node { ...@@ -80,9 +82,12 @@ struct fs_node {
struct fs_node *parent; struct fs_node *parent;
struct fs_node *root; struct fs_node *root;
/* lock the node for writing and traversing */ /* lock the node for writing and traversing */
struct mutex lock; struct rw_semaphore lock;
atomic_t refcount; atomic_t refcount;
void (*remove_func)(struct fs_node *); bool active;
void (*del_hw_func)(struct fs_node *);
void (*del_sw_func)(struct fs_node *);
atomic_t version;
}; };
struct mlx5_flow_rule { struct mlx5_flow_rule {
...@@ -119,7 +124,6 @@ struct mlx5_flow_table { ...@@ -119,7 +124,6 @@ struct mlx5_flow_table {
/* FWD rules that point on this flow table */ /* FWD rules that point on this flow table */
struct list_head fwd_rules; struct list_head fwd_rules;
u32 flags; u32 flags;
struct ida fte_allocator;
struct rhltable fgs_hash; struct rhltable fgs_hash;
}; };
...@@ -199,6 +203,7 @@ struct mlx5_flow_group { ...@@ -199,6 +203,7 @@ struct mlx5_flow_group {
struct mlx5_flow_group_mask mask; struct mlx5_flow_group_mask mask;
u32 start_index; u32 start_index;
u32 max_ftes; u32 max_ftes;
struct ida fte_allocator;
u32 id; u32 id;
struct rhashtable ftes_hash; struct rhashtable ftes_hash;
struct rhlist_head hash; struct rhlist_head hash;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment