Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp211569lqt; Thu, 18 Apr 2024 12:43:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUrsrl/MKFRnnXcDg/mqDVC8VSODkjVOm9iZcrJejPdPJ/5KFHd18WQaSGPPxeOPegZcIRvQHiyTKauqmF2doxzS+XF6Ml2BVl9nC6SLQ== X-Google-Smtp-Source: AGHT+IFKUjpT3KWdEInmq5sgZii+2q8gfC2ZXFbT61EnhYtc7DYJQCUv+gxoG+TtGtcucVX6a+Jb X-Received: by 2002:a17:903:2c7:b0:1e2:aa62:2fbf with SMTP id s7-20020a17090302c700b001e2aa622fbfmr84884plk.45.1713469410027; Thu, 18 Apr 2024 12:43:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713469410; cv=pass; d=google.com; s=arc-20160816; b=WPapv79HMgdQ1KMfWthOdeD9XaPdwJAcQN6xOHxcOXGXow/H62G2bn7JijthlhTcW4 In/b7KiOFhlSe8BqxxW+amXRchkgMTgjjI2sjsKujWDTgMxsHy2kb4QzzHa3fh+9KSCk C1eVDYY39lTB0PsMq1tTgJKFkIIVCBwDQMgz6OeAUIQmExLO376EydeOwYBfDCJINojY QIaNlyrfY2BsEPezzRDfrDDZjvbr+D1H6Yxa4pATHVvzcmCb6QyHmVw/W9FtP1mV+IXe qYA4EKBVyVMAq9qBtPfwa2cUvkDjdmrnBKSe1GMBpg1IXpCD0xr4nOGmZ4q77Wml7cXP bW4A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:references:in-reply-to :message-id:cc:to:from:date:dkim-signature; bh=73xcy9UhpOQbwGv1P/rFuD3j5Fn9C/d34aHsmJnVy1o=; fh=j3npgVk/jTUK1Dp6z35Y2wIdI9uR7u8nj6uFmlL+xlI=; b=blO5l2mEi94UOCqL1PmJqfPmmMQvmN/v8j22KTc/kLWSeFik0aequ7Bj0J3s4pr5FB 6NdBVP6QCzt3LZL1MvFeAiNFNjgiFuG4I5tDIE/bpbRAok6AlG4JhknTU7bX+mIqRvQa l6tHC3vaDu6opi44mV69QvaoceOrkhOavegAs40oMuOkn7m9a0bmO4IeTfNX0RfaVrm2 /6nWiX+ZKBM5mdj5AsEREIhqyroJXgjkmp0BmHZ1NV6+F0TYOxEoE3iDt3zuIuxElgYC jrhBvQWWDxPPKL2dqKHJkoKVYDdO2pi3IHD19UYa8Jog3GrEAMTU8UiW0qfhzgE0xQ5d HkaQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ZoQFXyBT; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-150679-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150679-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id i2-20020a170902eb4200b001e0ccfd7818si1910986pli.412.2024.04.18.12.43.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 12:43:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-150679-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ZoQFXyBT; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-150679-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150679-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 0DFB3B23489 for ; Thu, 18 Apr 2024 19:38:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 72C84180A73; Thu, 18 Apr 2024 19:38:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ZoQFXyBT" Received: from mail-vk1-f181.google.com (mail-vk1-f181.google.com [209.85.221.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 42CEB17736; Thu, 18 Apr 2024 19:38:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713469091; cv=none; b=qZyV7aYC+5toHKdpJ18jEX8hu+LiaeazgSGE2YP6fyV+CFsdu3COxZm6cqHeLnqZ9f0CQkDChG4GWoAGoWaDoODUn5Ks2/zPDIpV4B1JNuWdmtO+xGrXp6xqIUB+ppb7JM1fGXTuYgoZHu3q65lPK6iDjz+kFr8vfE/wBph5Ut4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713469091; c=relaxed/simple; bh=krN7TDVY8gsasYGH21Hk8s3B3pWnfrUYQtqBSfSjSD0=; h=Date:From:To:Cc:Message-ID:In-Reply-To:References:Subject: Mime-Version:Content-Type; b=XsV4jgTuQXld0/mY+P5K8ZGmHeI3SgNISlIQRstQHknPhB9Ulko6cHGEXESe4iFWrLrOz2lK4LioVMQgtAM1jnBwzpBEuNDXaCxNCN9wupa9+1ocIn/+LnVFnFi+7SL+UYUVSptqOhBSMs8Sti5mVzaSU0Ny8irDoeMEdTwOeQg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=ZoQFXyBT; arc=none smtp.client-ip=209.85.221.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-vk1-f181.google.com with SMTP id 71dfb90a1353d-4dcd4cb27beso362637e0c.3; Thu, 18 Apr 2024 12:38:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713469089; x=1714073889; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=73xcy9UhpOQbwGv1P/rFuD3j5Fn9C/d34aHsmJnVy1o=; b=ZoQFXyBT/6BM2razCldrO81fIK9VIBnATEXZDZ+zwwiPI9W7Rumy7mcbTRF86yY/D+ IIqNqrWsJK00SZEekPm/89nAsoMPIuYQ6L9TxxAgesfMLfbKAw1RSkFgTULjiv3Lu5NB rKdd7DqkLRwecB5iub7ryQOls/om31MnlLOuACtdWhqx27VM6bXr/pPBqYjAmjdYN5H6 LTVW3JREH6ZhxZ00ySOZtZavhcvIUdYpJXEMIdGrAvDhF1wTVobplRa4T+YQdSIOlBhd fuoESU48HBDm6rtFr6crRZG+/WHtw2oMGT2G/n9tq+5f9c4ZclQtmbyq3oTRZEokktNO /QVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713469089; x=1714073889; h=content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=73xcy9UhpOQbwGv1P/rFuD3j5Fn9C/d34aHsmJnVy1o=; b=tDEqv9hBbN7QVtylo1V8GwyBrx77VJ4jaKCW7dg/wlk6XJQNmh9aMAJ/9w+6t+unxk II43vXrjfXcCcoy0ot8IAQB6CeCba1Tqz2klDzLwoR+r6HnN5yY+M0DHOfUN+ui4iE0B hK/KUJb6jK6e3ngoHiDb25n/PmMMHux7a7pNCVirODuVQRaMaB7qOrvcIBJ1p48+VYKM sei05nPzR/mS08DL4dJ/AG8yliwMwpuySARI+Mj9w6QlvuQ8W8Ixl5fiEOiec3dr6djt Dzxv2NZS8057hXwDJ9/iJCu0THRyOhngm0fFjw2wFQ5HAhxSs2H2u01EKZSt0Pc10KxH A8fg== X-Forwarded-Encrypted: i=1; AJvYcCXADeMxqO+0ZjmnA1iSkUGEPar2IP30CZ9xqPRAhPcAkbqVbWU1L+1VB0y0/ym4y2bjO893UWWlKl3AjdbFidbjE+StcNNhx4c6dH4nKSScKpcUi6Ca0wgSoszqADDbQsT5ohxV X-Gm-Message-State: AOJu0YxwpQwFgnxaO1t9iqdwgEStcHgMrbTkanTkWFFuxLAX2nTQlO3I RxxNijnWAQ7bb+bCvw2K3OS14gfcTxsqQAb5SKIUMSLtfFPsii3b X-Received: by 2002:a05:6122:8cf:b0:4d8:df31:6b34 with SMTP id 15-20020a05612208cf00b004d8df316b34mr3771436vkg.8.1713469089105; Thu, 18 Apr 2024 12:38:09 -0700 (PDT) Received: from localhost (73.84.86.34.bc.googleusercontent.com. [34.86.84.73]) by smtp.gmail.com with ESMTPSA id ow17-20020a0562143f9100b006a05aaf748bsm433587qvb.81.2024.04.18.12.38.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 12:38:08 -0700 (PDT) Date: Thu, 18 Apr 2024 15:38:08 -0400 From: Willem de Bruijn To: Yick Xie , willemdebruijn.kernel@gmail.com, willemb@google.com Cc: netdev@vger.kernel.org, davem@davemloft.net, dsahern@kernel.org, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, linux-kernel@vger.kernel.org, stable@vger.kernel.org Message-ID: <662176a05a2ff_f8180294a3@willemb.c.googlers.com.notmuch> In-Reply-To: <20240418170610.867084-1-yick.xie@gmail.com> References: <6621259d66d0f_ec9b929478@willemb.c.googlers.com.notmuch> <20240418170610.867084-1-yick.xie@gmail.com> Subject: Re: [PATCH net v3] udp: preserve the connected status if only UDP cmsg Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Yick Xie wrote: > 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 > Cc: stable@vger.kernel.org Reviewed-by: Willem de Bruijn