]> Git Repo - linux.git/commit
udp: preserve the connected status if only UDP cmsg
authorYick Xie <[email protected]>
Thu, 18 Apr 2024 17:06:10 +0000 (01:06 +0800)
committerJakub Kicinski <[email protected]>
Sat, 20 Apr 2024 03:10:15 +0000 (20:10 -0700)
commit680d11f6e5427b6af1321932286722d24a8b16c1
tree63f411c69f87ef289274a426991b64ca3ce1af52
parentf58f45c1e5b92975e91754f5407250085a6ae7cf
udp: preserve the connected status if only UDP cmsg

If "udp_cmsg_send()" returned 0 (i.e. only UDP cmsg),
"connected" should not be set to 0. Otherwise it stops
the connected socket from using the cached route.

Fixes: 2e8de8576343 ("udp: add gso segment cmsg")
Signed-off-by: Yick Xie <[email protected]>
Cc: [email protected]
Reviewed-by: Willem de Bruijn <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
net/ipv4/udp.c
net/ipv6/udp.c
This page took 0.053104 seconds and 4 git commands to generate.