net/mlx5: add OS specific flow type selection
authorDekel Peled <dekelp@mellanox.com>
Sun, 28 Jun 2020 14:06:53 +0000 (17:06 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 7 Jul 2020 21:38:26 +0000 (23:38 +0200)
commite4ed8de39b31c2a5d2c529726315106421abdc97
tree1840109f68a1ae2010b63f4bd722f17b81e874dd
parent17ad3af9f4de9df82cba654027c47e6cecbe7b55
net/mlx5: add OS specific flow type selection

In current implementation the flow type (DV/Verbs) is selected
using dedicated function flow_get_drv_type().

This patch adds OS specific function mlx5_flow_os_get_type(), to
allow OS specific flow type selection.
The new function is called by flow_get_drv_type(), and if it returns a
valid value (DV/Verbs) no more logic is required.
Otherwise the existing logic is executed.

Signed-off-by: Dekel Peled <dekelp@mellanox.com>
Acked-by: Matan Azrad <matan@mellanox.com>
drivers/net/mlx5/linux/mlx5_flow_os.h
drivers/net/mlx5/mlx5_flow.c