net/mlx5: convert flow dev handle to indexed
authorSuanming Mou <suanmingm@mellanox.com>
Thu, 16 Apr 2020 02:42:08 +0000 (10:42 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:09 +0000 (13:57 +0200)
commitb88341ca35fc8eda9cd4bf2e796865544788f035
tree1e6d4c9e80c8e1c2a575241d0b7fd7de82823092
parent772dc0eb83d3d440041707f281e8f9f0f8217bec
net/mlx5: convert flow dev handle to indexed

This commit converts flow dev handle to indexed.

Change the mlx5 flow handle from pointer to uint32_t saves memory for
flow. With million flow, it saves several MBytes memory.

Signed-off-by: Suanming Mou <suanmingm@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
drivers/net/mlx5/mlx5.c
drivers/net/mlx5/mlx5.h
drivers/net/mlx5/mlx5_flow.c
drivers/net/mlx5/mlx5_flow.h
drivers/net/mlx5/mlx5_flow_dv.c
drivers/net/mlx5/mlx5_flow_verbs.c