From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (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 A54DD496915 for ; Tue, 12 May 2026 08:45:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778575547; cv=none; b=YDCDHUUpaOg/xZnu/eOMyXpGf3E5Dgsny033xDQ4W5jRs8k4Qu9wzL/9tIpAOuJDau5bvARHJvvzwuXpePEsGJAP8zu2xaLeX66gphnBETv5qQBelmQxmTyxJDRxGkcybNqZhbi+8fgAqZ6SrNrJDrDtPu83v1cUr2YlQF20Dh0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778575547; 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=dLd7JoBk2uGT/7lpL8KyNaedUe4fNZxsqTfyR5UX/TxIXbGTKDJWA0rvKmU/hE5CeXX5n2LTNT0LzlVxOGzR/njsf3aFxhu3UW521Fv50w5zZmqet70X23q/jfKNjdsZK3pxepYxTxdfJVZvPSpQCwwMAO1O1/Q7sYxYS0m4y+A= 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.41 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-f41.google.com with SMTP id 5b1f17b1804b1-488af9fdaa7so30038365e9.1 for ; Tue, 12 May 2026 01:45:38 -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=Hs8gF6NGTOoYXbPhLlAO3I4kilrmqWd13dyIuwXCZJWOjyaqBn4dArIWPSjTVriSjV jByUhVYlwM80a7RHx3rTyQtj9LHRm4NqgHY2Pj0gR9sfmbheG2jQOcdFWilERIhhSgUx RW7/MWGCip5MmQiT4Zo7hAhh2MGS50huti2IA+5Gn9TRpqr0MGDzp6tIIHYLWgXpuTx9 W73/FARzopDDRC0MFS64H+Pc5aky75Q8Nf/kwj62hiI/M2a+w48hHXth60HSh4v351hq u+i3dpmqEGEqDHnJL6qoWwj+r6SSnGDRK0zUUE+r6yGlsms83pWCO3BS+LFmHyb/92cY Qdsw== X-Forwarded-Encrypted: i=1; AFNElJ8nFMxptymLEviewip7VAri69HQr0uSZTljYJKe/IpcwFEzT3w+NwDRcxL1as8cn+HTojx2iVm1ehQWlNg=@vger.kernel.org X-Gm-Message-State: AOJu0YzxMhRnhcxw/dBMhMZfqvj/CFxmMsyc6q6YGGdEBWll7nk7whev r7TmYyy+V23BAQSi+rUae2dUIKhLPGeZsNA8As+AuO8COjV5uy5rUCJzUuDCguMKrlo= X-Gm-Gg: Acq92OENye1YSyllOCJjSmERKbKCKAJOwxXdWmEUAZg84aogy24pojkaw0v2hTmAORR M+wa5vzSfV+idTXkbVuhONaKT7JhSFmB2aALh3Btn+20AbdG8EU73x9KUMRIwtvf8W6KfAJT12r 7261xIKrZfSU/y6VJUUnIG+Xja0lKJrfFDrhv/MVfLhwq3JLiRf4v+JEENSZvXRQoOvSE4a6drL Phrf1U6OCmMdqr0WFQ9dt/oBaoRvUN8zi2ML77X5MZlJenblfyhmC33Yr/iKjV5PziuZHcad7rj ebwLADhlsBMIoqXyB9Xt6LuR2dMK+swtmc/CjJQs7rOM12d/Noucm5IKhuoi1SrZGOpUlzQcqdV 7U4KJT+hStsGdARGD+69j2Af35qC+jM62/tW19D9EVHc62YLsaZVxzqkgK24ziPxAUoukcbHpBx hyTIMxOt17lhF2R2alNxWqm9CISK/oLN0jJG6tTzcWYeAodw== 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-kernel@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.