From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (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 1FA3E3A71A9 for ; Tue, 12 May 2026 14:07:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778594838; cv=none; b=ZBtTN+Aej/OCp/R93qzsmF/qo0b0el/F+URT21/Ls2pwRXR1T0zAx9XnXayzXv7FbrbF79lUJUVNWoFB7rx+JlCswAU8kFinbCy/1QYMXS0HNsLd8pLztDmmd7rsWimZFxpis8ha6Gi6p/z/MqrNHAMI00wztgInckB21b3T1ig= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778594838; c=relaxed/simple; bh=bgBCtNkJnsiY/BqSw+6iZ38DMKEEFC29v57mwpmfH+w=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=i8Gxt09LS8neQPTgTOLijfTW7GPGwKDdkb+1ZoLbUftrxIEgTOxiDj1cFzZczcvjjeEtU9/+Bsxr+v5DMYjvZS458Ru++XpAGYEtVGbpAkHdV772rrzRcKGAyIajqr1srIlITYNkOMpsiQaOiYqRoZ1c9H/3TALm0sZ+RmTjFkA= 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=a1AKBlkb; arc=none smtp.client-ip=209.85.128.43 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="a1AKBlkb" Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-4891b0786beso36334485e9.1 for ; Tue, 12 May 2026 07:07:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20251104.gappssmtp.com; s=20251104; t=1778594834; x=1779199634; 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=vEuT8mU5zwj23z5tjg7/0cCroKq2YLlwPoM85Ob95Js=; b=a1AKBlkb+zbjKzr07CAkgRAWlSxhhCfxvhMVUJtl54NRRR3SzBFMSHkFXqxZ0CvFH0 iykelWeVpz5jqx2sWOMkX1zpUKUqmUlJumpneggyJocP76N5ObtIS9wLFaMZLQnSKl8k zJmnek8cMvX7V0a3vUCT5uJvmpMYaN59HhNaRy7kNyoV0MPtM7nUss9WAw10rjZrmLRE 3r0PYgcK320mAkTBC9fQHgzs+zijdiSji4Zus1qJNscR2/NJKgnQEEkQ29WeXLoVUpeC ufbYJLvUIrXy+hXWSW8pOTc3Ss5xLcJLKC3A+e6iw3AMoIesVhAWwOgTbTmE/vMR97gq anSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778594834; x=1779199634; 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=vEuT8mU5zwj23z5tjg7/0cCroKq2YLlwPoM85Ob95Js=; b=XyAWRRegzfGfVPK2g9AvaI23FCcja2gVynke60nWFy+7uTtI0hw/1KclfOuB9BOrcn RWTI/dN5bIShcbGXoFI41TUceRhZlWhWtgo3mwb/+p+ZIVS9MDqpsR9CuH5LhTMd6TWM GSkRKfWGoOLqwFfT7u1A8zWyZsDnVP0mvHClJSwGYivd+RTDm9mycD5yo8xNh6HbkK1L /Jpv919IBCz0Vu89GOUIVV5kfsfMuXAHzrzh+ZPSaWq+uki/LsG0N91cpgD3RjoLe5xV Ws9kEh7JZzPN/2VxObwz/Hd17gnezKNb7RdUpb3bqk7F2ks3beoLP9DYrwLzS5WKa5HB byVg== X-Forwarded-Encrypted: i=1; AFNElJ9GiufJk/DKvKS3TkPhApZH8VGN79PAPdPt80W5YGjoUCu80xKKrStqPhg5t5TlVwPCBylRh8E=@vger.kernel.org X-Gm-Message-State: AOJu0Yxx9zHG6bDcLi8wZgxXlOsFbSW46aenmzP1JI9M/jKIYK/GQ3EG K36N3f+lZBw2euY5GI+Tvuzfa26EFGiDamR9+cnqvkO5s7slkNUlTBa7EJktoQev6mk= X-Gm-Gg: Acq92OHbmuEBPhya/KY6IVejxJPppE6L4hJgbaX/SgMbvm9FF1teqgEUnvxXxmAw8yN f4Fi1CNrnUXd6ilAgFoDOJuPPfDu9gl4unRfnfElombgtKy2BvR0ENoFK8hHN6A+D7vApLdRLru Uq8pEHK2H71yrVhhuySPMgyX3Z51bASPvA85hZXVJ8P1ATMxdKsX7BPxuBeIQgO1e6esucmA6Um ntVwL2zkj1h5sloznR7vePgdC2jBJZjdO8+4SANQwGGQUolCt++VNJPFRkZVTMsJjgvKNQjQLLx bnrHHcRcifH14W6mmIv/eTguQ546mreIG38miQeC0gGX/o5Qa+6O7/yep3OOMSjlVIX+Qib9A7V yz9Oq6BugiMBu7G3k0CvHBHvjBh91rHDzRkRryvxD9k6Ams95WnD/i+yGxVgmryqY9LNl8aZTNI J5LWDYQ6VWEAdLRrLvK8mSFr/ndOBsy4OXHSM= X-Received: by 2002:a05:600c:8115:b0:48a:9540:1a3a with SMTP id 5b1f17b1804b1-48e51e196f9mr466793535e9.8.1778594834461; Tue, 12 May 2026 07:07:14 -0700 (PDT) Received: from FV6GYCPJ69 ([140.209.217.212]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48fc8d19854sm520285e9.1.2026.05.12.07.07.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 May 2026 07:07:13 -0700 (PDT) Date: Tue, 12 May 2026 16:07:10 +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: <3f9215c4-7c84-46d9-ba74-30dabe24db09@nvidia.com> <20260508175213.1952097f@kernel.org> <580a774b-ba9e-4523-b43a-476f75dd5b12@nvidia.com> Precedence: bulk X-Mailing-List: netdev@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: Tue, May 12, 2026 at 03:48:32PM CEST, parav@nvidia.com wrote: > >> From: Jiri Pirko >> Sent: 12 May 2026 02:16 PM >> >> 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. >> >Corner vs common depends on users one talks to. :) >If fw has switchdev(active) as default, and then >And user needs to run switchdev_inactive, it will actually break their switching applications. Can you describe the actutal breakage please? > >So, one needs to invent switchdev_inactive in the FW. > >Jakub's suggestion in this RFC is covering both the scenarios uniformly without above problems. >Single uapi for all the cases, so looks good to me. > >Moreover, do not understand how alternative solves such problems. >i.e. user is unable to configure the fw because driver is not yet loaded/up. See my other reply in this thread. I don't think there is a need to configure anything in FW. If we fix the behaviour in switchdev mode for non-sriov user and change the default, no fw knob needed. What am I missing? > >> >> >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.