From owner-freebsd-net@FreeBSD.ORG Mon Oct 21 12:07:34 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 2F6A67D7 for ; Mon, 21 Oct 2013 12:07:34 +0000 (UTC) (envelope-from freebsd-net@m.gmane.org) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D9C372378 for ; Mon, 21 Oct 2013 12:07:33 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VYEGQ-0006T0-CI for freebsd-net@freebsd.org; Mon, 21 Oct 2013 14:07:14 +0200 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 21 Oct 2013 14:07:14 +0200 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 21 Oct 2013 14:07:14 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-net@freebsd.org From: Ivan Voras Subject: Re: Netmap and in-kernel IPFW interactions! Date: Mon, 21 Oct 2013 14:06:52 +0200 Lines: 41 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="hMfln7fn4gObt5OXNuSiISq8laik0HXDF" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.0 In-Reply-To: X-Enigmail-Version: 1.5.2 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: Mon, 21 Oct 2013 12:07:34 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --hMfln7fn4gObt5OXNuSiISq8laik0HXDF Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 20/10/2013 09:38, h bagade wrote: > I am somehow confused how it is possible that netmap-aware tools use ne= tmap > datapath and others still use the regular driver! Isn't that the change= d > NIC driver either send the packets to userspace(in case of netmap) or t= o > 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.). --hMfln7fn4gObt5OXNuSiISq8laik0HXDF Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iKYEARECAGYFAlJlGN1fFIAAAAAALgAoaXNzdWVyLWZwckBub3RhdGlvbnMub3Bl bnBncC5maWZ0aGhvcnNlbWFuLm5ldDYxNDE4MkQ3ODMwNDAwMDJFRUIzNDhFNUZE MDhENTA2M0RGRjFEMkMACgkQ/QjVBj3/HSwmlgCgnGyT9X4rBJo6IWV2nvT2m0f/ wPEAn3bsqzsAXIdHu+/RGQmbb+7hv4G5 =RvrB -----END PGP SIGNATURE----- --hMfln7fn4gObt5OXNuSiISq8laik0HXDF--