net/mlx5: add Direct Rules flow data alloc/free routines
authorViacheslav Ovsiienko <viacheslavo@mellanox.com>
Thu, 4 Apr 2019 13:04:24 +0000 (13:04 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 5 Apr 2019 15:45:22 +0000 (17:45 +0200)
commitb2177648b8de1011aa9a538cd99cc25dd17be4bc
tree7076c84dd3a129b6c0630a38d5136684ce89b14e
parent5024da517de619912d75e215e113bfac977de785
net/mlx5: add Direct Rules flow data alloc/free routines

We are going to share the Direct Rules and Direct Verbs flow
device data structures between master and representors in the
E-Switch configurations over multiport IB device.

The code of initializing and destroying these data is
moved to dedicated routines, this is just a preparation
step for actual data sharing.

Signed-off-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
Acked-by: Shahaf Shuler <shahafs@mellanox.com>
drivers/net/mlx5/mlx5.c
drivers/net/mlx5/mlx5.h