From owner-freebsd-net@freebsd.org Fri Jul 10 20:13:12 2015 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 9ACEC997F5A for ; Fri, 10 Jul 2015 20:13:12 +0000 (UTC) (envelope-from dudu.meyer@gmail.com) Received: from mail-qk0-x22f.google.com (mail-qk0-x22f.google.com [IPv6:2607:f8b0:400d:c09::22f]) (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 517C71C6C for ; Fri, 10 Jul 2015 20:13:12 +0000 (UTC) (envelope-from dudu.meyer@gmail.com) Received: by qkhu186 with SMTP id u186so214547109qkh.0 for ; Fri, 10 Jul 2015 13:13:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=G/u2J6d5dAU4xMQSZwm0ycCZnPPIDkrdWjr4ao+05eM=; b=PA0J/AFpjVWzq2q0Bbs4OJY2xazXK7iQeFryfLNCROe4bcZHbDetiWEMbz3a+D+EjG R1c2vq5yhCSwsRsVSEIxVHaJKKqTgDPiV844OHas5x2eR5Qz+/mZgiSBBObk5xp1nT8s ZdXJ7voyo9Z12qnQL46wT8Wv9N52QLcuKyJF8pqVrgSMdYA0fpLr2sKXVzE4/xRGYij9 9+lnAee7igtjPmi8UMEZ0MFzGRzPqvtxAWBH8pcjA3bwplf2W+KtEbEriYWrZiM3tzYR dJzJYqvfF7KhaEqDYCj5OX2D+ubGkCX2VnZnAny86GTTvGKiHjs/toM5q9jgjCWQTB7k i/gw== MIME-Version: 1.0 X-Received: by 10.140.231.8 with SMTP id b8mr38036803qhc.55.1436559191566; Fri, 10 Jul 2015 13:13:11 -0700 (PDT) Received: by 10.96.111.232 with HTTP; Fri, 10 Jul 2015 13:13:11 -0700 (PDT) In-Reply-To: References: Date: Fri, 10 Jul 2015 17:13:11 -0300 Message-ID: Subject: Re: netmap-ipfw: kipfw two instances sharing same port From: Eduardo Meyer To: Luigi Rizzo Cc: Pavel Odintsov , "freebsd-net@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Jul 2015 20:13:12 -0000 On Fri, Jul 10, 2015 at 5:03 PM, Luigi Rizzo wrote: > > > On Fri, Jul 10, 2015 at 9:58 PM, Eduardo Meyer > wrote: > >> On Fri, Jul 10, 2015 at 4:15 PM, Luigi Rizzo wrote: >> >>> >>> >>> On Fri, Jul 10, 2015 at 9:14 PM, Eduardo Meyer >>> 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