On 06/11/2024 01:31, Sergey Ryazanov wrote:
As explained above, in case of P2MP mode, OpenVPN will use the main system
routing table to decide which packet goes to which peer. This implies
that no routing table was re-implemented in the `ovpn` kernel module.
This kernel module can be enabled by selecting the CONFIG_OVPN entry
in the networking drivers section.
Most of the above text has no relation to the patch itself. Should it be moved to the cover letter?
I think this needs to be in the git history.
We are introducing a new kernel module and this is the presentation, so I expect this to live in git.
This was the original text when ovpn was a 1/1 patch.
I can better clarify what this patch is doing and what comes in following patches, if that can help.
+/* Driver info */
+#define DRV_DESCRIPTION "OpenVPN data channel offload (ovpn)"
+#define DRV_COPYRIGHT "(C) 2020-2024 OpenVPN, Inc."
nit: these strings are used only once for MODULE_{DESCRIPTION,AUTHOR} below. Can we directly use strings to avoid levels of indirection?
I liked to have these defines at the top as if they were some form of greeting :) But I can move them down and drop the constants.
--- a/include/uapi/linux/udp.h
+++ b/include/uapi/linux/udp.h
@@ -43,5 +43,6 @@ struct udphdr {
#define UDP_ENCAP_GTP1U 5 /* 3GPP TS 29.060 */
#define UDP_ENCAP_RXRPC 6
#define TCP_ENCAP_ESPINTCP 7 /* Yikes, this is really xfrm encap types. */
+#define UDP_ENCAP_OVPNINUDP 8 /* OpenVPN traffic */
nit: this specific change does not belong to this specific patch.
Right. Like for the Kconfig, I wanted to keep "general" changes and things that touch the rest of the kernel in this patch.