Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Nov 2020 10:27:58 +0100
From:      Emmanuel Vadot <manu@bidouilliste.com>
To:        "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
Cc:        "Matt Macy" <mmacy@FreeBSD.org>, src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r368163 - in head: sbin/ifconfig sys/dev/if_wg sys/dev/if_wg/include sys/dev/if_wg/include/crypto sys/dev/if_wg/include/sys sys/dev/if_wg/include/zinc sys/dev/if_wg/module sys/dev/if_wg...
Message-ID:  <20201130102758.c600f147a801933bb66529c7@bidouilliste.com>
In-Reply-To: <B904147D-9A9F-4CD2-A602-B3F146365D58@lists.zabbadoz.net>
References:  <202011291938.0ATJc4Z3081193@repo.freebsd.org> <B904147D-9A9F-4CD2-A602-B3F146365D58@lists.zabbadoz.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 30 Nov 2020 01:13:12 +0000
"Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net> wrote:

> On 29 Nov 2020, at 19:38, Matt Macy wrote:
> 
> > Author: mmacy
> > Date: Sun Nov 29 19:38:03 2020
> > New Revision: 368163
> > URL: https://svnweb.freebsd.org/changeset/base/368163
> >
> > Log:
> >   Import kernel WireGuard support
> >
> >   Data path largely shared with the OpenBSD implementation by
> >   Matt Dunwoodie <ncon@nconroy.net>
> >
> >   Reviewed by:	grehan@freebsd.org
> >   MFC after:	1 month
> >   Sponsored by:	Rubicon LLC, (Netgate)
> >   Differential Revision:	https://reviews.freebsd.org/D26137
> >
> > Added:
> >   head/sbin/ifconfig/ifwg.c   (contents, props changed)
> >   head/sys/dev/if_wg/
> >   head/sys/dev/if_wg/include/
> >   head/sys/dev/if_wg/include/crypto/blake2s.h   (contents, props 
> > changed)
> >   head/sys/dev/if_wg/include/crypto/curve25519.h   (contents, props 
> > changed)
> >   head/sys/dev/if_wg/include/crypto/zinc.h   (contents, props changed)
> >   head/sys/dev/if_wg/include/sys/
> >   head/sys/dev/if_wg/include/sys/if_wg_session.h   (contents, props 
> > changed)
> >   head/sys/dev/if_wg/include/sys/if_wg_session_vars.h   (contents, 
> > props changed)
> >   head/sys/dev/if_wg/include/sys/simd-x86_64.h   (contents, props 
> > changed)
> >   head/sys/dev/if_wg/include/sys/support.h   (contents, props changed)
> >   head/sys/dev/if_wg/include/sys/wg_cookie.h   (contents, props 
> > changed)
> >   head/sys/dev/if_wg/include/sys/wg_module.h   (contents, props 
> > changed)
> >   head/sys/dev/if_wg/include/sys/wg_noise.h   (contents, props 
> > changed)
> >   head/sys/dev/if_wg/include/zinc/blake2s.h   (contents, props 
> > changed)
> >   head/sys/dev/if_wg/include/zinc/chacha20.h   (contents, props 
> > changed)
> >   head/sys/dev/if_wg/include/zinc/chacha20poly1305.h   (contents, 
> > props changed)
> >   head/sys/dev/if_wg/include/zinc/curve25519.h   (contents, props 
> > changed)
> >   head/sys/dev/if_wg/include/zinc/poly1305.h   (contents, props 
> > changed)
> >   head/sys/dev/if_wg/module/
> >   head/sys/dev/if_wg/module/blake2s.c   (contents, props changed)
> >   head/sys/dev/if_wg/module/blake2s.h   (contents, props changed)
> >   head/sys/dev/if_wg/module/chacha20-x86_64.S   (contents, props 
> > changed)
> >   head/sys/dev/if_wg/module/crypto/zinc/chacha20/chacha20-arm-glue.c   
> > (contents, props changed)
> >   head/sys/dev/if_wg/module/crypto/zinc/chacha20/chacha20-arm.pl   
> > (contents, props changed)
> >   head/sys/dev/if_wg/module/crypto/zinc/chacha20/chacha20-arm64.pl   
> > (contents, props changed)
> >   head/sys/dev/if_wg/module/crypto/zinc/chacha20/chacha20-mips-glue.c  
> >  (contents, props changed)
> >   head/sys/dev/if_wg/module/crypto/zinc/chacha20/chacha20-mips.S   
> > (contents, props changed)
> >   head/sys/dev/if_wg/module/crypto/zinc/chacha20/chacha20-unrolled-arm.S 
> >   (contents, props changed)
> >   head/sys/dev/if_wg/module/crypto/zinc/chacha20/chacha20-x86_64-glue.c 
> >   (contents, props changed)
> >   head/sys/dev/if_wg/module/crypto/zinc/chacha20/chacha20-x86_64.pl   
> > (contents, props changed)
> >   head/sys/dev/if_wg/module/crypto/zinc/chacha20/chacha20.c   
> > (contents, props changed)
> >   head/sys/dev/if_wg/module/crypto/zinc/chacha20poly1305.c   
> > (contents, props changed)
> >   head/sys/dev/if_wg/module/crypto/zinc/poly1305/poly1305-arm-glue.c   
> > (contents, props changed)
> >   head/sys/dev/if_wg/module/crypto/zinc/poly1305/poly1305-arm.pl   
> > (contents, props changed)
> >   head/sys/dev/if_wg/module/crypto/zinc/poly1305/poly1305-arm64.pl   
> > (contents, props changed)
> >   head/sys/dev/if_wg/module/crypto/zinc/poly1305/poly1305-donna32.c   
> > (contents, props changed)
> >   head/sys/dev/if_wg/module/crypto/zinc/poly1305/poly1305-donna64.c   
> > (contents, props changed)
> >   head/sys/dev/if_wg/module/crypto/zinc/poly1305/poly1305-mips-glue.c  
> >  (contents, props changed)
> >   head/sys/dev/if_wg/module/crypto/zinc/poly1305/poly1305-mips.S   
> > (contents, props changed)
> >   head/sys/dev/if_wg/module/crypto/zinc/poly1305/poly1305-mips64.pl   
> > (contents, props changed)
> >   head/sys/dev/if_wg/module/crypto/zinc/poly1305/poly1305-x86_64-glue.c 
> >   (contents, props changed)
> >   head/sys/dev/if_wg/module/crypto/zinc/poly1305/poly1305-x86_64.pl   
> > (contents, props changed)
> >   head/sys/dev/if_wg/module/crypto/zinc/poly1305/poly1305.c   
> > (contents, props changed)
> >   head/sys/dev/if_wg/module/crypto/zinc/selftest/blake2s.c   
> > (contents, props changed)
> >   head/sys/dev/if_wg/module/crypto/zinc/selftest/chacha20.c   
> > (contents, props changed)
> >   head/sys/dev/if_wg/module/crypto/zinc/selftest/chacha20poly1305.c   
> > (contents, props changed)
> >   head/sys/dev/if_wg/module/crypto/zinc/selftest/curve25519.c   
> > (contents, props changed)
> >   head/sys/dev/if_wg/module/crypto/zinc/selftest/poly1305.c   
> > (contents, props changed)
> >   head/sys/dev/if_wg/module/crypto/zinc/selftest/run.h   (contents, 
> > props changed)
> >   head/sys/dev/if_wg/module/curve25519.c   (contents, props changed)
> >   head/sys/dev/if_wg/module/if_wg_session.c   (contents, props 
> > changed)
> >   head/sys/dev/if_wg/module/module.c   (contents, props changed)
> >   head/sys/dev/if_wg/module/poly1305-x86_64.S   (contents, props 
> > changed)
> >   head/sys/dev/if_wg/module/wg_cookie.c   (contents, props changed)
> >   head/sys/dev/if_wg/module/wg_noise.c   (contents, props changed)
> >   head/sys/modules/if_wg/
> >   head/sys/modules/if_wg/Makefile   (contents, props changed)
> > Directory Properties:
> >   head/sys/dev/if_wg/include/crypto/   (props changed)
> >   head/sys/dev/if_wg/include/zinc/   (props changed)
> >   head/sys/dev/if_wg/module/crypto/   (props changed)
> >   head/sys/dev/if_wg/module/crypto/zinc/   (props changed)
> >   head/sys/dev/if_wg/module/crypto/zinc/chacha20/   (props changed)
> >   head/sys/dev/if_wg/module/crypto/zinc/poly1305/   (props changed)
> >   head/sys/dev/if_wg/module/crypto/zinc/selftest/   (props changed)
> 
> 
> Looking at sys/dev/if_wg/include/sys/support.h I wonder why zinc was not 
> done as linuxkpi code?  Could it be?
> 
> 
> /bz

 Adding a dependancy on linuxkpi for just a few compat funcs looks
overkill, also having it done that way means that mallocs are typed
with M_WG instead of the global M_LINUXKPI so it's better to track
leaks, if any.

-- 
Emmanuel Vadot <manu@bidouilliste.com>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20201130102758.c600f147a801933bb66529c7>