From: "cron2 (Code Review)"
Date: Sun, 19 Oct 2025 17:12:13 +0000
In-Reply-To:
References:
Reply-To: gert@...1296..., arne-openvpn@...1227...,
openvpn-devel@lists.sourceforge.net, ralf@...2726..., frank@...2641...
Message-ID: <7d8a88edac6f1096fb1edd0eb1dba507947b002b-EmailReplacePatchSet-HTML@...2715...>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
Content-Type: multipart/alternative; boundary="7TNKE7P4f68="; charset=UTF-8
Subject: [Openvpn-devel] [S] Change in openvpn[master]: dco: remove
dco_read/write_bytes from dco_context_t
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
To: ralf_lici , plaisthos , flichtenheld
Cc: openvpn-devel
--7TNKE7P4f68=
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
cron2 has uploaded a new patch set (#3) to the change originally created by=
ralf_lici. ( http://gerrit.openvpn.net/c/openvpn/+/1276?usp=3Demail )
The following approvals got outdated and were removed:
Code-Review+2 by cron2
Change subject: dco: remove dco_read/write_bytes from dco_context_t
......................................................................
dco: remove dco_read/write_bytes from dco_context_t
Remove dco_read_bytes and dco_write_bytes from all dco_context_t
structures, as peer statistics are now stored directly in the
corresponding c2 fields across all DCO interfaces.
Change-Id: I61f9d9bb26112eac0c0a47cb9d17982b075887ff
Signed-off-by: Ralf Lici
Acked-by: Gert Doering
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1276
Message-Id: <20251017205837.8553-1-gert@...1296...>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg33=
431.html
Signed-off-by: Gert Doering
---
M src/openvpn/dco_freebsd.h
M src/openvpn/dco_linux.h
M src/openvpn/dco_win.h
M src/openvpn/multi.c
4 files changed, 0 insertions(+), 11 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/76/1276/3
diff --git a/src/openvpn/dco_freebsd.h b/src/openvpn/dco_freebsd.h
index 2f486f0..0797b82 100644
--- a/src/openvpn/dco_freebsd.h
+++ b/src/openvpn/dco_freebsd.h
@@ -59,8 +59,6 @@
int dco_message_peer_id;
int dco_del_peer_reason;
struct sockaddr_storage dco_float_peer_ss;
- uint64_t dco_read_bytes;
- uint64_t dco_write_bytes;
struct context *c;
} dco_context_t;
diff --git a/src/openvpn/dco_linux.h b/src/openvpn/dco_linux.h
index 310d433..efd5b27 100644
--- a/src/openvpn/dco_linux.h
+++ b/src/openvpn/dco_linux.h
@@ -81,8 +81,6 @@
int dco_message_key_id;
int dco_del_peer_reason;
struct sockaddr_storage dco_float_peer_ss;
- uint64_t dco_read_bytes;
- uint64_t dco_write_bytes;
} dco_context_t;
#endif /* defined(ENABLE_DCO) && defined(TARGET_LINUX) */
diff --git a/src/openvpn/dco_win.h b/src/openvpn/dco_win.h
index 4f3f028..02b8389 100644
--- a/src/openvpn/dco_win.h
+++ b/src/openvpn/dco_win.h
@@ -55,9 +55,6 @@
int dco_del_peer_reason;
struct sockaddr_storage dco_float_peer_ss;
- uint64_t dco_read_bytes;
- uint64_t dco_write_bytes;
-
struct context *c;
};
diff --git a/src/openvpn/multi.c b/src/openvpn/multi.c
index 558314c..e907524 100644
--- a/src/openvpn/multi.c
+++ b/src/openvpn/multi.c
@@ -3266,8 +3266,6 @@
* installed, and we do not need to clean up the state in the kernel */
mi->context.c2.tls_multi->dco_peer_id =3D -1;
mi->context.sig->signal_text =3D reason;
- mi->context.c2.dco_read_bytes =3D dco->dco_read_bytes;
- mi->context.c2.dco_write_bytes =3D dco->dco_write_bytes;
multi_signal_instance(m, mi, SIGTERM);
}
@@ -3337,8 +3335,6 @@
dco->dco_message_type =3D 0;
dco->dco_message_peer_id =3D -1;
dco->dco_del_peer_reason =3D -1;
- dco->dco_read_bytes =3D 0;
- dco->dco_write_bytes =3D 0;
return ret > 0;
}
#endif /* if defined(ENABLE_DCO) */
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1276?usp=3Demail
To unsubscribe, or for help writing mail filters, visit http://gerrit.openv=
pn.net/settings?usp=3Demail
Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I61f9d9bb26112eac0c0a47cb9d17982b075887ff
Gerrit-Change-Number: 1276
Gerrit-PatchSet: 3
Gerrit-Owner: ralf_lici
Gerrit-Reviewer: cron2
Gerrit-Reviewer: flichtenheld
Gerrit-Reviewer: plaisthos
Gerrit-CC: openvpn-devel
--7TNKE7P4f68=
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
cron2 upl=
oaded patch set #3 to the change originally created by ralf_lici.<=
/p>
Vi=
ew Change
The following approvals got outdated and were removed:
Code-Review+2 by cron2
dco: remove dco_read/write_bytes fr=
om dco_context_t
Remove dco_read_bytes and dco_write_bytes from all =
dco_context_t
structures, as peer statistics are now stored directly in =
the
corresponding c2 fields across all DCO interfaces.
Change-Id:=
I61f9d9bb26112eac0c0a47cb9d17982b075887ff
Signed-off-by: Ralf Lici <=
ralf@...2726...>
Acked-by: Gert Doering <gert@...1296...>
Ge=
rrit URL: https://gerrit.openvpn.net/c/openvpn/+/1276
Message-Id: <20=
251017205837.8553-1-gert@...1296...>
URL: https://www.mail-archive.co=
m/openvpn-devel@lists.sourceforge.net/msg33431.html
Signed-off-by: Gert =
Doering <gert@...1296...>
---
M src/openvpn/dco_freebsd.h
M =
src/openvpn/dco_linux.h
M src/openvpn/dco_win.h
M src/openvpn/multi.c=
4 files changed, 0 insertions(+), 11 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/76/1276/=
3
diff --git a/src/openvpn/dco_freebsd.h b/src/openvpn/dco_freebsd.=
h
index 2f486f0..0797b82 100644
--- a/src/o=
penvpn/dco_freebsd.h
+++ b/src/openvpn/dco_freebsd.h=
@@ -59,8 +59,6 @@
int dco_message_peer_id;=
span>
int dco_del_peer_reason;
struct so=
ckaddr_storage dco_float_peer_ss;
- uint64_t dco_read_bytes;
- uint64_t dco_write_bytes;
struct context *c;
} dco_context_t;
diff --git a/src/openvpn/dco_linux.h b/src/openvpn/dco_linux.h
index 310d433..efd5b27 100644
--- a/src/openvpn/=
dco_linux.h
+++ b/src/openvpn/dco_linux.h
@=
@ -81,8 +81,6 @@
int dco_message_key_id;
int dco_del_peer_reason;
struct sockaddr_stora=
ge dco_float_peer_ss;
-=
uint64_t dco_read_bytes;
- uint64_t dco_write_bytes;
} dco_context_t;
#endif /* defined(ENABLE_DCO) && def=
ined(TARGET_LINUX) */
diff --git a/src/openvpn/dco_win.h b/=
src/openvpn/dco_win.h
index 4f3f028..02b8389 100644<=
br>--- a/src/openvpn/dco_win.h
+++ b/src/openvpn/dco_=
win.h
@@ -55,9 +55,6 @@
int dco_del_pe=
er_reason;
struct sockaddr_storage dco_float_peer_ss;<=
/span>
- =
uint64_t dco_read_bytes;
- uint64_t dco_write_bytes;
-
struct context *c;
};
diff --git a/src/openvpn/multi.c b/src/openv=
pn/multi.c
index 558314c..e907524 100644
--=
- a/src/openvpn/multi.c
+++ b/src/openvpn/multi.c
@@ -3266,8 +3266,6 @@
* installed, and we do n=
ot need to clean up the state in the kernel */
mi->=
context.c2.tls_multi->dco_peer_id =3D -1;
mi->co=
ntext.sig->signal_text =3D reason;
- mi->context.c2.dco_read_bytes =3D dco->dco_read_b=
ytes;
- mi->conte=
xt.c2.dco_write_bytes =3D dco->dco_write_bytes;
mul=
ti_signal_instance(m, mi, SIGTERM);
}
@@ -3337,8 +3335,6 @@
dco->dco_messag=
e_type =3D 0;
dco->dco_message_peer_id =3D -1;
dco->dco_del_peer_reason =3D -1;
- dco->dco_read_bytes =3D 0;
- dco->dco_write_bytes =3D=
0;
return ret > 0;
}
#endif /* if defined(ENABLE_DCO) */
<=
p>To view, visit change 1276. To unsubscribe, or for help writing mail filters=
, visit settings=
.
Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I61f9d9bb26112eac0c0a47cb9d1=
7982b075887ff
Gerrit-Change-Number: 1276
Gerrit-PatchSet: 3
Gerrit-Owner: ralf_lici <ralf@...2726...>=
;
Gerrit-Reviewer: cron2 <gert@...1296...>=
Gerrit-Reviewer: flichtenheld <frank@...2716...=
1...>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...=
.1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...=
ts.sourceforge.net>
=
--7TNKE7P4f68=--