From owner-freebsd-net@FreeBSD.ORG Tue Oct 22 07:00:00 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 4D98AE6D; Tue, 22 Oct 2013 07:00:00 +0000 (UTC) (envelope-from s.khanchi@gmail.com) Received: from mail-wi0-x22b.google.com (mail-wi0-x22b.google.com [IPv6:2a00:1450:400c:c05::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B763F2305; Tue, 22 Oct 2013 06:59:59 +0000 (UTC) Received: by mail-wi0-f171.google.com with SMTP id h11so5081725wiv.16 for ; Mon, 21 Oct 2013 23:59:58 -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=SbfY8cRdHhxhAy7X/TZVBbwFd+/YcjmIruxWv/hz7PY=; b=m284cBqGZvFO4XyMeWzJ3ZFqiyLeQ33fSwfA0byuu86N8DMyyt7FQOoGLj0FW/ZYab jVosNPQe2qcrEi2PmINi7Dwzuh5Q5U82uImx4YSLbOUmB7kcDSc89vilyAHuPa3u5OWo g7nW0NOLfgjHmHXV+e5gmS0/EOMF5M92t/5+M+7ejXHS2AtbETYJEDye+iJ3yKA2gXT5 3X2vlqKmF2ESrJqh/FGZEcU2dtju0a/2lMFrbNYjVBW8Iqz/84zR1gEv3IG72Uo1YCJX A1q7QcvGC6Ws66XM2tFH15/8oMHLjkO4CUAkK2Y9tOC35OOHk0SZ2m6SZYAQsEVqEVX3 zOAw== X-Received: by 10.180.160.212 with SMTP id xm20mr12889789wib.23.1382425198050; Mon, 21 Oct 2013 23:59:58 -0700 (PDT) MIME-Version: 1.0 Sender: s.khanchi@gmail.com Received: by 10.194.119.73 with HTTP; Mon, 21 Oct 2013 23:59:36 -0700 (PDT) In-Reply-To: References: From: h bagade Date: Tue, 22 Oct 2013 10:29:36 +0330 X-Google-Sender-Auth: CPmzrR0vLIjSyv0qryOouwe-1lk Message-ID: Subject: Re: Netmap and in-kernel IPFW interactions! To: Ivan Voras 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: Tue, 22 Oct 2013 07:00:00 -0000 On Mon, Oct 21, 2013 at 3:36 PM, Ivan Voras wrote: > On 20/10/2013 09:38, h bagade wrote: > > > 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)? > > I think you are misunderstanding what netmap does. It is not a type of a > "driver", it has almost nothing to do with the way regular network > packets are processed in the kernel. It is an API which allow specially > created userspace program to send and receive raw packeges to/from the > network card, bypassing the normal TCP/IP processing. It does not do > anything other that that (e.g. it doesn't magically speed up network > traffic with regular programs, etc.). > > Thank you very much Ivan. Your explanation clarifies me and I find that I had a wrong expectation from netmap.