From owner-freebsd-net@FreeBSD.ORG Wed Nov 20 04:02:03 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 ESMTPS id 65571896; Wed, 20 Nov 2013 04:02:03 +0000 (UTC) Received: from mail-wg0-x230.google.com (mail-wg0-x230.google.com [IPv6:2a00:1450:400c:c00::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5173E29C6; Wed, 20 Nov 2013 04:02:02 +0000 (UTC) Received: by mail-wg0-f48.google.com with SMTP id n12so8557702wgh.15 for ; Tue, 19 Nov 2013 20:02:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=9Y6YbBVCGEi5+ljNJ7RZWEywQsfFRZ2umjmo1oSQ2y4=; b=bj3/1Y04k3XZehVjs89Ou97Pt5kOfeBqBtz5dLNmUItPOtPEUfl1FXGxkPV9F+KJXs mr/sdZ5YwNJyNt29hBWW5rA83I56NmhYo5RBH5Ppr8s5s+jESz6JgKGmzl9UdjlLMwg5 09UXs/uVgpFJ7DZ/F+cqVXInvPwCRzNSlkPOV7wz63wqk+fMGaTXGVaNrdB9ka1MFbUS I7177MO9nce0+ZQBa/u9mDyrN/n8u0G2g4YtMWv8F2krRUQgm7xDuwMSzsmrPPoirUwG ExGek/p6LdZLw6zgZzG02YT6H8mbLo8fE07Av04HXyZNGDTc5gdUK8bf3KGnviMu/4GN IrqQ== MIME-Version: 1.0 X-Received: by 10.180.198.109 with SMTP id jb13mr13170115wic.55.1384920120718; Tue, 19 Nov 2013 20:02:00 -0800 (PST) Received: by 10.194.38.167 with HTTP; Tue, 19 Nov 2013 20:02:00 -0800 (PST) In-Reply-To: <20131119114531.GF7577@glebius.int.ru> References: <50F868FF.5060506@networx.ch> <20131115165210.23f82578@stevek-ubuntu> <20131116084919.GF7577@glebius.int.ru> <1DAF9090-08DA-404B-B86B-57E5D124D70D@xcllnt.net> <20131118164149.GV7577@glebius.int.ru> <20131118143508.0253e663@stevek-ubuntu> <20131119114531.GF7577@glebius.int.ru> Date: Wed, 20 Nov 2013 09:32:00 +0530 Message-ID: Subject: Re: [JNPR] Network stack as a module (RFC) From: Dheeraj Kandula To: Gleb Smirnoff Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.16 Cc: luigi@freebsd.org, Marcel Moolenaar , Steve Kiernan , freebsd-net@freebsd.org, zec@freebsd.org, Marcel Moolenaar X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.16 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, 20 Nov 2013 04:02:03 -0000 Is there a link explaining about what changes have gone into this huge Diff. That would help people like me to figure out what is being addressed in the diff. I get the point that the whole network stack will be a loadable module now. Isn't it? On Tue, Nov 19, 2013 at 5:15 PM, Gleb Smirnoff wrote: > Steve, > > On Mon, Nov 18, 2013 at 02:35:08PM -0500, Steve Kiernan wrote: > S> > Have you measured the performance impact on the loadable stack? I > S> > suppose many functions, that are now called directly, with loadable > S> > stack will be called via functon pointers. > S> > S> No, only a small number of functions were needed to be methods in a > S> netstack kobj in the current implementation that we have. And some of > S> those may need to change, as they revolve around NFS exports. > S> > S> Currently, we have four (4) methods that are needed: > S> socreate > S> vfs_export > S> vfs_setpublicfs > S> vfs_stdcheckexp > S> > S> When one is not dealing with NFS exports, only the socreate method is > S> of interest. It is called just before mac_socket_create() would be > S> called in socreate(). > > Sounds okay. Thank you. > > S> See http://people.freebsd.org/~marcel/Juniper/netstack-v2.diff, which > S> is the full patch set that had been previously sent out. Some things > S> have changed a bit since then, but if you look for curnetstack usage > S> in the patch, you should be able to see the places where netsack > S> methods are called. > > The patch is quite huge to understand it as a whole. :) > > -- > Totus tuus, Glebius. > _______________________________________________ > 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" >