net/mlx5: fix flow table hash list conversion
authorMatan Azrad <matan@mellanox.com>
Sun, 17 Nov 2019 12:14:54 +0000 (12:14 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 20 Nov 2019 16:36:06 +0000 (17:36 +0100)
commit54534725d2f329ed6e45aa7400e0c2c21aa1b69d
treed7dac70e6750a160d65b77cf621131e19cdcb9f4
parentb1fb5d2aad8c64a9440a576daebd426214c20b2b
net/mlx5: fix flow table hash list conversion

For the case when DR is not supported and DV is supported:
multi-tables feature is off.
In this case, only table 0 is supported.
Table 0 structure wrongly was not created what prevented any
matcher object to be created and even caused crashes.

Create the table hash list in DV case too.
Create table zero empty structure for each domain when DR is not
supported.
Allow NULL DR internal table object to be used.

Fixes: 860897d2895a ("net/mlx5: reorganize flow tables with hash list")

Signed-off-by: Matan Azrad <matan@mellanox.com>
drivers/net/mlx5/mlx5.c
drivers/net/mlx5/mlx5_flow_dv.c