path: root/drivers/net/mlx5/mlx5_txq.c
diff options
authorViacheslav Ovsiienko <>2019-04-27 04:32:56 +0000
committerFerruh Yigit <>2019-05-03 18:45:23 +0200
commitab3cffcfc2b6d7612daa2e7048459e25650f56fc (patch)
tree3078bd159fcd5d6fcd10b3fdfecbc81e83d8185b /drivers/net/mlx5/mlx5_txq.c
parent0333b2f584d95577681ea88e4238be6cb4369569 (diff)
net/mlx5: share Memory Regions for multiport device
The multiport Infiniband device support was introduced [1]. All active ports, belonging to the same Infiniband device use the single shared Infiniband context of that device and share the resources: - QPs are created within shared context - Verbs flows are also created with specifying port index - DV/DR resources - Protection Domain - Event Handlers This patchset adds support for Memory Regions sharing between ports, created on the base of multiport Infiniband device. The datapath of mlx5 uses the layered cache subsystem for allocating/releasing Memory Regions, only the lowest layer L3 is subject to share due to performance issues. [1] Signed-off-by: Viacheslav Ovsiienko <> Acked-by: Yongseok Koh <>
Diffstat (limited to 'drivers/net/mlx5/mlx5_txq.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/mlx5/mlx5_txq.c b/drivers/net/mlx5/mlx5_txq.c
index dbe074f..4d55fd4 100644
--- a/drivers/net/mlx5/mlx5_txq.c
+++ b/drivers/net/mlx5/mlx5_txq.c
@@ -814,7 +814,7 @@ mlx5_txq_new(struct rte_eth_dev *dev, uint16_t idx, uint16_t desc,
goto error;
/* Save pointer of global generation number to check memory event. */
- tmpl->txq.mr_ctrl.dev_gen_ptr = &priv->mr.dev_gen;
+ tmpl->txq.mr_ctrl.dev_gen_ptr = &priv->sh->mr.dev_gen;
assert(desc > MLX5_TX_COMP_THRESH);
tmpl->txq.offloads = conf->offloads |