RE: [Patch v3 10/17] net/mana: implement memory registration

2022-07-07 Thread Long Li
> Subject: Re: [Patch v3 10/17] net/mana: implement memory registration > > On Thu, 7 Jul 2022 13:30:15 -0700 > lon...@linuxonhyperv.com wrote: > > > +int mana_new_pmd_mr(struct mana_mr_btree *local_tree, struct mana_priv > *priv, > > +

Re: [Patch v3 10/17] net/mana: implement memory registration

2022-07-07 Thread Stephen Hemminger
On Thu, 7 Jul 2022 13:30:15 -0700 lon...@linuxonhyperv.com wrote: > +int mana_new_pmd_mr(struct mana_mr_btree *local_tree, struct mana_priv *priv, > + struct rte_mempool *pool) > +{ > + struct ibv_mr *ibv_mr; > + struct mana_range ranges[pool->nb_mem_chunks]; > + uint3

[Patch v3 10/17] net/mana: implement memory registration

2022-07-07 Thread longli
From: Long Li MANA hardware has iommu built-in, that provides hardware safe access to user memory through memory registration. Since memory registration is an expensive operation, this patch implements a two level memory registration cache mechanisum for each queue and for each port. Signed-off-