From owner-freebsd-net@FreeBSD.ORG Fri Aug 26 21:09:25 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B793E16A41F for ; Fri, 26 Aug 2005 21:09:25 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [204.156.12.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7664643D45 for ; Fri, 26 Aug 2005 21:09:25 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by cyrus.watson.org (Postfix) with ESMTP id 7AC2346B7E; Fri, 26 Aug 2005 17:09:21 -0400 (EDT) Date: Fri, 26 Aug 2005 22:09:21 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: ming fu In-Reply-To: <430E25A3.8080503@borderware.com> Message-ID: <20050826220749.H33851@fledge.watson.org> References: <430E25A3.8080503@borderware.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-net@freebsd.org Subject: Re: FreeBSD 5 ip_gre and netisr_enable=1 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Aug 2005 21:09:25 -0000 On Thu, 25 Aug 2005, ming fu wrote: > when a GRE packet gets into the ip_gre2(), its gre header is stripped > and sent to netisr_dispatch() for ip_input() processing again. In case, > the net.isr.enable is 1, the packet will be delivered to ip_input > directly instead of put in the queue. Probably, we should use netisr_queue() here instead of netisr_dispatch() to force indirect dispatch in this case? The _dispatch() variant should only be used when the calling context is willing to perform a full netisr dispatch. Robert N M Watson