netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jakub Kicinski <kuba@kernel.org>
To: Marek Mietus <mmietus97@yahoo.com>
Cc: netdev@vger.kernel.org, sd@queasysnail.net, antonio@openvpn.net,
	openvpn-devel@lists.sourceforge.net
Subject: Re: [PATCH net-next v3 0/3] net: tunnel: introduce noref xmit flows for tunnels
Date: Tue, 23 Sep 2025 18:48:56 -0700	[thread overview]
Message-ID: <20250923184856.6cce6530@kernel.org> (raw)
In-Reply-To: <20250922110622.10368-1-mmietus97@yahoo.com>

On Mon, 22 Sep 2025 13:06:19 +0200 Marek Mietus wrote:
> This patchset introduces new noref xmit helpers and incorporates
> them in the OpenVPN driver. A similar improvement can also be
> applied to other tunnel code in the future. The implementation
> for OpenVPN is a good starting point as it doesn't use the
> udp_tunnel_dst_lookup helper which adds some complexity.

You're basically refactoring an API, it's fairly unusual to leave both
APIs in place upstream. Unless the number of callers is really huge,
say >100, or complexity very high. Not sure how others feel but IMHO
you should try to convert all the tunnels.

> There are already noref optimizations in both ipv4 and ip6 
> (See __ip_queue_xmit, inet6_csk_xmit). This patchset allows for
> similar optimizations in udp tunnels. Referencing the dst_entry
> is now redundant, as the entire flow is protected under RCU, so
> it is removed.
> 
> With this patchset, I was able to observe a 4% decrease in the total
> time for ovpn_udp_send_skb using perf.

Please provide more meaningful perf wins. Relative change of perf in
one function doesn't tell use.. well.. anything.

Please do not remove the diff stat generated by git in the cover
letter.


  parent reply	other threads:[~2025-09-24  1:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20250922110622.10368-1-mmietus97.ref@yahoo.com>
2025-09-22 11:06 ` [PATCH net-next v3 0/3] net: tunnel: introduce noref xmit flows for tunnels Marek Mietus
2025-09-22 11:06   ` [PATCH net-next v3 1/3] net: dst_cache: implement RCU variants for dst_cache helpers Marek Mietus
2025-09-22 11:06   ` [PATCH net-next v3 2/3] net: tunnel: implement noref flows in udp_tunnel{,6}_xmit_skb Marek Mietus
2025-09-22 11:06   ` [PATCH net-next v3 3/3] net: ovpn: use new noref xmit flow in ovpn_udp{4,6}_output Marek Mietus
2025-09-24  1:48   ` Jakub Kicinski [this message]
2025-09-24 16:27     ` [PATCH net-next v3 0/3] net: tunnel: introduce noref xmit flows for tunnels Marek Mietus
2025-09-24 23:31       ` Jakub Kicinski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250923184856.6cce6530@kernel.org \
    --to=kuba@kernel.org \
    --cc=antonio@openvpn.net \
    --cc=mmietus97@yahoo.com \
    --cc=netdev@vger.kernel.org \
    --cc=openvpn-devel@lists.sourceforge.net \
    --cc=sd@queasysnail.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).