From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Burakov, Anatoly" Subject: Re: [PATCH 3/5] net/mlx5: add new Memory Region support Date: Thu, 3 May 2018 09:21:05 +0100 Message-ID: References: <20180502231654.7596-1-yskoh@mellanox.com> <20180502231654.7596-4-yskoh@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org To: Yongseok Koh , adrien.mazarguil@6wind.com, nelio.laranjeiro@6wind.com Return-path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id C77AC2BE2 for ; Thu, 3 May 2018 10:21:08 +0200 (CEST) In-Reply-To: <20180502231654.7596-4-yskoh@mellanox.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 > --- > 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