summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_stats.c
diff options
context:
space:
mode:
authorOr Ami <ora@mellanox.com>2016-03-17 16:38:55 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2016-03-25 18:56:44 +0100
commita48deada651bb18a72adc4cd0a45a1d6999d64f1 (patch)
tree3c8e7e6a0287c050507589f867928fc7108ac46c /drivers/net/mlx5/mlx5_stats.c
parent62072098b54ea502764b60f19a626013f838c778 (diff)
downloaddpdk-a48deada651bb18a72adc4cd0a45a1d6999d64f1.zip
dpdk-a48deada651bb18a72adc4cd0a45a1d6999d64f1.tar.gz
dpdk-a48deada651bb18a72adc4cd0a45a1d6999d64f1.tar.xz
mlx5: allow operation in secondary processes
Secondary processes are expected to use queues and other resources allocated by the primary, however Verbs resources can only be shared between processes when inherited through fork(). This limitation can be worked around for TX by configuring separate queues from secondary processes. Signed-off-by: Or Ami <ora@mellanox.com>
Diffstat (limited to 'drivers/net/mlx5/mlx5_stats.c')
-rw-r--r--drivers/net/mlx5/mlx5_stats.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/mlx5/mlx5_stats.c b/drivers/net/mlx5/mlx5_stats.c
index 6d1a600..2d3cb51 100644
--- a/drivers/net/mlx5/mlx5_stats.c
+++ b/drivers/net/mlx5/mlx5_stats.c
@@ -55,7 +55,7 @@
void
mlx5_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats)
{
- struct priv *priv = dev->data->dev_private;
+ struct priv *priv = mlx5_get_priv(dev);
struct rte_eth_stats tmp = {0};
unsigned int i;
unsigned int idx;