net/mlx5: optimize hash list table allocate on demand
authorSuanming Mou <suanmingm@nvidia.com>
Tue, 13 Jul 2021 08:44:57 +0000 (11:44 +0300)
committerRaslan Darawsheh <rasland@nvidia.com>
Thu, 15 Jul 2021 14:09:22 +0000 (16:09 +0200)
commitf3020a331dcac0fba2423f34d53fa6cce1e1f4ea
treea59c9dabf057dcae3b72143f202606daea677f17
parent07b51bb9fe6d347213a57730ed646813e2f11371
net/mlx5: optimize hash list table allocate on demand

Currently, all the hash list tables are allocated during start up.
Since different applications may only use dedicated limited actions,
optimized the hash list table allocate on demand will save initial
memory.

This commit optimizes hash list table allocate on demand.

Signed-off-by: Suanming Mou <suanmingm@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/net/mlx5/linux/mlx5_os.c
drivers/net/mlx5/mlx5_defs.h
drivers/net/mlx5/mlx5_flow_dv.c
drivers/net/mlx5/windows/mlx5_os.c