From owner-freebsd-net@FreeBSD.ORG Thu Oct 3 07:04:56 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 0D057F01 for ; Thu, 3 Oct 2013 07:04:56 +0000 (UTC) (envelope-from rizzo.unipi@gmail.com) Received: from mail-la0-x22a.google.com (mail-la0-x22a.google.com [IPv6:2a00:1450:4010:c03::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 775212812 for ; Thu, 3 Oct 2013 07:04:55 +0000 (UTC) Received: by mail-la0-f42.google.com with SMTP id ep20so1554239lab.15 for ; Thu, 03 Oct 2013 00:04:53 -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=/1nuIAin0piSKNYqSRc/SZBDntubsQwPhbVyiFKp/Iw=; b=cbyvZvzEznlT5Q+deVPZWiBxg5nGAmRGRibx+lrYdGoXcsdySeL+X/Lah6B95Ojjkd I/hSk5NKfrtzyrtTVFk5X8+K1Ifu9dOd9uk/jnnEatbzKR94lpe0uk4U52atWyyA/HS2 Wc6vcIgicYK9EajqFa46pmhl+EhUIoby/csOjlK9VcXTnNIKY0UJN/Pjz1O0DjttO83P Ivbij/Sa4dHr0sXzyXJgIPUMhy/T8b8CxInZiWRkbHz+C0TYNHzlVvphKsMPntEPsDSt Nc7oSJyHHoMfmy8pWbzoBlB8/3gemnk7B66dzS7TkzpjlYX8zNgSIevodgXLpO0ZvPVm r2LA== MIME-Version: 1.0 X-Received: by 10.112.155.230 with SMTP id vz6mr572780lbb.35.1380783893602; Thu, 03 Oct 2013 00:04:53 -0700 (PDT) Sender: rizzo.unipi@gmail.com Received: by 10.114.172.105 with HTTP; Thu, 3 Oct 2013 00:04:53 -0700 (PDT) In-Reply-To: References: Date: Thu, 3 Oct 2013 09:04:53 +0200 X-Google-Sender-Auth: EVI-KSZogFN4PVZLMyccDsf8Yqo Message-ID: Subject: Re: netmap: understanding pkg-gen.c From: Luigi Rizzo To: hiren panchasara Content-Type: text/plain; charset=ISO-8859-1 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: Thu, 03 Oct 2013 07:04:56 -0000 On Thu, Oct 3, 2013 at 8:51 AM, hiren panchasara wrote: > > But you will still see traffic only to one queue, because >> pkt-gen by default uses the same DST-MAC address so the >> way you configure RSS is irrelevant. >> > What/where is the exact logic/code of how card determines what traffic > goes to what queue? > Is it based on DST-MAC always? > i think it depends on how you configure it. the NIC has some flexible filters, and i do not know exactly how it is used. > What you could do is, when prefilling the buffers, use >> different mac or ip addresses. There is some unfinished >> code in pkt-gen.c to implement that. >> > > I see we are not playing with g.dst_mac.name much. > Let me know if you have unfinished code sitting somewhere I can look. > all i have is unfinished and is in the pkt-gen.c in the freebsd source tree (src/tools/netmap i believe) cheers luigi