From owner-freebsd-net@FreeBSD.ORG Sat Oct 19 16:33:13 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 3D4345AF for ; Sat, 19 Oct 2013 16:33:13 +0000 (UTC) (envelope-from s.khanchi@gmail.com) Received: from mail-wg0-x235.google.com (mail-wg0-x235.google.com [IPv6:2a00:1450:400c:c00::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id CD60E2334 for ; Sat, 19 Oct 2013 16:33:12 +0000 (UTC) Received: by mail-wg0-f53.google.com with SMTP id y10so5065412wgg.32 for ; Sat, 19 Oct 2013 09:33:11 -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=0hKpaKsKv2vrZNDdGvifFKCoheOJ/mpW7WRqNMOtLCA=; b=pxfQu7QqEDyKReC/x//69DinBuLiQmqiNb9uIJy8woBWxeIa1NGJclZF9w0tE2GgHs INZdAZW8rL0TsRw9qG94sCOTXXXshLq7CaGtuwtZsA4YlfIygCEFKQd2SI5NyU++TbZP bl9ihUPgsiW9L7JNJ744QZfC2AVaYtRx2XGW+WyfXRDnszfvV8HRjUCrqNpwBowp+YUH VszX//npMQ9uJzmqUQukqM1Kd0tcfg7VCmTBWrN82ciBnieC6RGIJ7aXJWrZaJAZBEV0 FDiBaay5xNzV8Vl9L9GZzvTtolqTXePh1MFD3P+S8gKSwLiLrjhowrzG2CuTjiUpLRan v9+A== X-Received: by 10.180.101.197 with SMTP id fi5mr3620348wib.46.1382200391262; Sat, 19 Oct 2013 09:33:11 -0700 (PDT) MIME-Version: 1.0 Sender: s.khanchi@gmail.com Received: by 10.194.119.73 with HTTP; Sat, 19 Oct 2013 09:32:51 -0700 (PDT) In-Reply-To: References: From: h bagade Date: Sat, 19 Oct 2013 20:02:51 +0330 X-Google-Sender-Auth: 7bFytptYdtHlr6JCI9HF0HXBovA Message-ID: Subject: Re: Netmap and in-kernel IPFW interactions! To: Raimundo Santos 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: Sat, 19 Oct 2013 16:33:13 -0000 On Sat, Oct 19, 2013 at 6:58 PM, Raimundo Santos wrote: > On 19 October 2013 06:00, h bagade wrote: > > > Hi Everybody, > > > > > Hello! > > > > I have compiled my kernel with support of netmap without any changes on > > ipfw. Afterwards, I defined ipfw rules and surprisingly they worked!! > > > > > Being netmap-ed your kernel doesn't mean you are really using it. If your > data continue to take normal paths, ie, do not touch netmap, it will be > there to the in kernel classifier take care. > > > > Before my experiment on ipfw, I'd thought because packets are reached to > > userspace directly by means of netmap, so in-kernel ipfw won't be able to > > check them in between?! > > > > > You must open the netmap device and interact with it, no more, no less. As > the OPERATION section of netmap(4) states: > > netmap clients must first open the open("/dev/netmap") > > If your NIC driver doesn't support netmap, you end up with the normal path > to frames and packets. > > > > Could anyone clarify me how in-kernel tools are able to work even after > > netmap is used? > > > > So, to clarify you, you must clarify us: how are you *using* it, actually? > > Best Regards, > Raimundo Santos > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > 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.