net/mlx5: add OS specific flow related utilities
authorDekel Peled <dekelp@mellanox.com>
Sun, 28 Jun 2020 14:06:52 +0000 (17:06 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 7 Jul 2020 21:38:26 +0000 (23:38 +0200)
commit17ad3af9f4de9df82cba654027c47e6cecbe7b55
tree8d42a022dd2c0de04359d2084af16907f4a93357
parent6ad7cfaa666c3c7240d02b91e17c4cfe6d1f0575
net/mlx5: add OS specific flow related utilities

This patch introduces the first OS specific utility functions,
for use by flow engine in different OS implementation.

The first utility functions are:
bool mlx5_flow_os_item_supported(item)
bool mlx5_flow_os_action_supported(action)

They are implemented to check OS specific support for different
item types and action types.

New header file is added:
drivers/net/mlx5/linux/mlx5_flow_os.h

This file contains the utility functions mentioned above for Linux OS.
At this stage they are implemented as static inline, for efficiency,
and always return true.

Signed-off-by: Dekel Peled <dekelp@mellanox.com>
Acked-by: Matan Azrad <matan@mellanox.com>
drivers/net/mlx5/linux/mlx5_flow_os.h [new file with mode: 0644]
drivers/net/mlx5/mlx5_flow_dv.c