From: "cron2 (Code Review)" Date: Fri, 20 Dec 2024 21:56:39 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, ralf@...2726..., frank@...2641... Message-ID: <26ae51594b7447d382477fac1ca2de0f0eec31c8-EmailReviewComments-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="fMyRQfDlbtg="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[master]: Fix float support in P2P topology List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: ralf_lici Cc: plaisthos , flichtenheld , openvpn-devel --fMyRQfDlbtg= 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. ( http://gerrit.openvpn.net/c/ope= nvpn/+/844?usp=3Demail ) Change subject: Fix float support in P2P topology ...................................................................... Patch Set 1: (4 comments) Patchset: PS1: This looks like it should work (I do have a few nags) File src/openvpn/forward.c: http://gerrit.openvpn.net/c/openvpn/+/844/comment/54eabdc3_8b8edf10 : PS1, Line 1238: if (remote && (family =3D=3D AF_INET || family =3D=3D A= F_INET6)) I'm not sure what *that* does? When can we ever have a `remote` and an fam= ily that is neither `AF_INET` nor `AF_INET6`? (If we're waiting for incomi= ng data it can be `AF_UNSPEC`, but then we have no `remote`, no?) http://gerrit.openvpn.net/c/openvpn/+/844/comment/c48925bd_4bc7c300 : PS1, Line 1245: if (floated && c->c2.buf.len > 0) the GC seems only used inside here, and since this is a performance relevan= t function ("hot path", executed for each packet) we should not doing unnec= cessary work -> `gc_new(), gc_free()` can be inside the `if (floated)`. http://gerrit.openvpn.net/c/openvpn/+/844/comment/21341812_f18c537c : PS1, Line 1253: process_incoming_link_part2(c, lsi, orig_buf); should this be *inside* the `if()`? In the old code `_part2()` is uncondit= ionally called always -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/844?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I806757a8c6f9a589665624f176391b5f7b87f581 Gerrit-Change-Number: 844 Gerrit-PatchSet: 1 Gerrit-Owner: ralf_lici Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: cron2 Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: flichtenheld Gerrit-Attention: ralf_lici Gerrit-Comment-Date: Fri, 20 Dec 2024 21:56:39 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Gerrit-MessageType: comment --fMyRQfDlbtg= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: flichtenheld, plaisthos, ralf_lic= i.

View C= hange

4 comments:

    =
  • Patchset:

    • Patch Set #1:

      This looks like it should work (I do have a few n= ags)

  • File src/ope= nvpn/forward.c:

    • Pa= tch Set #1, Line 1238: = if (remote && (family =3D=3D AF_INET || family =3D=3D AF_INET6)= )

      I= 9;m not sure what *that* does? When can we ever have a `remote` and an fam= ily that is neither `AF_INET` nor `AF_INET6`? (If we're waiting for in= coming data it can be `AF_UNSPEC`, but then we have no `remote`, no?)

    • Patch Set #1, Line 1245: if (floated && c->c2.buf.len > 0)

      the GC seem= s only used inside here, and since this is a performance relevant function = ("hot path", executed for each packet) we should not doing unnecc= essary work -> `gc_new(), gc_free()` can be inside the `if (floated)`.

    • Patch Set #1, Line 1253: process_incoming_link_part2(c, lsi, orig_buf);

      should t= his be *inside* the `if()`? In the old code `_part2()` is unconditionally = called always

To view, visit change 844. To unsubscrib= e, or for help writing mail filters, visit settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I806757a8c6f9a589665624f1763= 91b5f7b87f581
Gerrit-Change-Number: 844
Gerrit-PatchSet: 1
Gerrit-Owner: ralf_lici <ralf@...2726...>= ;
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: cron2 <gert@...1296...>
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: Fri, 20 Dec 2024 21:56:39= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
--fMyRQfDlbtg=--