From owner-freebsd-net@freebsd.org Fri Jul 10 20:03:16 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 95D51997DD9 for ; Fri, 10 Jul 2015 20:03:16 +0000 (UTC) (envelope-from rizzo.unipi@gmail.com) Received: from mail-la0-x231.google.com (mail-la0-x231.google.com [IPv6:2a00:1450:4010:c03::231]) (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 00BD91892 for ; Fri, 10 Jul 2015 20:03:16 +0000 (UTC) (envelope-from rizzo.unipi@gmail.com) Received: by labgy5 with SMTP id gy5so119256468lab.2 for ; Fri, 10 Jul 2015 13:03:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=iJrKlwEfIYBzs54aqXfXnBI1WGL0QvSnzbnPw/zjArQ=; b=g47Y10pAXqFI5KpFFJjRNIbaGRMwntT2G7VLXlMppAJDuA6QPrQPRmRScXTapfTPWo lEFvm3FR5xUo6sV5KBR1zQstqDuivFC1gv35xNGzGsDaFTIY7vRtanyNdMjjLx6JbaFz fC5mwjgyCZWOZviNGHrrjoMJXBo0SJ9yBRS4fukFWdycR+m37CAnbGUcVZWdMX1AiA/d 33n6nXd/2Df3b7r8QIoV/PTSh1Y3a26arSyRLF7ThXN4iNMBVSP1nb1OvT8tbBECjmXU V6fm29dTejJXaGC/TCbrOK1MXKTzG4mPziuUiUrDBrjHc1kmfEmO7CcbVozFyZTJI85l hgxg== MIME-Version: 1.0 X-Received: by 10.112.125.166 with SMTP id mr6mr21191830lbb.83.1436558591821; Fri, 10 Jul 2015 13:03:11 -0700 (PDT) Sender: rizzo.unipi@gmail.com Received: by 10.114.230.103 with HTTP; Fri, 10 Jul 2015 13:03:11 -0700 (PDT) In-Reply-To: References: Date: Fri, 10 Jul 2015 22:03:11 +0200 X-Google-Sender-Auth: G88MMxhcQvlgUdEKbcXoKXsdLTw Message-ID: Subject: Re: netmap-ipfw: kipfw two instances sharing same port From: Luigi Rizzo To: Eduardo Meyer 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:03:16 -0000 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 instance >>> 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 o= n >>> 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