From: Philo Lu <lulie@linux.alibaba.com>
To: Paolo Abeni <pabeni@redhat.com>, netdev@vger.kernel.org
Cc: willemdebruijn.kernel@gmail.com, davem@davemloft.net,
edumazet@google.com, kuba@kernel.org, dsahern@kernel.org,
horms@kernel.org, antony.antony@secunet.com,
steffen.klassert@secunet.com, linux-kernel@vger.kernel.org,
dust.li@linux.alibaba.com, jakub@cloudflare.com,
fred.cc@alibaba-inc.com, yubing.qiuyubing@alibaba-inc.com
Subject: Re: [PATCH v8 net-next 3/4] ipv4/udp: Add 4-tuple hash for connected socket
Date: Wed, 13 Nov 2024 09:50:13 +0800 [thread overview]
Message-ID: <14a1a4a1-7281-4715-bf6e-73d3dd5417ef@linux.alibaba.com> (raw)
In-Reply-To: <a1db0c11-38ee-4932-86bc-a397a0ecf963@redhat.com>
On 2024/11/12 22:58, Paolo Abeni wrote:
> On 11/8/24 06:48, Philo Lu wrote:
> [...]
>> Signed-off-by: Philo Lu <lulie@linux.alibaba.com>
>> Signed-off-by: Cambda Zhu <cambda@linux.alibaba.com>
>> Signed-off-by: Fred Chen <fred.cc@alibaba-inc.com>
>> Signed-off-by: Yubing Qiu <yubing.qiuyubing@alibaba-inc.com>
>
> [...]
>> @@ -2937,7 +3128,7 @@ struct proto udp_prot = {
>> .owner = THIS_MODULE,
>> .close = udp_lib_close,
>> .pre_connect = udp_pre_connect,
>> - .connect = ip4_datagram_connect,
>> + .connect = udp_connect,
>> .disconnect = udp_disconnect,
>> .ioctl = udp_ioctl,
>> .init = udp_init_sock,
>
> 2 minor notes, possibly not needing a repost:
>
> - The SoB chain looks strange, do you mean co-developed-by actually?
Yes, we're all involved in the development. I think it could be
indicated by SoBs (and all of us agree with this). Please let me know if
I'm wrong :)
Or strictly as [1], it should be:
Co-developed-by: Cambda Zhu <cambda@linux.alibaba.com>
Signed-off-by: Cambda Zhu <cambda@linux.alibaba.com>
Co-developed-by: Fred Chen <fred.cc@alibaba-inc.com>
Signed-off-by: Fred Chen <fred.cc@alibaba-inc.com>
Co-developed-by: Yubing Qiu <yubing.qiuyubing@alibaba-inc.com>
Signed-off-by: Yubing Qiu <yubing.qiuyubing@alibaba-inc.com>
Signed-off-by: Philo Lu <lulie@linux.alibaba.com>
[1]
https://www.kernel.org/doc/html/latest/process/submitting-patches.html#when-to-use-acked-by-cc-and-co-developed-by
> - udplite is not touched. AFAICS should not be a problem - just the
> feature will not be available for udplite.
Agreed. Theoretically, the feature relies on udp4_hash4/udp6_hash4 when
connecting, and all other functions including lookup/unhash/rehash
always check "hashed4" firstly, and do nothing if it's false (which is
the case for udplite).
AFAICT, the effects to udplite include:
- Additional memory consumption in udp_sock and udptable
- Control path: udp_hashed4 checking when unhash/rehash
- Data path: udp_has_hash4 checking when lookup
(like unconnected sks in udp)
> I'm wondering if syzbot could
> prove me wrong about "not being a problem" (usually it's able to do that;)
>
> /P
>
Thanks.
--
Philo
next prev parent reply other threads:[~2024-11-13 1:50 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-08 5:48 [PATCH v8 net-next 0/4] udp: Add 4-tuple hash for connected sockets Philo Lu
2024-11-08 5:48 ` [PATCH v8 net-next 1/4] net/udp: Add a new struct for hash2 slot Philo Lu
2024-11-08 5:48 ` [PATCH v8 net-next 2/4] net/udp: Add 4-tuple hash list basis Philo Lu
2024-11-08 5:48 ` [PATCH v8 net-next 3/4] ipv4/udp: Add 4-tuple hash for connected socket Philo Lu
2024-11-12 14:58 ` Paolo Abeni
2024-11-13 1:50 ` Philo Lu [this message]
2024-11-14 9:12 ` Paolo Abeni
2024-11-08 5:48 ` [PATCH v8 net-next 4/4] ipv6/udp: " Philo Lu
2024-11-11 17:58 ` [PATCH v8 net-next 0/4] udp: Add 4-tuple hash for connected sockets Willem de Bruijn
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=14a1a4a1-7281-4715-bf6e-73d3dd5417ef@linux.alibaba.com \
--to=lulie@linux.alibaba.com \
--cc=antony.antony@secunet.com \
--cc=davem@davemloft.net \
--cc=dsahern@kernel.org \
--cc=dust.li@linux.alibaba.com \
--cc=edumazet@google.com \
--cc=fred.cc@alibaba-inc.com \
--cc=horms@kernel.org \
--cc=jakub@cloudflare.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=steffen.klassert@secunet.com \
--cc=willemdebruijn.kernel@gmail.com \
--cc=yubing.qiuyubing@alibaba-inc.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
all inboxes | Powered by JetHome®