From owner-freebsd-net@FreeBSD.ORG Wed Jun 14 18:49:26 2006 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 06CDA16A474 for ; Wed, 14 Jun 2006 18:49:26 +0000 (UTC) (envelope-from jdp@polstra.com) Received: from blake.polstra.com (blake.polstra.com [64.81.189.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A93243D45 for ; Wed, 14 Jun 2006 18:49:25 +0000 (GMT) (envelope-from jdp@polstra.com) Received: from strings.polstra.com (strings.polstra.com [64.81.189.67]) by blake.polstra.com (8.13.1/8.13.1) with ESMTP id k5EInOPA030383 for ; Wed, 14 Jun 2006 11:49:24 -0700 (PDT) (envelope-from jdp@polstra.com) Message-ID: X-Mailer: XFMail 1.5.5 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Date: Wed, 14 Jun 2006 11:49:24 -0700 (PDT) From: John Polstra To: freebsd-net@freebsd.org Subject: IF_HANDOFF vs. IFQ_HANDOFF 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: Wed, 14 Jun 2006 18:49:26 -0000 Can somebody explain why there is both an IF_HANDOFF macro and an IFQ_HANDOFF macro? Except for a slight difference in parameters, they both seem to do roughly the same thing using completely distinct blocks of code. Is IF_HANDOFF supposed to be used only when the target queue is not the interface's if_snd queue? That seems likely, but a few pieces of code (e.g., ng_fec.c) use IF_HANDOFF to put a packet into the if_snd queue. Thanks, John