Date: Fri, 10 Jul 2015 17:13:11 -0300 From: Eduardo Meyer <dudu.meyer@gmail.com> To: Luigi Rizzo <rizzo@iet.unipi.it> Cc: Pavel Odintsov <pavel.odintsov@gmail.com>, "freebsd-net@freebsd.org" <freebsd-net@freebsd.org> Subject: Re: netmap-ipfw: kipfw two instances sharing same port Message-ID: <CAEqdE_7D1h29i3KaD%2BgNZgTptEr-EekHQ_w6i778aQXrcSKO6Q@mail.gmail.com> In-Reply-To: <CA%2BhQ2%2Bjo1J52E=K_yT0-KO4_zbm-7MnEhvzghchifri8t7RuBA@mail.gmail.com> References: <CAEqdE_6EEwyMur161KpKqas_gcJb2mnn-Zb_q65%2BObbJD2oePw@mail.gmail.com> <CALgsdbdTxc7T-hxd4LjO940d0RSHW7ttPQ%2BdfBwOGC=FYKow%2Bw@mail.gmail.com> <CAEqdE_4tkzuzdWSS=kHCzJF7yo=-1FxhijjeN2dUVc7fLHuYOg@mail.gmail.com> <CA%2BhQ2%2Bh5i5-B6D7fcv1sB-cCNfbu3ije7Ga6W7TO=Qat1MCGKQ@mail.gmail.com> <CAEqdE_7cE7VBzRaXwtLod=KmsAvJudSyR--Dn5zhay_19OwGPA@mail.gmail.com> <CA%2BhQ2%2Bjo1J52E=K_yT0-KO4_zbm-7MnEhvzghchifri8t7RuBA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jul 10, 2015 at 5:03 PM, Luigi Rizzo <rizzo@iet.unipi.it> wrote: > > > On Fri, Jul 10, 2015 at 9:58 PM, Eduardo Meyer <dudu.meyer@gmail.com> > wrote: > >> On Fri, Jul 10, 2015 at 4:15 PM, Luigi Rizzo <rizzo@iet.unipi.it> wrote: >> >>> >>> >>> On Fri, Jul 10, 2015 at 9:14 PM, Eduardo Meyer <dudu.meyer@gmail.com> >>> wrote: >>> >>>> On Fri, Jul 10, 2015 at 4:09 PM, Pavel Odintsov < >>>> pavel.odintsov@gmail.com> >>>> wrote: >>>> >>>> > Hello! >>>> > >>>> > You could enable multiple queues for each NIC and run single instanc= e >>>> of >>>> > kipfw on each pair: >>>> > kipfw netmap:ix0-0 netmap:ix1-0 >>>> > kipfw netmap:ix0-1 netmap:ix1-1 >>>> > >>>> > And so on ;) i have about 12 mpps with this configuration (on Linux >>>> > netmap). >>>> > >>>> >>>> Wow cool hint and cool numbers. >>>> >>>> I will get everything properly bridged on both kipfw instances, right? >>>> >>>> I need to simulate like a 3-port bridge... this would me more like >>>> >>>> kipfw netmap:ix0-0 netmap:ix1-0 >>>> kipfw netmap:ix0-1 netmap:ix2-0 >>>> >>>> But I need the same traffic coming on the wire on ix0 to be available = on >>>> both ix1 and ix2. >>>> >>> >>> =E2=80=8Bit won't replicate traffic on the other two ports, >>> that's a different logic. >>> >>> cheers >>> luigi >>> >> >> yeah it's what I thought, >> different queues, different packets >> >> what about the first approach? should I expect issues? >> >> kipfw netmap:ix0 netmap:ix1 >> kipfw netmap:ix0 netmap:ix2 >> > > =E2=80=8Bit won't do what anything sensible: > processes will compete for packets randomly > passing them to one or the other port. > > =E2=80=8Bcheers > luigi=E2=80=8B > > Ok so it's a no-go for what I need, I would need to hack into kipfw to have a 3-port filtered bridge it looks like. And i don't believe there's existing code to find out which traffic should go to which port, so it's a whole new thing to code right? Thank you. --=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Eduardo Meyer pessoal: dudu.meyer@gmail.com profissional: ddm.farmaciap@saude.gov.br
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAEqdE_7D1h29i3KaD%2BgNZgTptEr-EekHQ_w6i778aQXrcSKO6Q>