summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_trigger.c
diff options
context:
space:
mode:
authorNĂ©lio Laranjeiro <nelio.laranjeiro@6wind.com>2016-12-29 16:15:18 +0100
committerFerruh Yigit <ferruh.yigit@intel.com>2017-01-17 19:40:52 +0100
commit2097d0d1e2cc0c87f7eeea5a028810326b0f033c (patch)
treea0ce086d1f45fbd9a105d6f66f6c62fd85c086b8 /drivers/net/mlx5/mlx5_trigger.c
parent0d356350faf9440f731916cac1d5d79572b8410f (diff)
downloaddpdk-2097d0d1e2cc0c87f7eeea5a028810326b0f033c.zip
dpdk-2097d0d1e2cc0c87f7eeea5a028810326b0f033c.tar.gz
dpdk-2097d0d1e2cc0c87f7eeea5a028810326b0f033c.tar.xz
net/mlx5: support basic flow items and actions
Introduce initial software for rte_flow rules. VLAN, VXLAN are still not supported. Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com> Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Diffstat (limited to 'drivers/net/mlx5/mlx5_trigger.c')
-rw-r--r--drivers/net/mlx5/mlx5_trigger.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/mlx5/mlx5_trigger.c b/drivers/net/mlx5/mlx5_trigger.c
index d4dccd8..2399243 100644
--- a/drivers/net/mlx5/mlx5_trigger.c
+++ b/drivers/net/mlx5/mlx5_trigger.c
@@ -90,6 +90,7 @@ mlx5_dev_start(struct rte_eth_dev *dev)
if (dev->data->dev_conf.fdir_conf.mode != RTE_FDIR_MODE_NONE)
priv_fdir_enable(priv);
priv_dev_interrupt_handler_install(priv, dev);
+ err = priv_flow_start(priv);
priv_unlock(priv);
return -err;
}
@@ -120,6 +121,7 @@ mlx5_dev_stop(struct rte_eth_dev *dev)
priv_mac_addrs_disable(priv);
priv_destroy_hash_rxqs(priv);
priv_fdir_disable(priv);
+ priv_flow_stop(priv);
priv_dev_interrupt_handler_uninstall(priv, dev);
priv->started = 0;
priv_unlock(priv);