net/mlx5: add Direct Verbs translate items
authorOri Kam <orika@mellanox.com>
Mon, 24 Sep 2018 23:17:47 +0000 (23:17 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 11 Oct 2018 16:53:49 +0000 (18:53 +0200)
commitfc2c498ccb942c6a9de3f0a555250e0b09707c80
tree58a1e0e0468585638cf37d84d94ffbaa6324ac90
parent865a0c15672c7f2d0c9e2b4f4d52546ebfcb759e
net/mlx5: add Direct Verbs translate items

This commit handles the translation of the requested flow into Direct
Verbs API.

The Direct Verbs introduce the matcher object which acts as shared mask
for all flows that are using the same mask. So in this commit we
translate the item and get in return a matcher and the value that should
be matched.

Signed-off-by: Ori Kam <orika@mellanox.com>
Acked-by: Yongseok Koh <yskoh@mellanox.com>
drivers/net/mlx5/mlx5_flow.c
drivers/net/mlx5/mlx5_flow.h
drivers/net/mlx5/mlx5_flow_dv.c
drivers/net/mlx5/mlx5_flow_verbs.c
drivers/net/mlx5/mlx5_prm.h