From: Petr Machata <petrm@nvidia.com>
To: Jakub Kicinski <kuba@kernel.org>
Cc: Petr Machata <petrm@nvidia.com>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Paolo Abeni <pabeni@redhat.com>,
"David Ahern" <dsahern@gmail.com>, <netdev@vger.kernel.org>,
Simon Horman <horms@kernel.org>,
Nikolay Aleksandrov <razor@blackwall.org>,
Ido Schimmel <idosch@nvidia.com>, <mlxsw@nvidia.com>,
Antonio Quartulli <antonio@openvpn.net>,
Pablo Neira Ayuso <pablo@netfilter.org>,
<osmocom-net-gprs@lists.osmocom.org>,
Andrew Lunn <andrew+netdev@lunn.ch>,
Taehee Yoo <ap420073@gmail.com>,
"Jason A. Donenfeld" <Jason@zx2c4.com>,
<wireguard@lists.zx2c4.com>,
Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>,
<linux-sctp@vger.kernel.org>, Jon Maloy <jmaloy@redhat.com>,
<tipc-discussion@lists.sourceforge.net>
Subject: Re: [PATCH net-next v2 01/14] net: ipv4: Add a flags argument to iptunnel_xmit(), udp_tunnel_xmit_skb()
Date: Fri, 13 Jun 2025 21:23:20 +0200 [thread overview]
Message-ID: <87wm9f2zwd.fsf@nvidia.com> (raw)
In-Reply-To: <20250613094858.5dfa435e@kernel.org>
Jakub Kicinski <kuba@kernel.org> writes:
> On Thu, 12 Jun 2025 22:10:35 +0200 Petr Machata wrote:
>> void udp_tunnel_xmit_skb(struct rtable *rt, struct sock *sk, struct sk_buff *skb,
>> __be32 src, __be32 dst, __u8 tos, __u8 ttl,
>> __be16 df, __be16 src_port, __be16 dst_port,
>> - bool xnet, bool nocheck)
>> + bool xnet, bool nocheck, u16 ipcb_flags)
>
> This is a lot of arguments for a function.
> I don't have a great suggestion off the top of my head, but maybe
> think more about it?
It wraps functions that take many arguments ^o^
We could exchange src_port, dst_port by passing in the UDP header
directly, but I don't think that's a good idea.
I guess I don't have great ideas either.
prev parent reply other threads:[~2025-06-13 19:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <cover.1749757582.git.petrm@nvidia.com>
2025-06-12 20:10 ` [PATCH net-next v2 01/14] net: ipv4: Add a flags argument to iptunnel_xmit(), udp_tunnel_xmit_skb() Petr Machata
2025-06-13 16:48 ` Jakub Kicinski
2025-06-13 19:23 ` Petr Machata [this message]
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=87wm9f2zwd.fsf@nvidia.com \
--to=petrm@nvidia.com \
--cc=Jason@zx2c4.com \
--cc=andrew+netdev@lunn.ch \
--cc=antonio@openvpn.net \
--cc=ap420073@gmail.com \
--cc=davem@davemloft.net \
--cc=dsahern@gmail.com \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=idosch@nvidia.com \
--cc=jmaloy@redhat.com \
--cc=kuba@kernel.org \
--cc=linux-sctp@vger.kernel.org \
--cc=marcelo.leitner@gmail.com \
--cc=mlxsw@nvidia.com \
--cc=netdev@vger.kernel.org \
--cc=osmocom-net-gprs@lists.osmocom.org \
--cc=pabeni@redhat.com \
--cc=pablo@netfilter.org \
--cc=razor@blackwall.org \
--cc=tipc-discussion@lists.sourceforge.net \
--cc=wireguard@lists.zx2c4.com \
/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