From owner-freebsd-net@FreeBSD.ORG Sun Oct 20 07:39:14 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 E2FA8B57 for ; Sun, 20 Oct 2013 07:39:14 +0000 (UTC) (envelope-from s.khanchi@gmail.com) Received: from mail-wi0-x22f.google.com (mail-wi0-x22f.google.com [IPv6:2a00:1450:400c:c05::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7DBCA2AA8 for ; Sun, 20 Oct 2013 07:39:14 +0000 (UTC) Received: by mail-wi0-f175.google.com with SMTP id hm4so2630800wib.8 for ; Sun, 20 Oct 2013 00:39:12 -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:from:date:message-id :subject:to:cc:content-type; bh=W12hy1/oglZUB1XJb/qKAFKv7YzrfmV86VvbrPlbwP4=; b=CX14zU8qAPxPcjoIMwHwsZbImsd8EHrm2Zh6zxlH87ngZH9rMq1xfXYzCG3bISoMAt XB6k90RoXnKSKTPdXTwWaA5q1kkw9ikmWBxgTx8fwH+k5VgEao/4obmgXA8PSI4QJ5Ho LC/CK1IJQJiXFcUte2MGbsQkCDEFxjCaZyXHhxDgfuZD3GJij5Xc92ot5bvdBPwIOrE5 b9/NtjlDlsaBJuN4YTgYM86gyDY32Lpn+I9QYsNjqEN78PaHsEQv4DcfnkhuUrPt20ep 7QIMnUGGord/LSxLepOxyYDM0UuBlcW+g9W/FC8RsfUHSXC/4rgHmosZbhmR7cJYmKZt iuuA== X-Received: by 10.194.240.197 with SMTP id wc5mr9170604wjc.23.1382254752878; Sun, 20 Oct 2013 00:39:12 -0700 (PDT) MIME-Version: 1.0 Sender: s.khanchi@gmail.com Received: by 10.194.119.73 with HTTP; Sun, 20 Oct 2013 00:38:52 -0700 (PDT) In-Reply-To: References: From: h bagade Date: Sun, 20 Oct 2013 11:08:52 +0330 X-Google-Sender-Auth: pEfu-e7es9y6jelGHGe2KJAtFzY Message-ID: Subject: Re: Netmap and in-kernel IPFW interactions! To: Luigi Rizzo Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: "freebsd-net@freebsd.org" , Raimundo Santos 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: Sun, 20 Oct 2013 07:39:15 -0000 On Sat, Oct 19, 2013 at 8:13 PM, Luigi Rizzo wrote: > > On Sat, Oct 19, 2013 at 9:32 AM, h bagade wrote: > >> On Sat, Oct 19, 2013 at 6:58 PM, Raimundo Santos >> wrote: >> >> > On 19 October 2013 06:00, h bagade wrote: >> > >> >> >> I've changed em and igb drivers too. In this situation, I think that they >> are using netmap and grow-up performance is a sign of the change. I've >> used pkt-gen for performance checking. >> > > you use netmap only when you use a netmap-aware tool, > such as pkt-gen. > > The normal stack still uses the regular drivers. > > cheers > luigi > I am somehow confused how it is possible that netmap-aware tools use netmap datapath and others still use the regular driver! Isn't that the changed NIC driver either send the packets to userspace(in case of netmap) or to the kernel(as usual)? Netmap is really interesting and I am eager to know the architecture and how packets flow using netmap or not.