From owner-freebsd-net@FreeBSD.ORG Mon Oct 11 10:30:37 2004 Return-Path: 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 1E4F616A4CE for ; Mon, 11 Oct 2004 10:30:37 +0000 (GMT) Received: from cell.sick.ru (cell.sick.ru [217.72.144.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4866543D1F for ; Mon, 11 Oct 2004 10:30:36 +0000 (GMT) (envelope-from glebius@cell.sick.ru) Received: from cell.sick.ru (glebius@localhost [127.0.0.1]) by cell.sick.ru (8.12.11/8.12.8) with ESMTP id i9BAUTLP019022 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 11 Oct 2004 14:30:29 +0400 (MSD) (envelope-from glebius@cell.sick.ru) Received: (from glebius@localhost) by cell.sick.ru (8.12.11/8.12.11/Submit) id i9BAUSL2019021; Mon, 11 Oct 2004 14:30:28 +0400 (MSD) (envelope-from glebius@cell.sick.ru) Date: Mon, 11 Oct 2004 14:30:28 +0400 From: Gleb Smirnoff To: marks@ripe.net, Julian Elischer Message-ID: <20041011103028.GA18981@cell.sick.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline X-NCC-RegId: ru.bestcom User-Agent: Mutt/1.5.6i cc: net@freebsd.org Subject: new ng_device X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 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, 11 Oct 2004 10:30:37 -0000 Here is a major rewrite of ng_device. The main differencies with current one are: - one dev per node - locking - read queue implemented using struct ifqueue, thus reducing number of reads/writes to temporary buffers. A more detailed list of differencies is attached. A test program also attached. P.S. Yet another crazy netgraph idea: ng_iface + ng_device is a substitute for tun(4). I should write a patch for ppp(8) to work with ng_iface. :) -- Totus tuus, Glebius. GLEBIUS-RIPN GLEB-RIPE