summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_trigger.c
diff options
context:
space:
mode:
authorNĂ©lio Laranjeiro <nelio.laranjeiro@6wind.com>2017-10-09 16:44:57 +0200
committerFerruh Yigit <ferruh.yigit@intel.com>2017-10-12 01:36:58 +0100
commit29957ec421986a138818324e3a0c5e2a0aa35552 (patch)
treeda4061e862cac684f77e81a7b7a950d168caf3d5 /drivers/net/mlx5/mlx5_trigger.c
parent29c1d8bb3e793468d99790e9f700d349b2b93075 (diff)
downloaddpdk-29957ec421986a138818324e3a0c5e2a0aa35552.zip
dpdk-29957ec421986a138818324e3a0c5e2a0aa35552.tar.gz
dpdk-29957ec421986a138818324e3a0c5e2a0aa35552.tar.xz
net/mlx5: remove hash Rx queues support
From this commit the RSS support becomes un-available until it is replaced by the generic flow implementation. Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com> Acked-by: Yongseok Koh <yskoh@mellanox.com>
Diffstat (limited to 'drivers/net/mlx5/mlx5_trigger.c')
-rw-r--r--drivers/net/mlx5/mlx5_trigger.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/net/mlx5/mlx5_trigger.c b/drivers/net/mlx5/mlx5_trigger.c
index 4143571..29167ba 100644
--- a/drivers/net/mlx5/mlx5_trigger.c
+++ b/drivers/net/mlx5/mlx5_trigger.c
@@ -161,9 +161,9 @@ mlx5_dev_start(struct rte_eth_dev *dev)
}
/* Update receive callback. */
priv_dev_select_rx_function(priv, dev);
- err = priv_create_hash_rxqs(priv);
+ err = priv_dev_traffic_enable(priv, dev);
if (err) {
- ERROR("%p: an error occurred while configuring hash RX queues:"
+ ERROR("%p: an error occurred while configuring control flows:"
" %s",
(void *)priv, strerror(err));
goto error;
@@ -190,8 +190,8 @@ error:
dev->data->dev_started = 0;
LIST_FOREACH(mr, &priv->mr, next)
priv_mr_release(priv, mr);
- priv_destroy_hash_rxqs(priv);
priv_flow_stop(priv, &priv->flows);
+ priv_dev_traffic_disable(priv, dev);
priv_txq_stop(priv);
priv_rxq_stop(priv);
priv_flow_delete_drop_queue(priv);
@@ -224,9 +224,8 @@ mlx5_dev_stop(struct rte_eth_dev *dev)
rte_wmb();
usleep(1000 * priv->rxqs_n);
DEBUG("%p: cleaning up and destroying hash RX queues", (void *)dev);
- priv_destroy_hash_rxqs(priv);
priv_flow_stop(priv, &priv->flows);
- priv_flow_flush(priv, &priv->ctrl_flows);
+ priv_dev_traffic_disable(priv, dev);
priv_rx_intr_vec_disable(priv);
priv_dev_interrupt_handler_uninstall(priv, dev);
priv_txq_stop(priv);