Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1850804pxb; Wed, 9 Feb 2022 05:59:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJw3L0dUTGGNj296LPbwhttr2WV6Q8pTTAO++nAY/aGbg4NaOH1+hC46qw7NV/WgLli1J9lD X-Received: by 2002:a63:171a:: with SMTP id x26mr1964784pgl.447.1644415148595; Wed, 09 Feb 2022 05:59:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644415148; cv=none; d=google.com; s=arc-20160816; b=TUm+l6RCQ19B+ffyIfH07cCKwsQ+ImaLz+d+fcE8TUC81xTdLoIKNx7TGEys0DWhia EOzWiaQQau/sG73CMyPybWMd6KwkttmllMwhRJZZk8xw8n54HVy2QrJYJuuomWWx6r/R Ki1bWiAA/d+qXbGcrag378Y7h3hGbMlEQ6PfcQb0l4l417AsRqRev3A7dPNfGSkY3n+9 jGDpjpqCOw343FesaoB9Xze470KeS1kGfSIcMuqn7T25pYBaOVI0A6f+35Y6hYCzVA/9 1mvR/ISKpVbgiOTLU4N79o3bJegzA/FYdUAGbLxkzDwefyIK2kt4iKW7P+2TAiBlUiDW tXfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=/D04XVPUs/5HR5eK+SG7yKk26D53w7R1O65LyTbVnhA=; b=b6zPqlBUVS7GIrd+z76N2xE39ioq60q14g2NURFUPGt71Eaw7PqrkItEjYl9gGKcyJ nZ9CyubGYuWeo/CNH8aJ1IyHwR1ceg6JjNS14rN9d5ZGvHmQgjzWYYihTprKrf/REkjd iuJfwgCDUMbDA04oLl44CRAnutYcsds7KWrKBIxUR+Zgg1SR6mBZvJ52F6F/AqVDqhXu Hh2Df7RwISDJ6wNJXpoSbn+kq7KD9sdG7HlsReDVzenicNRy/ok7Dxoet8dtFViN2UNN ksGdTU8dlXi5zUruaAnZv1yqRS1uJ4+9VzbUYsNUgDdOp16a1lKhe9d3ZzTT/INSZvUz nvqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@resnulli-us.20210112.gappssmtp.com header.s=20210112 header.b=qwScALET; 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 Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id o3si14159991pll.580.2022.02.09.05.59.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 05:59:08 -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=@resnulli-us.20210112.gappssmtp.com header.s=20210112 header.b=qwScALET; 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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id ED92FE181A85; Wed, 9 Feb 2022 02:37:44 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234102AbiBIJ7X (ORCPT + 99 others); Wed, 9 Feb 2022 04:59:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229534AbiBIJ7H (ORCPT ); Wed, 9 Feb 2022 04:59:07 -0500 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D10AE0E08AF for ; Wed, 9 Feb 2022 01:58:57 -0800 (PST) Received: by mail-ed1-x534.google.com with SMTP id cz16so3884640edb.8 for ; Wed, 09 Feb 2022 01:58:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=/D04XVPUs/5HR5eK+SG7yKk26D53w7R1O65LyTbVnhA=; b=qwScALETKFRV/s20Zvi2Sxab1LpermV3ZwMsBGBkqcgv7y8TjBOxstj817Px9r3ri6 3znyzCwnHMgIP6UGdgAX0GzL1f8Ea79uEQrh+/z2uncx6cBfJGfBStkpnMWWNQz4mu1P LHgCllgSzz1rTaV8NQKQ+IrIb+eoB9cFSUww2S4R42/EknI436wjLv7FJpaxJV6CCXBc Q/7gg3bizeZCudmAmggc5pr51wJjT1FBOrhebmwZJzl2QvBSE1h5l+lCY+jCR3DZWO7H 361AWTSrr9qklT6XOLqofWXljxL7Yl/M2PxVDltH4VayKtPS7cugApZilp9+f21kljSn GzMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=/D04XVPUs/5HR5eK+SG7yKk26D53w7R1O65LyTbVnhA=; b=mf+qz1QQ8FsVBVE1Xzu3eptoFmC+g765qB9CJzmOmbKu1pXbvUlRdhKNy7yaWsE0BP Hn9DTYkvFyabWagxR2ywoHLB7jDCYPBLJf804yHxHeFmUHg9Kbjj89ZntQEGrVxe9Mkp FutS03oIquhdmP2rBDspasmwoYSVYrmgV1ihs5swalXVo2R0FwFKd2FQ3zAxvoXmv0wN e7c8XDPHqjbhy+wRw294Yj0FKAbwMA8wfhaXvAB67xhoDvHhh5znGffhnF5QPNPRZC1j BEgcFbdvD534sVNAD7Tfi7iHEzehiFL5kHIxz2SVipN6WH2z+G5rq3LcKffNLPopu0Ox ufTQ== X-Gm-Message-State: AOAM533jstuEqZy0cytUvWa1Q0Up8QUWNQYaATfoMs11RIltN+vP0VrU dMymWKNdn2inhi9C8eY5Z71QYhOhxYETGm/mfiE= X-Received: by 2002:aa7:c746:: with SMTP id c6mr1549045eds.271.1644400643017; Wed, 09 Feb 2022 01:57:23 -0800 (PST) Received: from localhost ([85.163.43.78]) by smtp.gmail.com with ESMTPSA id i24sm1748263edt.86.2022.02.09.01.57.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 01:57:22 -0800 (PST) Date: Wed, 9 Feb 2022 10:57:21 +0100 From: Jiri Pirko To: Jakub Kicinski Cc: Moshe Shemesh , "David S. Miller" , Jiri Pirko , Saeed Mahameed , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next 0/4] net/mlx5: Introduce devlink param to disable SF aux dev probe Message-ID: References: <1644340446-125084-1-git-send-email-moshe@nvidia.com> <20220208212341.513e04bf@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220208212341.513e04bf@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Wed, Feb 09, 2022 at 06:23:41AM CET, kuba@kernel.org wrote: >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"? It's a different user. One works with the eswitch and creates the port function. The other one takes the created instance and works with it. Note that it may be on a different host.