Re: [Openvpn-devel] [ovpn-dco] How to benchmark kernel crypto performance?

2022-04-05 Thread Jan Just Keijser
Hi Tony, On 05/04/22 15:04, Tony He wrote: Hi JJK, Yeah, I know this way, but there is still context switching in the kernel space and user space. I have been looking for a way to benchmark in the kernel space. I expect there is a kernel module like below: insmod benchmark.ko AES-256-GCM (Afte

Re: [Openvpn-devel] [PATCH 3/7] networking: implement net_iface_new and net_iface_del APIs

2022-04-05 Thread Gert Doering
Hi, On Sat, Apr 02, 2022 at 09:08:58AM +0200, Antonio Quartulli wrote: > +int > +net_iface_del(openvpn_net_ctx_t *ctx, const char *iface) > +{ > +struct argv argv = argv_new(); > + > +argv_printf(&argv, "%s link del %s", iproute_path, iface); > +openvpn_execve_check(&argv, ctx->es, S_F

Re: [Openvpn-devel] [PATCH 3/7] networking: implement net_iface_new and net_iface_del APIs

2022-04-05 Thread Gert Doering
Hi, On Sat, Apr 02, 2022 at 09:08:58AM +0200, Antonio Quartulli wrote: > +++ b/src/openvpn/networking_iproute2.c > @@ -38,6 +38,12 @@ > #include > #include > > +static const char *iface_type_str[] = { > +[IFACE_DUMMY] = "dummy", > +[IFACE_TUN] = "tun", > +[IFACE_OVPN_DCO] = "ovpn

Re: [Openvpn-devel] [ovpn-dco] How to benchmark kernel crypto performance?

2022-04-05 Thread Tony He
Hi JJK, Yeah, I know this way, but there is still context switching in the kernel space and user space. I have been looking for a way to benchmark in the kernel space. I expect there is a kernel module like below: insmod benchmark.ko AES-256-GCM (After it's done, this module will exit automatica

Re: [Openvpn-devel] Community meetings in April 2022

2022-04-05 Thread Samuli Seppänen
In April, not in March as stated before. So - Wed 6th April 2022 at 10:30 CEST - Wed 13th April 2022 at 10:30 CEST - Wed 20th April 2022 at 10:30 CEST - Wed 27th April 2022 at 10:30 CEST Samuli Il 5.4.2022 12.19, Samuli Seppänen ha scritto: Hi, Next community meetings have been scheduled to

Re: [Openvpn-devel] [PATCH 4/7] ovpn-dco: introduce linux data-channel offload support

2022-04-05 Thread Antonio Quartulli
Hi, On 04/04/2022 18:04, Frank Lichtenheld wrote: Documentation review: Thanks for the feedback, will integrate it appropriately. Regards, -- Antonio Quartulli ___ Openvpn-devel mailing list Openvpn-devel@lists.sourceforge.net https://lists.sour

Re: [Openvpn-devel] [ovpn-dco] How to benchmark kernel crypto performance?

2022-04-05 Thread Jan Just Keijser
hi Tony, On 02/04/22 11:40, Tony He wrote: Hi Antonio, I am porting ovpn-dco to embedded ARMv8 device with hardware crypto engine. However the performance is not very good. It's about 130-140Mbps. I expect more. The SDK already provides kernel CryptoAPI(CFI) interface to access the crypto engi

Re: [Openvpn-devel] [PATCH 6/7] ovpn-dco-win: introduce windows data-channel offload support

2022-04-05 Thread Antonio Quartulli
Hi, On 05/04/2022 12:14, Frank Lichtenheld wrote: Antonio Quartulli hat am 02.04.2022 09:09 geschrieben: [...] diff --git a/README.dco.md b/README.dco.md index 27c166b9..d3599727 100644 --- a/README.dco.md +++ b/README.dco.md @@ -109,6 +116,8 @@ Limitations by design - topology subnet is

Re: [Openvpn-devel] [PATCH 5/7] tun: extract close_tun_handle into its own fucntion and print correct type

2022-04-05 Thread Antonio Quartulli
Hi, On 05/04/2022 12:00, Frank Lichtenheld wrote: Acked-by: Frank Lichtenheld Seems trivial. Antonio Quartulli hat am 02.04.2022 09:09 geschrieben: [...] +if (tt->hand != NULL) +{ +dmsg(D_WIN32_IO_LOW, "Attempting CloseHandle on %s adapter", adaptertype); +if (!Cl

Re: [Openvpn-devel] [PATCH 6/7] ovpn-dco-win: introduce windows data-channel offload support

2022-04-05 Thread Frank Lichtenheld
> Antonio Quartulli hat am 02.04.2022 09:09 geschrieben: [...] > diff --git a/README.dco.md b/README.dco.md > index 27c166b9..d3599727 100644 > --- a/README.dco.md > +++ b/README.dco.md > @@ -109,6 +116,8 @@ Limitations by design > - topology subnet is the only supported `--topology` for serve

Re: [Openvpn-devel] [PATCH 5/7] tun: extract close_tun_handle into its own fucntion and print correct type

2022-04-05 Thread Frank Lichtenheld
Acked-by: Frank Lichtenheld Seems trivial. > Antonio Quartulli hat am 02.04.2022 09:09 geschrieben: [...] > +if (tt->hand != NULL) > +{ > +dmsg(D_WIN32_IO_LOW, "Attempting CloseHandle on %s adapter", > adaptertype); > +if (!CloseHandle(tt->hand)) > +{ > +

[Openvpn-devel] Community meetings in April 2022

2022-04-05 Thread Samuli Seppänen
Hi, Next community meetings have been scheduled to - Wed 6th March 2022 at 10:30 CEST - Wed 13th March 2022 at 10:30 CEST - Wed 20th March 2022 at 10:30 CEST - Wed 27th March 2022 at 10:30 CEST The place is #openvpn-meeting IRC channel at libera.chat Meeting agendas and summaries are in here:

Re: [Openvpn-devel] OpenVPN encryption architecture

2022-04-05 Thread Arne Schwabe
Am 05.04.22 um 05:10 schrieb Leroy Tennison: Thanks for your reply, I'm actually looking for something pretty high-level like "the server (or client) sends their (whatever key) and the client (or server) (creates a session key from it or whatever happens) and that is used for encryption."  I am