Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp515746lqm; Wed, 1 May 2024 07:38:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXRuPy4lCB5lPwhu6OIykspJK8cKh6ujTuS9R1m0JaD3o10Wih/dsuHvVFrvOxFns+F0Ta5gasI/isNhWtFOafGl9IufXQ8iJyK1HCIpQ== X-Google-Smtp-Source: AGHT+IHq6LffJH+Hqnr6CbKf7/lI7PauK9t0bCLvmP99X56X4EjOHsfkglb182mh9mhb3nKtYcfN X-Received: by 2002:a17:906:4691:b0:a58:eab7:7bab with SMTP id a17-20020a170906469100b00a58eab77babmr1951206ejr.52.1714574292355; Wed, 01 May 2024 07:38:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714574292; cv=pass; d=google.com; s=arc-20160816; b=TUJ3plFCiBdSOXyq10A4+STxNkGCH2NY3ga8SJK4sWpmEezMkxgDlV7Yq+mCPYPLuO 7WO3Uvy5z7l9B+HaPUvfUFLK9d5Xr7fHb+i2K7S148WW1nyCOe6/ec0skngRkFvf4r57 QP4aR3kAfL2An56jNN5Vh3VKh6FHJ9gwuNdPihVQbuh5u8hk/oD5GFCEM3xr+yiUXaf/ RnDxwSMa6F7I/VFFLlzZx8NfS992WiER1H75uR6VwYzFY6zy/nPKIONGbonf5FOGNp5K 6oapM4oz+UGHTjeVRGny6dcD/IrAsDjSwf3AaAJh2lofsBilXgFd/9oQqru3zm5iB7d6 gsaA== 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:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=50j9o2KgB+Co+RdpJ/s0GP4P0swFo60/BtRl/m4FAfo=; fh=CxBs/wXU0uHfR/v3sESCCtYi35MVLw0m9T6KkN3jnIU=; b=dx4zfne2SUsj/c1foF1OWqFJe6sn7XiCvZFRrl2rPOLxchjsxheBofKlDGz2MLdNhT qDuTPUnQiaw8pAbXY/ZLOJvYJWvJ32bhMQRdkEknS8Z9CEq9kGQZWxEozp0noirwWM/f P3Qc1fMY4ZZPASI3EM2e2FVKIH2QU/t8KxxNtKc2D7ntQZRTZEDnEKvgVjUj7yAPBMcW vP1qazUdL2IUk9KvCUG4LCKNoRYlHK9i1E5rHt/5bpahfhL+cUAAxRxHJcFD8Ds37367 5ndkr0kYOKMLp6FNWZpK+qFLTyNwTXOzANdPnkCmCwsvbkouO8ounkAh2ZSOayCYEurP mipg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Od7WPu4L; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-165378-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165378-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id hq19-20020a1709073f1300b00a570bc19f2csi12476199ejc.443.2024.05.01.07.38.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 07:38:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-165378-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Od7WPu4L; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-165378-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165378-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 092551F23880 for ; Wed, 1 May 2024 14:38:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6035A37165; Wed, 1 May 2024 14:38:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Od7WPu4L" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 835EE10958; Wed, 1 May 2024 14:38:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714574280; cv=none; b=iJWozvu1KjEBACLwvx9tJpkc4I9pVaCRpa2kwiM5r0O36Znan1XmcYB2muTJXYyjR387ZMummRtDTfGlZ/0Eie1gqdlWjrgCIpTNRYTD3Vo8e4nNdGYslcTSC9gImISY+EIUl2oVCByBoNCXRax37IiRxaNBzGEhigRWE5HPB/M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714574280; c=relaxed/simple; bh=fnzipyC0KSPPMhA3lbz+NK9PDvP4bcqNMdwD//odq4k=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=rrGrYTwWXi1uhZnwyHHywUl/0lY2gOUJotPAiirMz6crypl/LdWwclV28QinS+vCMQctPCpBAy0nxpCUJnfXu5/qN1jQA+scLBkI8mdOadb8A/t0qqn+svzaFs2YO1bD8ox39+8enDRcw03EVTtrYQqyjNzDTHoypRvHgabqhrs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Od7WPu4L; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 28EF4C072AA; Wed, 1 May 2024 14:37:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714574280; bh=fnzipyC0KSPPMhA3lbz+NK9PDvP4bcqNMdwD//odq4k=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Od7WPu4LpHp7dC74MWGloZCxyUgTJcbwQE7uXrlcaB2Qzyx2ykdEUnj7/HnRNSV9S 2ud/yCP3Qaay9o6GVvTMECZUHoICBCAESwIUprKLj2KLU76qqvKi814TwDtJyH+ENG M962iZLsrY2VDrqdgyp3+/QGO9PrmnzFhwroc7DAXVsjBZUcOpUEgLAfdNY6+en3QI H8LJSXksZ/aashA1j+neCJhoFiWH+ROQhao8+jGq4camGSaqhn+KgtMoByeKg4LKch fZj6Bza5LVN5WkayXPrRm6He4Rz4RWKtKqUFRMjzKlX+J6XylWyd0gyKqAuK+/jUYS XidC1tyP+aebQ== Date: Wed, 1 May 2024 07:37:58 -0700 From: Jakub Kicinski To: Ido Schimmel Cc: Danielle Ratson , "netdev@vger.kernel.org" , "davem@davemloft.net" , "edumazet@google.com" , "pabeni@redhat.com" , "corbet@lwn.net" , "linux@armlinux.org.uk" , "sdf@google.com" , "kory.maincent@bootlin.com" , "maxime.chevallier@bootlin.com" , "vladimir.oltean@nxp.com" , "przemyslaw.kitszel@intel.com" , "ahmed.zaki@intel.com" , "richardcochran@gmail.com" , "shayagr@amazon.com" , "paul.greenwalt@intel.com" , "jiri@resnulli.us" , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , mlxsw , Petr Machata Subject: Re: [PATCH net-next v5 04/10] ethtool: Add flashing transceiver modules' firmware notifications ability Message-ID: <20240501073758.3da76601@kernel.org> In-Reply-To: References: <20240424133023.4150624-1-danieller@nvidia.com> <20240424133023.4150624-5-danieller@nvidia.com> <20240429201130.5fad6d05@kernel.org> <20240430130302.235d612d@kernel.org> 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=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 1 May 2024 10:53:48 +0300 Ido Schimmel wrote: > We can try to use unicast, but the current design is influenced by > devlink firmware flash (see __devlink_flash_update_notify()) and ethtool > cable testing (see ethnl_cable_test_started() and > ethnl_cable_test_finished()), both of which use multicast notifications > although the latter does not update about progress. > > Do you want us to try the unicast approach or be consistent with the > above examples? We are charting a bit of a new territory here, you're right that the precedents point in the direction of multicast. The unicast is harder to get done on the kernel side (we should probably also check that the socket pid didn't get reused, stop sending the notifications when original socket gets closed?) It will require using pretty much all the pieces of advanced netlink infra we have, I'm happy to explain more, but I'll also understand if you prefer to stick to multicast.