[dpdk-dev] [PATCH v6 3/6] raw/ntb: add handshake process

Li, Xiaoyun xiaoyun.li at intel.com
Thu Jun 20 12:06:26 CEST 2019


Thanks for comments for patch 1 & 2. Will refine them in the coming v7.
And
> -----Original Message-----
> From: Wu, Jingjing
> Sent: Wednesday, June 19, 2019 00:08
> To: Li, Xiaoyun <xiaoyun.li at intel.com>; Wiles, Keith <keith.wiles at intel.com>;
> Liang, Cunming <cunming.liang at intel.com>; Maslekar, Omkar
> <omkar.maslekar at intel.com>
> Cc: dev at dpdk.org
> Subject: RE: [PATCH v6 3/6] raw/ntb: add handshake process
> 
> >mw_size[mw_idx]);
> 
> If the memzone is reserved inside of driver, how is the buffer be mapped without
> copy when enqueuer/dequeuer as the buffer might not be in the memzone?
> How about to design the dev_config to set the mw to be a memzone (might
> address + size) which can be created by application instead of created internally?

This is a temporary function to verify the memory w/r works and to suit the hw limitation.
There is no fifo right now. Will add the whole process of pkt mbuf pool create and aligned memzone allocation in next release.

> 
> > +	db_bits = (*hw->ntb_ops->db_read)(dev);
> > +	if (!db_bits)
> > +		NTB_LOG(ERR, "No doorbells");
> > +
> 
> Is the db_bits a common setting between different kind of NTB?
Yes.

> 
> [......]
> > +	/* Init doorbell. */
> > +	hw->db_valid_mask = ((uint64_t)1 << hw->db_cnt) - 1;
> Use RTE_LEN2MASK instead?
Sure. Thx.

> 
> Thanks
> Jingjing


More information about the dev mailing list