From owner-freebsd-net@freebsd.org Thu Oct 26 17:26:11 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 C472FE4EEC6 for ; Thu, 26 Oct 2017 17:26:11 +0000 (UTC) (envelope-from v.maffione@gmail.com) Received: from mail-io0-x232.google.com (mail-io0-x232.google.com [IPv6:2607:f8b0:4001:c06::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 89B0A26E0 for ; Thu, 26 Oct 2017 17:26:11 +0000 (UTC) (envelope-from v.maffione@gmail.com) Received: by mail-io0-x232.google.com with SMTP id 134so7048004ioo.0 for ; Thu, 26 Oct 2017 10:26:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=L5jJq6Sbd0zluvDqZOGt9PLxs2RmRZKtRYxcff7ZH14=; b=qIftFGHOmk0ZcG07bPYv2ClGN2zXSBXzLd2M2Kn4yzohQFdkZp8A4ZTSTKG4mizY3X 5ma2b/k9OYcxvmTk9vrLm/Lk2+mCCsqWx0GtIra08SteP1UKmnzjrLlY4SHlzIw7xbLY DEEOQ3aaexZbDh+GmflSpCa0kY59dxec6c7pu++sCemSiH0O/RAt9XgfbKP+yM7nX3/u 9FJl2LMOBEXLouUZw6otzXT9plU6b6MXuZrKsRa+JLM8lZnhw53hPR6oD0EyNs7NVcyI rfpnQjN+/hpyr4SWKNtSteVO4lEBhiQfMcOIA1WGUq7UDu2s9Ke/oPtneY6BqtLLrzN6 lthA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=L5jJq6Sbd0zluvDqZOGt9PLxs2RmRZKtRYxcff7ZH14=; b=FZmtiIDiRzG9y528z8Iyzcx76xmyFSb8v/qMIewep6y3LPhDJIs112GUgIfLqSti2Q ZScuYva7PZuuL5ykhYFY/6FcjvkrlkoFgEecxiMB/vNInKsDMoEyfkr3boxr7IJ34Esn 0ZZ1qr3leZYolFFrL8egnuzguvZWeY3bO3La0rvc9pTvZ58u64nNaVbhpJz5GJMNGpn5 gD7m2ZbgjkXGQW7gvKS6RBVGU7BbS1vXl7taaksr4Nu7gMZKIHBT8/TqEHLZbTQ+lF5H XUftL494B8bJBH0cYiv27Z/fje0A0IAc5wiYmoHY2RzcG4cK7evPo1JJe53Dkl0IRsLc HSJA== X-Gm-Message-State: AMCzsaVX+SqHPPAPJuLOV3Zp6zuBl5cRTOYR09Q51aRMng5XbhSDDZvx Rz244zQUrhIeYuG511d1jRIuspzFQHg5pNfRaq8= X-Google-Smtp-Source: ABhQp+SypsGbh2plwekPy5y2eMnrCMLt+lRH5tYAmNNSAk67++gfYP5YXvVdCRVd24Pbph7T5dDwxgumq+niudeAO3E= X-Received: by 10.107.18.74 with SMTP id a71mr33330798ioj.58.1509038770717; Thu, 26 Oct 2017 10:26:10 -0700 (PDT) MIME-Version: 1.0 Received: by 10.2.176.143 with HTTP; Thu, 26 Oct 2017 10:26:09 -0700 (PDT) Received: by 10.2.176.143 with HTTP; Thu, 26 Oct 2017 10:26:09 -0700 (PDT) In-Reply-To: <59F214F6.9060905@cox.net> References: <59F0FBEE.6030008@cox.net> <59F1F1BA.3020608@cox.net> <59F214F6.9060905@cox.net> From: Vincenzo Maffione Date: Thu, 26 Oct 2017 19:26:09 +0200 Message-ID: Subject: Re: virtio_net / netmap RX dropping frames To: Joe Buehler Cc: FreeBSD Net Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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:26:11 -0000 You can have how many threads and processes you want. The constraint is that there must not be two threads accessing the same ring at the same time. In this case each pktgen is accessing different rings. Il 26 ott 2017 7:01 PM, "Joe Buehler" ha scritto: > 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 >