[dpdk-dev] [PATCH 3/5] net/mlx5: add new Memory Region support
Burakov, Anatoly
anatoly.burakov at intel.com
Thu May 3 10:21:05 CEST 2018
On 03-May-18 12:16 AM, Yongseok Koh wrote:
> This is the new design of Memory Region (MR) for mlx PMD, in order to:
> - Accommodate the new memory hotplug model.
> - Support non-contiguous Mempool.
>
> Signed-off-by: Yongseok Koh <yskoh at mellanox.com>
> ---
> mlx5_flow_delete_drop_queue(dev);
> + mlx5_mr_release(dev);
> if (priv->pd != NULL) {
> assert(priv->ctx != NULL);
> claim_zero(mlx5_glue->dealloc_pd(priv->pd));
> @@ -633,6 +674,8 @@ mlx5_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,
> struct ibv_counter_set_description cs_desc;
> #endif
>
> + /* Prepare shared data between primary and secondary process. */
> + mlx5_prepare_shared_data();
> assert(pci_drv == &mlx5_driver);
> /* Get mlx5_dev[] index. */
> idx = mlx5_dev_idx(&pci_dev->addr);
> @@ -1293,6 +1336,8 @@ rte_mlx5_pmd_init(void)
> }
> mlx5_glue->fork_init();
> rte_pci_register(&mlx5_driver);
> + rte_mem_event_callback_register("MLX5_MEM_EVENT_CB",
> + mlx5_mr_mem_event_cb);
Heads up - this API may/will change slightly, see:
http://dpdk.org/dev/patchwork/patch/39280/
--
Thanks,
Anatoly
More information about the dev
mailing list