From owner-freebsd-net@freebsd.org Fri Aug 28 19:58:07 2015 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 329F09C5664 for ; Fri, 28 Aug 2015 19:58:07 +0000 (UTC) (envelope-from bz@freebsd.org) Received: from mx1.sbone.de (mx1.sbone.de [IPv6:2a01:4f8:130:3ffc::401:25]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "mx1.sbone.de", Issuer "SBone.DE" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id DC2BE86A; Fri, 28 Aug 2015 19:58:06 +0000 (UTC) (envelope-from bz@freebsd.org) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:31::2013:587]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id 9F53925D3A93; Fri, 28 Aug 2015 19:58:03 +0000 (UTC) Received: from content-filter.sbone.de (content-filter.sbone.de [IPv6:fde9:577b:c1a9:31::2013:2742]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id EE5F6C770DC; Fri, 28 Aug 2015 19:58:02 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:31::2013:587]) by content-filter.sbone.de (content-filter.sbone.de [fde9:577b:c1a9:31::2013:2742]) (amavisd-new, port 10024) with ESMTP id e-CvXkG6JikL; Fri, 28 Aug 2015 19:58:01 +0000 (UTC) Received: from [IPv6:fde9:577b:c1a9:4410:9d74:620c:1e79:eff] (unknown [IPv6:fde9:577b:c1a9:4410:9d74:620c:1e79:eff]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id A99FCC770DB; Fri, 28 Aug 2015 19:58:00 +0000 (UTC) From: Bjoern A. Zeeb Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: UDP6 locking improvement Date: Fri, 28 Aug 2015 19:57:37 +0000 Message-Id: <2AFBBBDF-D57D-4887-9B5C-1363FFBBD417@freebsd.org> Cc: Adrian Chadd To: FreeBSD Net Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) X-Mailer: Apple Mail (2.2104) 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: Fri, 28 Aug 2015 19:58:07 -0000 Hi, based on some work I have done a few years back I have updated an UDP6 = locking change and it=E2=80=99s at the =E2=80=9Cit compiles=E2=80=9D = stage. I have not re-read it yet. I=E2=80=99ll have to split it up = into a couple of changes for PB as it also fixes: - some UDP-Lite bug(s) - some control mbuf leak - something else I forgot already and then re-post the rest into PB as well. The old description in p4 was like: ! MFp4 bz_ipv6_fast: ! ! Migrate udp6_send v4mapped code to udp6_output saving us a re-lock = and ! further simplifying the af handling code by eliminating AF_INET = checks ! at the tail end of the function. ! ! Rework output path locking similar to UDP4 allowing for better ! parallelism (see r222488). ! ! Cleanup early initializations, comments, =E2=80=A6 ! ! Sponsored by: The FreeBSD Foundation ! Sponsored by: iXsystems The new version is here: https://people.freebsd.org/~bz/20150828-01-udp6-locking.diff Anyone who wants to give it a read-through or bashing it through a pps = framework is welcome! I=E2=80=99ll try to do some of that hopefully = over the weekend myself. Bjoern=