net/mlx5: add OS specific flow actions operations
authorDekel Peled <dekelp@mellanox.com>
Sun, 28 Jun 2020 14:06:55 +0000 (17:06 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 7 Jul 2020 21:38:26 +0000 (23:38 +0200)
commitb293fbf9672b18798e61fd66d9c59e78e1c9710a
tree08db877845faa12b302f1acd3a4e3fb2f93429bc
parente57b8587108bc7c868cc7bcc1433d765e8c3e0bf
net/mlx5: add OS specific flow actions operations

This patch introduces the OS specific functions, for flow actions
create and destroy operations.

In existing implementation, the functions to create flow actions
return a pointer to the created action object.

The new OS specific functions to create flow actions return 0 on
success, and (-1) on failure.
On success, a pointer to the created action object is returned
using an additional parameter.
On failure errno is set.

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.h
drivers/net/mlx5/mlx5_flow_dv.c