Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1786939pxb; Wed, 9 Feb 2022 04:36:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJxrLRGcZdDJa07aDNVBq30/UYlISYr5KdDgTaIrHrf1tXG23fqf8dp+XgiYh2Sgu4l2HpuN X-Received: by 2002:a63:83c8:: with SMTP id h191mr1689737pge.555.1644410199149; Wed, 09 Feb 2022 04:36:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644410199; cv=none; d=google.com; s=arc-20160816; b=Yht6ysxOX4saFKwmbkXX+pLFvhnDX3uG3JPZUZRFe+K4fygeK9fU6adxF+BiWhIbhV I+WmjE3ObVsT8IltWopbHWebbTy33FUTSfOtiji0pllLI/YWWIYkx+L9mWfDBR3icek2 aakB+Ed+o1u6WuEuupMNjmRGzYbhqmo+U9uHiBkvMNiu9gUDRCuP4aJk15cmQ7g3b/tz 3dhI736WBkQGksT8wnBBglmDpkJtYfwd3pV2w3n3opFFMmYpxrcLHVJrt8uDn5EJRrSs i0kZlEyqz1cHbkIM3N4TLkvZTTx5kaVJyYlcQsQNgP7ZSuvwx32ztOn3Saij84UVkKUu wk6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=yQAhSgwnyyclnBQL7DMcC4HS02KL7zaKc/XyFY0DOgo=; b=Qo0H1kFu/uumtL/C5ytkzLX70pKjHYFqCpyaBH0ZNN/FYW3qgyP/TTDKCJu2jAvtNr 96WOqYMSJr0cuCXwnPU/u8mXUniNtqOFkUfpLB2M31cLaiBgNZz+t4uPUwdEdXBrwNVq UxKRKApfNcmDYN8/Rg5U06pR0ssToAuom8BCVjTXjUk5Nes/lTx82U1iGlDyWNxPwOuw SWfWSkCTRUerGj8b9zCAnsIJe85dv/+P6J9+SZwB4h2iIVgzLpXQRjXvHjcdWUGy08wH pIuR9X1Btg0sty68zdbnGJqDsw3n+cuv9whi3+QkUknKyIr2BtVWOGQDiljqFR6MQru5 Oktg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=F2jd30mp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id p14si16756427pgs.876.2022.02.09.04.36.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 04:36:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=F2jd30mp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6B3CEE099850; Wed, 9 Feb 2022 02:23:32 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234664AbiBIFYh (ORCPT + 99 others); Wed, 9 Feb 2022 00:24:37 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:53914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231936AbiBIFXk (ORCPT ); Wed, 9 Feb 2022 00:23:40 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BD2FC0364AD; Tue, 8 Feb 2022 21:23:45 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id E7EDBB81E10; Wed, 9 Feb 2022 05:23:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5760AC340E7; Wed, 9 Feb 2022 05:23:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1644384222; bh=Nhoe3V1CXXUihkcaoPOkIhLxTna/YcloEp90G75JeqA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=F2jd30mp7QkdYFSXATqcBYf8h9GdD1ESTnYlFWJ1WtX0q31BmYxgY9kXLwPuOAdEe 3qcBn+87FuW20I2R9PbQhlJ8OcSG7fXFtQ6kFccvKbF07YM2KKytPXM2HaaHnSN0bg Z/TwKCNC7N5H4ifUfHeznMGEa9pmm7sqdrHj1emqYG2dDmHkVlerPpexU2WU7tNX8/ m6AeeQZEMT5zGPvqFFLH4pHrv4mf13KIr4sqOmaFUvg2dwp31AgOiHJgy/be1xFbHp Fz44tKBkelQJ+GomgSlYwwPv13BmOTE9F8N+Lhy2ENE5pxfavhgYl2rd6KWo4F9ue+ K7GL5UWFj4P+Q== Date: Tue, 8 Feb 2022 21:23:41 -0800 From: Jakub Kicinski To: Moshe Shemesh Cc: "David S. Miller" , Jiri Pirko , Saeed Mahameed , , Subject: Re: [PATCH net-next 0/4] net/mlx5: Introduce devlink param to disable SF aux dev probe Message-ID: <20220208212341.513e04bf@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <1644340446-125084-1-git-send-email-moshe@nvidia.com> References: <1644340446-125084-1-git-send-email-moshe@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 8 Feb 2022 19:14:02 +0200 Moshe Shemesh wrote: > $ devlink dev param set pci/0000:08:00.0 name enable_sfs_aux_devs \ > value false cmode runtime > > Create SF: > $ devlink port add pci/0000:08:00.0 flavour pcisf pfnum 0 sfnum 11 > $ devlink port function set pci/0000:08:00.0/32768 \ > hw_addr 00:00:00:00:00:11 state active > > Now depending on the use case, the user can enable specific auxiliary > device(s). For example: > > $ devlink dev param set auxiliary/mlx5_core.sf.1 \ > name enable_vnet value true cmde driverinit > > Afterwards, user needs to reload the SF in order for the SF to come up > with the specific configuration: > > $ devlink dev reload auxiliary/mlx5_core.sf.1 If the user just wants vnet why not add an API which tells the driver which functionality the user wants when the "port" is "spawned"?