From owner-freebsd-net@freebsd.org Thu Oct 26 17:01:45 2017 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 984CAE4E3FF for ; Thu, 26 Oct 2017 17:01:45 +0000 (UTC) (envelope-from aspam@cox.net) Received: from eastrmfepo102.cox.net (eastrmfepo102.cox.net [68.230.241.214]) by mx1.freebsd.org (Postfix) with ESMTP id 48D201627 for ; Thu, 26 Oct 2017 17:01:44 +0000 (UTC) (envelope-from aspam@cox.net) Received: from eastrmimpo109.cox.net ([68.230.241.222]) by eastrmfepo102.cox.net (InterMail vM.8.01.05.28 201-2260-151-171-20160122) with ESMTP id <20171026170144.TAXC14605.eastrmfepo102.cox.net@eastrmimpo109.cox.net> for ; Thu, 26 Oct 2017 13:01:44 -0400 Received: from thunder.sweets ([68.100.138.62]) by eastrmimpo109.cox.net with cox id SH1j1w00a1LxgH801H1jB6; Thu, 26 Oct 2017 13:01:44 -0400 X-CT-Class: Clean X-CT-Score: 0.00 X-CT-RefID: str=0001.0A020205.59F214F8.0042, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CT-Spam: 0 X-Authority-Analysis: v=2.2 cv=OtA/823t c=1 sm=1 tr=0 a=3mkzfl4ircflX6G+lDqBYw==:117 a=3mkzfl4ircflX6G+lDqBYw==:17 a=IkcTkHD0fZMA:10 a=x7bEGLp0ZPQA:10 a=02M-m0pO-4AA:10 a=e9ASbk4n0QUA:10 a=OvaVfXy-ICjw5lLnD7EA:9 a=QEXdDO2ut3YA:10 X-CM-Score: 0.00 Authentication-Results: cox.net; none Received: from [10.10.10.15] (thunder.sweets [10.10.10.15]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by thunder.sweets (Postfix) with ESMTP id 483B9113FC; Thu, 26 Oct 2017 13:01:43 -0400 (EDT) Message-ID: <59F214F6.9060905@cox.net> Date: Thu, 26 Oct 2017 13:01:42 -0400 From: Joe Buehler User-Agent: Thunderbird 1.5.0.12 (X11/20120201) MIME-Version: 1.0 To: Vincenzo Maffione CC: "freebsd-net@freebsd.org" Subject: Re: virtio_net / netmap RX dropping frames References: <59F0FBEE.6030008@cox.net> <59F1F1BA.3020608@cox.net> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Oct 2017 17:01:45 -0000 Vincenzo Maffione wrote: > So you are using netmap only in the guest (and not in the host). > And you are running a sender and a receiver inside the VM, both on the > VM interface. > Something like this > > # pkt-gen -i eth1 -f rx > # pkt-gen -i eth1 -f tx Yes that's the basic idea. > > ? > What happens if you use pkt-gen rather than your application? I was under the impression that I can't have two threads in the netmap kernel code at the same time so can't do that. Joe Buehler