summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_trigger.c
diff options
context:
space:
mode:
authorYaacov Hazan <yaacovh@mellanox.com>2016-03-03 15:26:43 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2016-03-16 18:52:17 +0100
commit76f5c99e684094cc96ea619c0f8c784d467c00b1 (patch)
treefae445da229a4b6cbb4ab6e7f32f4dfb267c87b6 /drivers/net/mlx5/mlx5_trigger.c
parent1a56bdacebe3c89036335140326d85ccd0a73642 (diff)
downloaddpdk-76f5c99e684094cc96ea619c0f8c784d467c00b1.zip
dpdk-76f5c99e684094cc96ea619c0f8c784d467c00b1.tar.gz
dpdk-76f5c99e684094cc96ea619c0f8c784d467c00b1.tar.xz
mlx5: support flow director
Add support for flow director filters (RTE_FDIR_MODE_PERFECT and RTE_FDIR_MODE_PERFECT_MAC_VLAN modes). This feature requires MLNX_OFED >= 3.2. Signed-off-by: Yaacov Hazan <yaacovh@mellanox.com> Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com> Signed-off-by: Raslan Darawsheh <rdarawsheh@asaltech.com>
Diffstat (limited to 'drivers/net/mlx5/mlx5_trigger.c')
-rw-r--r--drivers/net/mlx5/mlx5_trigger.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/mlx5/mlx5_trigger.c b/drivers/net/mlx5/mlx5_trigger.c
index 90b8068..db7890f 100644
--- a/drivers/net/mlx5/mlx5_trigger.c
+++ b/drivers/net/mlx5/mlx5_trigger.c
@@ -87,6 +87,8 @@ mlx5_dev_start(struct rte_eth_dev *dev)
priv_mac_addrs_disable(priv);
priv_destroy_hash_rxqs(priv);
}
+ if (dev->data->dev_conf.fdir_conf.mode != RTE_FDIR_MODE_NONE)
+ priv_fdir_enable(priv);
priv_dev_interrupt_handler_install(priv, dev);
priv_unlock(priv);
return -err;
@@ -117,6 +119,7 @@ mlx5_dev_stop(struct rte_eth_dev *dev)
priv_special_flow_disable(priv, HASH_RXQ_FLOW_TYPE_PROMISC);
priv_mac_addrs_disable(priv);
priv_destroy_hash_rxqs(priv);
+ priv_fdir_disable(priv);
priv_dev_interrupt_handler_uninstall(priv, dev);
priv->started = 0;
priv_unlock(priv);