net/mlx5: reorganize flow matcher resources
authorBing Zhao <bingz@mellanox.com>
Fri, 8 Nov 2019 15:23:10 +0000 (17:23 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 11 Nov 2019 13:23:02 +0000 (14:23 +0100)
commite9e36e52eeb64dadce057dfd004a281fb8f8a0c2
tree1299aed2f44bf174a378989c0631866a9504ba36
parent6c1d9a642e03209242f571fdfeb395f7e1df8e10
net/mlx5: reorganize flow matcher resources

Matchers are created on the specific table. If a single linked list
is used to store these, then the finding process might be the
bottleneck when there are a lot of different flow matchers on a
huge amount of tables. The matchers could be move into the table
data resource structure in order to reduce the comparison times
when finding.

Signed-off-by: Bing Zhao <bingz@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
drivers/net/mlx5/mlx5.h
drivers/net/mlx5/mlx5_flow.h
drivers/net/mlx5/mlx5_flow_dv.c