From owner-freebsd-net@FreeBSD.ORG Wed Sep 25 08:54:01 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 7020E12C for ; Wed, 25 Sep 2013 08:54:01 +0000 (UTC) (envelope-from hiren.panchasara@gmail.com) Received: from mail-ee0-x233.google.com (mail-ee0-x233.google.com [IPv6:2a00:1450:4013:c00::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 081562359 for ; Wed, 25 Sep 2013 08:54:00 +0000 (UTC) Received: by mail-ee0-f51.google.com with SMTP id c1so2982437eek.24 for ; Wed, 25 Sep 2013 01:53:59 -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=vSTSyTlmUH6F0JAthoYGzO1b/irT0oPCA3GLbr6zjbs=; b=NgsYcHCRjDBMTQZRIEfCxRMJoYJEzS6rpxqsiucqG21zo14wUxqHX0t2EK/611MtO+ BOquxc4Rqg67j0ZC4/Tmk9yYOeDfXgNGQyQXptwopVPi5jzR/MXE9bLrmpgD9YieSsmh 927bCJ6WGwUdQ7uYvBIzFh+1EG90TPiXYuoRYN7OulIJQuy6QhIn2qETDRmjDm9OMZ0G BPSPKjT1fy2yL4xSL1RmT4FW+PnW+XuMRKBkp27LsO2LaYxJ55PIkYb7AvAOcDLtpWnR gET+MiESm8bHtRy/NMV6OlU+UBWv6KOAY4PCxFpW55cTg0+uu26kiIo0PMtgJAVpOZZd M6rQ== MIME-Version: 1.0 X-Received: by 10.15.74.197 with SMTP id j45mr29414377eey.40.1380099239479; Wed, 25 Sep 2013 01:53:59 -0700 (PDT) Received: by 10.14.105.137 with HTTP; Wed, 25 Sep 2013 01:53:59 -0700 (PDT) In-Reply-To: References: Date: Wed, 25 Sep 2013 01:53:59 -0700 Message-ID: Subject: Re: netmap: traffic distribution From: hiren panchasara To: Luigi Rizzo Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: "freebsd-net@freebsd.org" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Sep 2013 08:54:01 -0000 On Wed, Sep 25, 2013 at 1:22 AM, Luigi Rizzo wrote: > On Wed, Sep 25, 2013 at 10:07 AM, hiren panchasara > wrote: > > > > I am providing line rate traffic (via pkg-gen.c) to my 10gig ix > interface. > > > > Now on receiving side, is there a way to sub-divide the traffic into > > multiple workloads using netmap? > > > > For example, can I get two 5G flows from 10Gbps traffic? > > not directly. You'd need to send packets with different addresses that > match > the way the filters on the NIC (RSS or similar) are programmed. > Thanks for quick responses, Liugi. So, FreeBSD needs PF_RING like thing? Any other way we can do it? Someone pointed me to multiqueue bpf too. Not sure if I can use that to achieve what I am looking for. cheers, Hiren