summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_rss.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_rss.c
parentc9a4779135c9f08ea678961256951896e7ac5c80 (diff)
downloaddpdk-next-eventdev-aee1b165dbeeea0df004e2500c7a5f668afa8795.zip
dpdk-next-eventdev-aee1b165dbeeea0df004e2500c7a5f668afa8795.tar.gz
dpdk-next-eventdev-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_rss.c')
-rw-r--r--drivers/net/mlx5/mlx5_rss.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/mlx5/mlx5_rss.c b/drivers/net/mlx5/mlx5_rss.c
index 1249943..d3d2603 100644
--- a/drivers/net/mlx5/mlx5_rss.c
+++ b/drivers/net/mlx5/mlx5_rss.c
@@ -350,6 +350,7 @@ mlx5_dev_rss_reta_update(struct rte_eth_dev *dev,
int ret;
struct priv *priv = dev->data->dev_private;
+ assert(!mlx5_is_secondary());
mlx5_dev_stop(dev);
priv_lock(priv);
ret = priv_dev_rss_reta_update(priv, reta_conf, reta_size);