summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_flow.c
diff options
context:
space:
mode:
authorOri Kam <orika@mellanox.com>2018-09-24 23:17:52 +0000
committerFerruh Yigit <ferruh.yigit@intel.com>2018-10-11 18:53:49 +0200
commitc4d9b9f7f382e8cd3dd6716d15d4ad5e2d06de68 (patch)
treed735382d406dee19974a64ac252403dc1a48aa8a /drivers/net/mlx5/mlx5_flow.c
parent509782b35b5d2f8dfa2c8763c70cea777f5c4c07 (diff)
downloaddpdk-next-eventdev-c4d9b9f7f382e8cd3dd6716d15d4ad5e2d06de68.zip
dpdk-next-eventdev-c4d9b9f7f382e8cd3dd6716d15d4ad5e2d06de68.tar.gz
dpdk-next-eventdev-c4d9b9f7f382e8cd3dd6716d15d4ad5e2d06de68.tar.xz
net/mlx5: add Direct Verbs final functions
This commits add the missing function which are apply, remove, and destroy. Signed-off-by: Ori Kam <orika@mellanox.com> Acked-by: Yongseok Koh <yskoh@mellanox.com>
Diffstat (limited to 'drivers/net/mlx5/mlx5_flow.c')
-rw-r--r--drivers/net/mlx5/mlx5_flow.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c
index 69523ab..09a8f2e 100644
--- a/drivers/net/mlx5/mlx5_flow.c
+++ b/drivers/net/mlx5/mlx5_flow.c
@@ -2492,5 +2492,9 @@ mlx5_dev_filter_ctrl(struct rte_eth_dev *dev,
void
mlx5_flow_init_driver_ops(struct rte_eth_dev *dev __rte_unused)
{
+#ifdef HAVE_IBV_FLOW_DV_SUPPORT
+ mlx5_flow_dv_get_driver_ops(&nic_ops);
+#else
mlx5_flow_verbs_get_driver_ops(&nic_ops);
+#endif
}