Date: Thu, 28 Jun 2012 20:26:50 +0200 From: rizzo <rizzo@iet.unipi.it> To: "root@9du.org" <root@9du.org> Cc: freebsd-current <freebsd-current@freebsd.org> Subject: Re: about netmap NETMAP_HW_RING recv pcaket Message-ID: <20120628182650.GA24536@onelab2.iet.unipi.it> In-Reply-To: <2012062821245416134218@9du.org> References: <20120628120031.460411065674@hub.freebsd.org> <2012062821245416134218@9du.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jun 28, 2012 at 09:24:59PM +0800, root@9du.org wrote: > in pkt-gen.c > tifreq.nr_ringid = (g.nthreads > 1) ? (i | NETMAP_HW_RING) : 0; > > in netmap.c > if (priv->np_qlast != NETMAP_HW_RING) { > lim_tx = lim_rx = priv->np_qlast; > } > .... > > if nthreads 2.but have 8 num_tx_rings.(ixgbe default is 8) > looks like > thread #1 priv->np_qfirst = 0 priv->np_qlast = 1 > thread #2 priv->np_qfirst = 1 priv->np_qlast = 2 > > if packet in num_tx_rings 2-7 will be lost some packet? if you decide to attach to individual rings then it is up to you to bind enough threads as there are rings. pkt-gen.c is only a test program, not all combinations of options are necessary meaningful cheers luigi
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120628182650.GA24536>