From: "cron2 (Code Review)" Date: Sat, 18 Oct 2025 17:01:34 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, ralf@...2726..., frank@...2641... Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="GyDfElnGKW8="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: dco-freebsd: store peer stats directly in c2 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: ralf_lici Cc: plaisthos , flichtenheld , openvpn-devel --GyDfElnGKW8= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld, plaisthos, ralf_lici. cron2 has posted comments on this change by ralf_lici. ( http://gerrit.open= vpn.net/c/openvpn/+/1275?usp=3Demail ) Change subject: dco-freebsd: store peer stats directly in c2 ...................................................................... Patch Set 2: Code-Review-1 (2 comments) Patchset: PS2: I think this needs more discussion on which counters on what event and in w= hat mode (client side / CM_P2P vs. server side) to put where File src/openvpn/dco_freebsd.c: http://gerrit.openvpn.net/c/openvpn/+/1275/comment/4f9c725c_42b0c79e?usp=3D= email : PS2, Line 625: dco->c->c2.dco_write_bytes =3D nvlist_get_nu= mber(bytes, "out"); I don't think this is the correct place to store these. The overall context here is "OVPN_NOTIF_DEL_PEER", so we're told by the ker= nel that `dco->dco_message_peer_id` went away, and, btw, here are the lates= t counters for this peer. Storing it in `dco->c->c2->` smells like "the server's global structure" wh= ile Linux would put per-client into `dco->c->multi->instances[peer_id]->con= text.c2->` - OTOH, Linux' `CMD_PEER_DEL_NTF` seems to carry no counters, so= the code is not the same anyway. Am I misreading this? -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1275?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings?usp=3Demail Gerrit-MessageType: comment Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I53dd40fabdeacb9dca843e28fdd3b357711c5a84 Gerrit-Change-Number: 1275 Gerrit-PatchSet: 2 Gerrit-Owner: ralf_lici Gerrit-Reviewer: cron2 Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: flichtenheld Gerrit-Attention: ralf_lici Gerrit-Comment-Date: Sat, 18 Oct 2025 17:01:34 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes --GyDfElnGKW8= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is cur= rently required from: flichtenheld, plaisthos, ralf_lici.

Patch set 2:Code-Review -1=

V= iew Change

2 comments:

  • Patchset:

    • Patch Set #2:

      I think th= is needs more discussion on which counters on what event and in what mode (= client side / CM_P2P vs. server side) to put where

  • File src/openvpn/dco_freebsd.c:

    • Patch Set #2, L= ine 625: = dco->c->c2.dco_write_bytes =3D nvlist_get_number(bytes, "out&q= uot;);

      I don't think this is the correct place to store thes= e.

      The overall context here is "OVPN_NOTIF_DEL_PEER", so we&#= 39;re told by the kernel that `dco->dco_message_peer_id` went away, and,= btw, here are the latest counters for this peer.

      Storing it in `dco-&g= t;c->c2->` smells like "the server's global structure" = while Linux would put per-client into `dco->c->multi->instances[pe= er_id]->context.c2->` - OTOH, Linux' `CMD_PEER_DEL_NTF` seems to = carry no counters, so the code is not the same anyway.

      Am I misreading = this?

To view, visit change 1275. To unsubscribe, or = for help writing mail filters, visit settings.

Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I53dd40fabdeacb9dca843e28fdd= 3b357711c5a84
Gerrit-Change-Number: 1275
Gerrit-PatchSet: 2
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>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
Gerrit-Attention: ralf_lici <ralf@...2804...= .>
Gerrit-Comment-Date: Sat, 18 Oct 2025 17:01:34= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
= --GyDfElnGKW8=--