net/mlx5: add OS specific flow create and destroy
authorDekel Peled <dekelp@mellanox.com>
Sun, 28 Jun 2020 14:06:54 +0000 (17:06 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 7 Jul 2020 21:38:26 +0000 (23:38 +0200)
commite57b8587108bc7c868cc7bcc1433d765e8c3e0bf
treed23b4f9c8731f8763d0b9a72bacab54473fd5665
parente4ed8de39b31c2a5d2c529726315106421abdc97
net/mlx5: add OS specific flow create and destroy

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

In existing implementation, the functions to create objects
(flow/table/matcher) return a pointer to the created object.
The functions to destroy objects return 0 on success and errno on
failure.

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

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_dv.c