summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_trigger.c
diff options
context:
space:
mode:
authorShahaf Shuler <shahafs@mellanox.com>2018-01-10 11:16:57 +0200
committerFerruh Yigit <ferruh.yigit@intel.com>2018-01-16 18:47:49 +0100
commit1cfa649ba614693165fc4659ace525d8b45bf110 (patch)
tree89f835b39fc7fdd9dd3c33a58896f7ce58b86f0e /drivers/net/mlx5/mlx5_trigger.c
parentd27fb0de2f2ae072f2dbdb236c1d10bd2b19b28f (diff)
downloaddpdk-1cfa649ba614693165fc4659ace525d8b45bf110.zip
dpdk-1cfa649ba614693165fc4659ace525d8b45bf110.tar.gz
dpdk-1cfa649ba614693165fc4659ace525d8b45bf110.tar.xz
net/mlx5: change pkt burst select function prototype
Change the function prototype to return the function pointer of the selected Tx/Rx burst function instead of assigning it directly to the device context. Such change will enable to use those select functions to query the burst function that will be selected according to the device configuration. Signed-off-by: Shahaf Shuler <shahafs@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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/mlx5/mlx5_trigger.c b/drivers/net/mlx5/mlx5_trigger.c
index 88f60a0..1a20967 100644
--- a/drivers/net/mlx5/mlx5_trigger.c
+++ b/drivers/net/mlx5/mlx5_trigger.c
@@ -152,7 +152,7 @@ mlx5_dev_start(struct rte_eth_dev *dev)
goto error;
}
/* Update send callback. */
- priv_dev_select_tx_function(priv, dev);
+ dev->tx_pkt_burst = priv_select_tx_function(priv, dev);
err = priv_rxq_start(priv);
if (err) {
ERROR("%p: RXQ allocation failed: %s",
@@ -160,7 +160,7 @@ mlx5_dev_start(struct rte_eth_dev *dev)
goto error;
}
/* Update receive callback. */
- priv_dev_select_rx_function(priv, dev);
+ dev->rx_pkt_burst = priv_select_rx_function(priv, dev);
err = priv_dev_traffic_enable(priv, dev);
if (err) {
ERROR("%p: an error occurred while configuring control flows:"