From mboxrd@z Thu Jan 1 00:00:00 1970 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) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 May 2018 01:21:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,357,1520924400"; d="scan'208";a="51159591" Received: from aburakov-mobl.ger.corp.intel.com (HELO [10.252.18.186]) ([10.252.18.186]) by fmsmga004.fm.intel.com with ESMTP; 03 May 2018 01:21:06 -0700 To: Yongseok Koh , adrien.mazarguil@6wind.com, nelio.laranjeiro@6wind.com Cc: dev@dpdk.org References: <20180502231654.7596-1-yskoh@mellanox.com> <20180502231654.7596-4-yskoh@mellanox.com> From: "Burakov, Anatoly" Message-ID: Date: Thu, 3 May 2018 09:21:05 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180502231654.7596-4-yskoh@mellanox.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH 3/5] net/mlx5: add new Memory Region support X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 May 2018 08:21:09 -0000 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