From owner-freebsd-current@FreeBSD.ORG Wed Mar 26 17:55:07 2014 Return-Path: Delivered-To: freebsd-current@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 D0846C57; Wed, 26 Mar 2014 17:55:07 +0000 (UTC) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A42AC322; Wed, 26 Mar 2014 17:55:07 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 60CC2B918; Wed, 26 Mar 2014 13:55:05 -0400 (EDT) From: John Baldwin To: freebsd-current@freebsd.org Subject: Re: UDP Lite support Date: Wed, 26 Mar 2014 11:22:43 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.4-CBSD-20130906; KDE/4.5.5; amd64; ; ) References: <53138FA6.1060705@delphij.net> <532BEC6B.7060400@FreeBSD.org> In-Reply-To: <532BEC6B.7060400@FreeBSD.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201403261122.43541.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Wed, 26 Mar 2014 13:55:05 -0400 (EDT) Cc: Kevin Lo , Brooks Davis , d@delphij.net, Joe Nosay X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Mar 2014 17:55:08 -0000 On Friday, March 21, 2014 3:38:19 am Kevin Lo wrote: > On 2014/03/03 04:08, Xin Li wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA512 > > > > On 3/2/14, 10:42 AM, Joe Nosay wrote: > >> On Thu, Feb 27, 2014 at 3:22 AM, Joe Nosay > >> wrote: > >> > >>> > >>> > >>> On Wed, Feb 26, 2014 at 11:19 PM, Xin Li > >>> wrote: > >>> > >> On 02/26/14 18:52, Joe Nosay wrote: > >>>>>> On Wed, Feb 26, 2014 at 9:19 PM, Brooks Davis > >>>>>> wrote: > >>>>>> > >>>>>>> On Wed, Feb 26, 2014 at 07:36:29PM -0500, Joe Nosay > >>>>>>> wrote: > >>>>>>>> The last thread on this was in 2006. Has it ever been > >>>>>>>> reconsidered or is the likelihood of too many damaged > >>>>>>>> packets the reason for not supporting? I'm not sure > >>>>>>>> where to put this question. Apologies for the noise. > >>>>>>> You've provided next to no context. What is the > >>>>>>> question? What thread are you referring to? If this is > >>>>>>> the usual UDP then freebsd-net would be vastly more > >>>>>>> appropriate than -current. > >>>>>>> > >>>>>>> -- Brooks > >>>>>>> > >>>>>> Thanks. I will ask kevlo and maybe bring it up on > >>>>>> freebsd-net. It has to do with an implementation of the > >>>>>> JACK server using UDP Lite for transferring data. > >>>>>> > >>>>>> > >> http://freebsd.1045724.n5.nabble.com/UDP-lite-for-FreeBSD-td4010236.html > >> > >> Looks > >> like nobody proposed a patch? > >> > >> I think the concern was that this is not very useful in real-world > >> scenarios due to link layer error detection mechanism but that > >> doesn't raise a red flag to me assuming this is sufficiently self > >> contained feature as it would improve compatibility with other > >> operating systems. > >> > >> Cheers, > >>> https://github.com/torelizer/jack_trauma > >>> > >>> Not my project; but, I want to port it to FreeBSD. First is to > >>> get it to build from source. Use your raspberry pi with FreeBSD > >>> to broadcast your tunes and all. > >>> > >> > >> Thanks for all of the input. The project is being reworked to > >> improve the code. > > Kevin Lo have a patchset but needs someone to do performance testing > > (its impact on non-UDPLite applications), test with vimage, etc: > > > > http://people.freebsd.org/~kevlo/udplite.diff > > http://people.freebsd.org/~kevlo/udp-v.diff > > > > Are you interested in working on these and report back? > > The revised patch is available at: > http://people.freebsd.org/~kevlo/udplite.diff A few suggestions: - I would just drop the INP lock and return EOPNOTSUPP directly rather than using goto's to 'bad_setoptname' and 'bad_getoptname' so the UDP-lite options are self-contained. - I'm not a super big fan of all the udp_common_* macros only because I think it obfuscates things. At the very least, please move these things out of the header and into udp_usrreq.c so they are closer to the implementation. I would even suggest making them inline functions instead of macros. However, I think the patch generally looks ok. -- John Baldwin