From owner-freebsd-net@FreeBSD.ORG Wed Apr 15 12:38:21 2015 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EE954D34; Wed, 15 Apr 2015 12:38:21 +0000 (UTC) Received: from mail-pa0-x22a.google.com (mail-pa0-x22a.google.com [IPv6:2607:f8b0:400e:c03::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B9950823; Wed, 15 Apr 2015 12:38:21 +0000 (UTC) Received: by pabtp1 with SMTP id tp1so49790903pab.2; Wed, 15 Apr 2015 05:38:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=KAwF2SatP0ag6x52g3MtCpOUjojHuI65SpOEILQyEvg=; b=q8JvHphgVAuEhIbv5ofzLq7AQlHoMkhNDPuqVflgZ/FhT4XdPI3QZYlBavnPoipmkA ZaUqNpTih4B/uNurxs3NSe8ckQaGN8KqWs5j4/3yp4kA2hbJNNeCh5Of3DqXi99NS4vc kb233yKUTx09RiSE2s7lrw6nBPwcnHMZT05QruQ5XC1GtHxRPecJov6Fs91sn3DzDMCQ Mnp+1IF6iapGGTI6/P8oFhTP8u5KG+k4PjnwcTKvtHJ4P4BGRaAtf6VoW4UvOX+w749v W6gIqrIxYztaqKQWAuOvZyP5Ju1omYEMpnDH6uwcu3tTxw6zrq3LldtwMAO+Rp4D90Ed YNOg== MIME-Version: 1.0 X-Received: by 10.66.119.71 with SMTP id ks7mr44873481pab.147.1429101501085; Wed, 15 Apr 2015 05:38:21 -0700 (PDT) Sender: ermal.luci@gmail.com Received: by 10.70.66.135 with HTTP; Wed, 15 Apr 2015 05:38:21 -0700 (PDT) In-Reply-To: <20150415122627.GZ883@glebius.int.ru> References: <20150414135346.GU883@FreeBSD.org> <20150415073823.GA94402@onelab2.iet.unipi.it> <20150415122627.GZ883@glebius.int.ru> Date: Wed, 15 Apr 2015 14:38:21 +0200 X-Google-Sender-Auth: -2r4eXH1JvOi19y-E21SYcttnNo Message-ID: Subject: Re: moving ALTQ out of contrib From: =?UTF-8?Q?Ermal_Lu=C3=A7i?= To: Gleb Smirnoff Cc: Luigi Rizzo , "net@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 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, 15 Apr 2015 12:38:22 -0000 On Wed, Apr 15, 2015 at 2:26 PM, Gleb Smirnoff wrote: > On Wed, Apr 15, 2015 at 09:38:23AM +0200, Luigi Rizzo wrote: > L> > With the new ifnet KPI, that is now being developed in > projects/ifnet, > L> > the ALTQ will need some tweaking. It is discontinued by initial author > L> > for a decade now, and it has already experienced direct commits in > L> > our tree. Thus, I see no good reasons to continue keeping it in > contrib. > L> > In NetBSD they have it in sys/altq. > L> > > L> > I'd prefer to move it to sys/net/altq. > L> > > L> > Any objections or better ideas? > L> > L> my first question is what is the expected residual lifetime of altq ? > > If I get it working properly in projects/ifnet, I see no reasons to > remove it. It is going to be a plugin into network stack and will no > longer require editing drivers. It will run on drivers that aren't > supported by ALTQ now. However in the latter case the ALTQ will sit > on top of interface own queue, and will start to work only when > interface's own queue overflows. But if we later add a new interface > method to modify length of own queue at runtime, this issue will > go away. > I would be interested on your approach on this as well. Also i can remind you that dragonflybsd has made some work on it to support multiqueue. IIRC they even mapped the queues directly the hardware queues so it might be interesting to look at their approach if it applies. > > L> If it is destined to be removed soon (and probably that is not > L> unlikely given its unmaintained state, the absence of multiqueue > L> support etc.) maybe we could live for the next > L> couple of years just leaving it where it is now and avoid the > L> repo churn. > L> > L> If we really plan to relocate the code, I guess the options are > L> > L> sys/altq as in netbsd > L> > L> sys/netaltq this would be an alternative location to > L> the above one, justified by the fact that > L> we have already a bunch of net* subdirs > L> > L> sys/net/altq as you propose, i guess to stay close to > L> the rest of the ifnet code (and perhaps > L> as a first step in cleaning up sys/net > L> by putting stuff in various subdirs) > L> > L> In any case my preference would really be to leave it where it is. > > I don't like to keep in contrib a code maintained and edited by the > project. Especially I don't like tautological path of contrib/altq/altq. > I don't like extra glue in Makefiles, especially modyfing CFLAGS for the > whole kernel build. > > If it is a regular piece of kernel code, let it be like the rest of > kernel code. > > -- > 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" > -- Ermal