summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_trigger.c
diff options
context:
space:
mode:
authorYongseok Koh <yskoh@mellanox.com>2017-07-06 11:41:09 -0700
committerFerruh Yigit <ferruh.yigit@intel.com>2017-07-07 11:55:47 +0200
commitf3d2dcc856fe6de4e14a9a44eb760da4634df655 (patch)
tree8dd7190dbf28d2f60e94de5c330ade2523269a85 /drivers/net/mlx5/mlx5_trigger.c
parentb0b09384579357265db6cb01a0d1ee24b19b3163 (diff)
downloaddpdk-f3d2dcc856fe6de4e14a9a44eb760da4634df655.zip
dpdk-f3d2dcc856fe6de4e14a9a44eb760da4634df655.tar.gz
dpdk-f3d2dcc856fe6de4e14a9a44eb760da4634df655.tar.xz
net/mlx5: select Rx/Tx callbacks when starting device
The callbacks are global to a device but the selection is made every queue configuration, which is redundant. Signed-off-by: Yongseok Koh <yskoh@mellanox.com> Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.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 40f23da..595a9e0 100644
--- a/drivers/net/mlx5/mlx5_trigger.c
+++ b/drivers/net/mlx5/mlx5_trigger.c
@@ -72,6 +72,9 @@ mlx5_dev_start(struct rte_eth_dev *dev)
priv_unlock(priv);
return 0;
}
+ /* Update Rx/Tx callback. */
+ priv_select_tx_function(priv);
+ priv_select_rx_function(priv);
DEBUG("%p: allocating and configuring hash RX queues", (void *)dev);
err = priv_create_hash_rxqs(priv);
if (!err)