From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (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 D214B496912 for ; Tue, 12 May 2026 08:45:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778575545; cv=none; b=uL2hW3cvZ8gZsABuT2FsthNBpnJc6sdwtkurUZqXyPS1wJdC4kj88uKo23zqJyYkL/DhMI3X2Snjk3W2o+9w+o2ibeFVsh0KtUqlO0U2UKJ7IJQIjmervPpcHXzxwQNxAEzjaz0ItSrqedvRSir4QNV9s5zm1hZ6RePn5PMsGyY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778575545; c=relaxed/simple; bh=VejzyZEps18cwGic+7y+WtCkMAqA/TE5eqTckN89HUI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=NzwZA6sq9A+SiOBWyjNic9YkyEhZx9Z1K7tswyPLXZQ35qTcFge0So1iytJhjkhKiXy35QQB0XEpjVxB2cKRmEfTdSJsH+VMHckeYX0XD6q+z+r84foDXpgwdRUOlwWm12M4CbUJni6GR8MZDqn0CW+SacHLoUOB9Cwh1HkcClU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=resnulli.us; spf=none smtp.mailfrom=resnulli.us; dkim=pass (2048-bit key) header.d=resnulli-us.20251104.gappssmtp.com header.i=@resnulli-us.20251104.gappssmtp.com header.b=LeakSED8; arc=none smtp.client-ip=209.85.128.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=resnulli.us Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=resnulli.us Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=resnulli-us.20251104.gappssmtp.com header.i=@resnulli-us.20251104.gappssmtp.com header.b="LeakSED8" Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-488b8bc6bc9so32428435e9.3 for ; Tue, 12 May 2026 01:45:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20251104.gappssmtp.com; s=20251104; t=1778575534; x=1779180334; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=xOyBgh5+zqSkeyyWb8Vcm36qUJiK94Wa6W+p9Jv89ZA=; b=LeakSED8mzEjkziOEF017NihImfhHHQlpj458I8uwZBvUCjkO6zTlIPrfDzSNIttud xYYRo5EPB6xkd0LNw1GaLgqmqCVARGDQpIG590qMTtAVWha+dqXogLiRcXyrQSYC8NQx L+8y1c5oIEoc7ZJZWjOSfYApEi29UWMqo8LhQXPzNqjIQeGgVpHIQV5rnzdq5dnjaTSK Dg7IYzjAmfgSdnyRMpf5HSGdcvxMpT8OWEW7d5hH4LCkuHFO3z6r9E7UwYk92ymOKZvO s06MJbhun+y2dfeM2uGt/CQt6G2E1hMUInjuPMNwaIercHz2lXRcsozzJsk+dI33PJo4 4rpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778575534; x=1779180334; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xOyBgh5+zqSkeyyWb8Vcm36qUJiK94Wa6W+p9Jv89ZA=; b=WGoHLzdd6tXGo+RP6qM9JrgZVriwHIIq97e8OItKOfGR3/nB6Ibp2BJN2WdM739awg 2CSR+O3IFbuwWyyrRzswTrKKvTKjNWdq+IvkStuhl4kgd9gaeXIS+RPOxif7vUgMIUQj x6Jxl8L1OdpTe+dCu8Nc540sIU0cFkxE8IF1EWIF5pgvSeuILrNPX8B4kcdtpdkx3OcL UyOYHhepW7VN0DPcBEi7VSkxDRUelXqV/FaTfQggzim+aPzEIkFE+90lPHmrXXzf9wIl sh+kIh4XyT9wrkcbPruiBzexTdyE2H0R5K/1E5v6vAFlUN9wP0jvwWePzXXzNlfFm4U5 HKkg== X-Forwarded-Encrypted: i=1; AFNElJ8xuz2ACHGJiylSIxV+9O2DdSC7MsEGz3keLkpZ57lIJGbf+8xqzf34idEj6OgzgoU3t17UzHlu8bsI@vger.kernel.org X-Gm-Message-State: AOJu0YxGjVIq3/mKis+tx6yHkOctLLmgMgDcDDq7+sF+IGw/pnZeZNes XK2CNtRhDE/fZeWZ9LmYFLbxPBWSUBWTSeMbCVe5Zipt49WdrtWCQxepBJXp64ZeQm0= X-Gm-Gg: Acq92OGB0M4eajenEUMPb5HlAc+niFqZYl0edkEgLxs6ucSDlJtPTW6OykzRt2JEO4z ziZIG3czLd9wc2ifzCywreJG34CJceChlIBAYK9mrMj5PYYlvsGz3EQZTTEp4GQCD8UDXZMmcCo 7StkrbepR6qR8FH4GLceMfdv+hRc4Ujjq1FbplZWgPkCRZD+4UniaKQl8WZKCAQDZh9erEYugdJ g+JoKPw7/MSZcFtn3Q5SZ5hgtFJr/g+ZHYeQMmghBEkR6zeDui4d+B/mBodo2988WweV3lZo7mr umUJCM9RlINcitojzTKOqhXrymxylvw1FJu6uFfuf+cVBVjzYtFnxnyhpO59GRs3yvp8eDc/L9B ViNPezi3qbZHZJTKP16Qiz1pZqhc8vbBdVCoo2ZMmf7a7Yy6/28y8tX3Dx28tcgpXtoCCHDQn+U bQtyuROhClIIvFfTG4r7KjxzDhpKduMbxrTuduuFyCMjng9Q== X-Received: by 2002:a05:600c:a11a:b0:48e:635a:18d2 with SMTP id 5b1f17b1804b1-48e8fe4dc0bmr23026925e9.2.1778575533826; Tue, 12 May 2026 01:45:33 -0700 (PDT) Received: from FV6GYCPJ69 ([140.209.217.212]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48e906b04a9sm50232105e9.7.2026.05.12.01.45.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 May 2026 01:45:33 -0700 (PDT) Date: Tue, 12 May 2026 10:45:30 +0200 From: Jiri Pirko To: Parav Pandit Cc: Mark Bloch , Jakub Kicinski , Eric Dumazet , Paolo Abeni , Andrew Lunn , "David S. Miller" , Jonathan Corbet , Shuah Khan , Simon Horman , Saeed Mahameed , Leon Romanovsky , Tariq Toukan , Andrew Morton , "Borislav Petkov (AMD)" , Randy Dunlap , Dave Hansen , Christian Brauner , Petr Mladek , "Peter Zijlstra (Intel)" , Thomas Gleixner , Pawan Gupta , Dapeng Mi , Kees Cook , Marco Elver , Eric Biggers , "NBU-Contact-Li Rongqing (EXTERNAL)" , "Paul E. McKenney" , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , "linux-rdma@vger.kernel.org" Subject: Re: [RFC net-next 0/4] devlink: Add boot-time defaults Message-ID: References: <20260506123739.1959770-1-mbloch@nvidia.com> <3f9215c4-7c84-46d9-ba74-30dabe24db09@nvidia.com> <20260508175213.1952097f@kernel.org> <580a774b-ba9e-4523-b43a-476f75dd5b12@nvidia.com> Precedence: bulk X-Mailing-List: linux-rdma@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Mon, May 11, 2026 at 08:21:37PM +0200, parav@nvidia.com wrote: > >> From: Mark Bloch >> Sent: 10 May 2026 06:02 PM >> > >[..] > >> > I look at it from the perspective that from some CX generation, >> > switchdev mode should be default. So that is a device-based decision. >> > I believe as such it can optionally be permanenty configured (nv config) >> > on older device. Why not? >> >Because sometimes switchdev_inactive is needed and sometimes not. >Such knob is not device decision. That is what I would call corner case. In that, user can use userspace configuration to change the mode in runtime. >If it is placed in the device, orchestration needs to yet use additional vendor tool to configure in the device. >And that theoretical tool cannot even run yet because driver is not yet loaded. > >That sort of defeats the purpose. > >> This is a deployment policy decision, not a permanent property of the card. >+1 > >> The same adapter can be used in a regular host/RDMA setup or in a >> switchdev/offload setup. If we store this in NVM, that Linux switchdev policy >> follows the device across hosts, kernels and use cases, and can surprise the >> next deployment that just expects a normal NIC. >> >> I'll send another RFC v2 with support limited to: >> devlink=[...]:esw:mode:{ switchdev | switchdev_inactive | legacy } >> and let's see where we land with that. >> >This looks elegant to me as well covering all eswitch modes and still sw is in control.