diff options
author | Yick Xie <yick.xie@gmail.com> | 2024-04-18 20:06:10 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-04-20 06:10:15 +0300 |
commit | 680d11f6e5427b6af1321932286722d24a8b16c1 (patch) | |
tree | 63f411c69f87ef289274a426991b64ca3ce1af52 /drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c | |
parent | f58f45c1e5b92975e91754f5407250085a6ae7cf (diff) | |
download | linux-680d11f6e5427b6af1321932286722d24a8b16c1.tar.xz |
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 <yick.xie@gmail.com>
Cc: stable@vger.kernel.org
Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://lore.kernel.org/r/20240418170610.867084-1-yick.xie@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c')
0 files changed, 0 insertions, 0 deletions