Hi Thomas, > -----Original Message----- > From: Ouyang, Changchun > Sent: Saturday, May 23, 2015 9:25 AM > To: Thomas F Herbert; dpdk >> dev at dpdk.org > Cc: Ouyang, Changchun > Subject: RE: [dpdk-dev] [PATCH 4/6] vhost: Add new command line option: > rxq > > Hi Thomas, > > > -----Original Message----- > > From: Thomas F Herbert [mailto:therbert at redhat.com] > > Sent: Friday, May 22, 2015 8:51 PM > > To: Ouyang, Changchun; dpdk >> dev at dpdk.org > > Subject: Re: [dpdk-dev] [PATCH 4/6] vhost: Add new command line option: > > rxq > > > > > > > > On 5/22/15 2:05 AM, Ouyang, Changchun wrote: > > > Hi Thomas, > > > > > >> -----Original Message----- > > >> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Thomas F > > Herbert > > >> Sent: Friday, May 22, 2015 9:39 AM > > >> To: dpdk >> dev at dpdk.org > > >> Subject: Re: [dpdk-dev] [PATCH 4/6] vhost: Add new command line > > option: > > >> rxq > > >> > > >> > > >> > > >> On 5/21/15 3:49 AM, Ouyang Changchun wrote: > > >>> Sample vhost need know the queue number user want to enable for > > each > > >>> virtio device, so add the new option '--rxq' into it. > > >> Could you also add the new --rxq option description to > us_vhost_usage()? > > > > > > Actually we have, please see below > > True enough. However, the code calls rte_eal_init() before parsing > > args and therefore takes rte_exit before printing usage of the non-eal > options.
Use this command line could address your question: vhost-switch -c 0xf -n 4 -- -help it will go through eal and come to helper function in vhost-switch, then you can see the usage info for vhost. Thanks Changchun