summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_trigger.c
diff options
context:
space:
mode:
authorXueming Li <xuemingl@mellanox.com>2017-10-06 23:45:48 +0800
committerFerruh Yigit <ferruh.yigit@intel.com>2017-10-12 01:36:57 +0100
commitaee1b165dbeeea0df004e2500c7a5f668afa8795 (patch)
tree6f99099402d8af1dda0f5e40d0c55018b1708b66 /drivers/net/mlx5/mlx5_trigger.c
parentc9a4779135c9f08ea678961256951896e7ac5c80 (diff)
downloaddpdk-aee1b165dbeeea0df004e2500c7a5f668afa8795.zip
dpdk-aee1b165dbeeea0df004e2500c7a5f668afa8795.tar.gz
dpdk-aee1b165dbeeea0df004e2500c7a5f668afa8795.tar.xz
net/mlx5: change eth device reference for secondary process
rte_eth_dev created by primary process were not available in secondary process, it was not possible to use the primary process local memory object from a secondary process. This patch modify the reference of primary rte_eth_dev object, use local rte_eth_dev secondary process instead. Signed-off-by: Xueming Li <xuemingl@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 3fa9401..51c31aa 100644
--- a/drivers/net/mlx5/mlx5_trigger.c
+++ b/drivers/net/mlx5/mlx5_trigger.c
@@ -66,8 +66,8 @@ mlx5_dev_start(struct rte_eth_dev *dev)
return 0;
}
/* Update Rx/Tx callback. */
- priv_select_tx_function(priv);
- priv_select_rx_function(priv);
+ priv_dev_select_tx_function(priv, dev);
+ priv_dev_select_rx_function(priv, dev);
DEBUG("%p: allocating and configuring hash RX queues", (void *)dev);
err = priv_create_hash_rxqs(priv);
if (!err)