Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Oct 2017 19:26:09 +0200
From:      Vincenzo Maffione <v.maffione@gmail.com>
To:        Joe Buehler <aspam@cox.net>
Cc:        FreeBSD Net <freebsd-net@freebsd.org>
Subject:   Re: virtio_net / netmap RX dropping frames
Message-ID:  <CA%2B_eA9gcZnXPD1ZseznwwwTBr0jms6d0YsuuUdDbYjowBTSOYA@mail.gmail.com>
In-Reply-To: <59F214F6.9060905@cox.net>
References:  <59F0FBEE.6030008@cox.net> <59F1F1BA.3020608@cox.net> <59F214F6.9060905@cox.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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" <aspam@cox.net> 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
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B_eA9gcZnXPD1ZseznwwwTBr0jms6d0YsuuUdDbYjowBTSOYA>