[dpdk-dev] [PATCH v4 4/4] examples/ntb: support more functions for NTB

Li, Xiaoyun xiaoyun.li at intel.com
Mon Sep 23 09:26:19 CEST 2019


Hi

> -----Original Message-----
> From: Wu, Jingjing
> Sent: Monday, September 23, 2019 15:19
> To: Li, Xiaoyun <xiaoyun.li at intel.com>; Wiles, Keith <keith.wiles at intel.com>;
> Maslekar, Omkar <omkar.maslekar at intel.com>; Liang, Cunming
> <cunming.liang at intel.com>
> Cc: dev at dpdk.org
> Subject: RE: [PATCH v4 4/4] examples/ntb: support more functions for NTB
> 
> <...>
> 
> > +* ``--qp=N``
> > +
> > +  Set the number of queues as N, where qp > 0.
> The default value is 1?
Yes. Will add respective comment and guide.
> 
> <...>
> 
> > +
> > +	/* Set default fwd mode if user doesn't set it. */
> > +	if (fwd_mode == MAX_FWD_MODE && eth_port_id <
> RTE_MAX_ETHPORTS) {
> > +		printf("Set default fwd mode as iofwd.\n");
> > +		fwd_mode = IOFWD;
> > +	}
> > +	if (fwd_mode == MAX_FWD_MODE) {
> 
> use "else if"? because (fwd_mode == MAX_FWD_MODE) including (fwd_mode
> == MAX_FWD_MODE && eth_port_id < RTE_MAX_ETHPORTS)
Yes. Thanks.
> 
> Thanks
> Jingjing


More information about the dev mailing list