From owner-freebsd-ipfw@FreeBSD.ORG Fri Apr 9 18:04:09 2010 Return-Path: Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 26AC11065676 for ; Fri, 9 Apr 2010 18:04:09 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: from onelab2.iet.unipi.it (onelab2.iet.unipi.it [131.114.59.238]) by mx1.freebsd.org (Postfix) with ESMTP id E21D38FC0C for ; Fri, 9 Apr 2010 18:04:08 +0000 (UTC) Received: by onelab2.iet.unipi.it (Postfix, from userid 275) id 58C1E73098; Fri, 9 Apr 2010 20:14:28 +0200 (CEST) Date: Fri, 9 Apr 2010 20:14:28 +0200 From: Luigi Rizzo To: Anders Hagman Message-ID: <20100409181428.GA55834@onelab2.iet.unipi.it> References: <4BBCE3EE.506@halleforshunden.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4BBCE3EE.506@halleforshunden.org> User-Agent: Mutt/1.4.2.3i Cc: freebsd-ipfw@freebsd.org Subject: Re: dummynet and vnet kernel panic X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Apr 2010 18:04:09 -0000 On Wed, Apr 07, 2010 at 09:58:38PM +0200, Anders Hagman wrote: > Hi > > When using dummynet inside a vnet node with a simple pipe the kernel > panic on the first packet. > > I use 8.0-STABLE cvsuped at 7 Apr 15:28 > The ipfw code with dummynet is largely changed and the patch in the url > below will not work. > http://www.freebsd.org/cgi/query-pr.cgi?pr=143621 > > Is there a fix in the near future? URL: http://svn.freebsd.org/changeset/base/206428 Log: This commit enables partial operation of dummynet with kernels compiled with "options VIMAGE". As it is now, there is still a single instance of the pipes, and it is only usable from vnet0 (the main instance). Trying to use a pipe from a different vimage does not crash the system as it did before, but the traffic coming out from the pipe goes to the wrong place, and i still need to figure out where. Support for per-vimage pipes is almost there (just a matter of uncommenting the VNET_* definitions for dn_cfg, plus putting into the structure the remaining static variables), however i need first to figure out how init/uninit work, and also to understand where packets are ending up on exit from a pipe. In summary: vimage support for dummynet is not complete yet, but we are getting there. Modified: head/sys/netinet/ipfw/ip_dn_io.c head/sys/netinet/ipfw/ip_dn_private.h head/sys/netinet/ipfw/ip_dummynet.c > BR > /Anders H > _______________________________________________ > freebsd-ipfw@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ipfw > To unsubscribe, send any mail to "freebsd-ipfw-unsubscribe@freebsd.org"