For reference, my comments. ---------- Forwarded message --------- From: Lev Stipakov <l...@openvpn.net> Date: Thu, Mar 23, 2023 at 9:39 AM Subject: Re: [Openvpn-devel] [PATCH] Print DCO client stats on SIGUSR2 To: Selva Nair <selva.n...@gmail.com>
I see the point - we now have driver-specific code in functions {multi}_print_status which are supposed to be driver-agnostic and it doesn't scale well when/if we add another driver. Also in general it feels wrong that print_ functions do print-unrelated things, like calls to the network driver. I think in the long run we might want to get rid of dco_read/write_bytes and just store dco stats into link_read/write_bytes. I remember that in Linux (and likely in FreeBSD?) we do initial handshake in userspace and then switch to dco - probably that was the rationale of keeping link and dco stats separately. Not sure if stats granularity justifies complexity of adding driver-specific counters. Your reply wasn't sent to -devel, not sure if it was intentional. -Lev _______________________________________________ Openvpn-devel mailing list Openvpn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-devel