Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2369230pxb; Wed, 9 Feb 2022 17:25:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJxKtOr/grleyIakf01gcQucFpfeWEE+g/dKAG8x6RlSt2sfKCubVrjgrN5js5tsK2F8ueOC X-Received: by 2002:a17:902:c702:: with SMTP id p2mr5071058plp.37.1644456347193; Wed, 09 Feb 2022 17:25:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644456347; cv=none; d=google.com; s=arc-20160816; b=cv32wFV/RHReaReZ6g04eidp4p7Z32y2kDVxl3Ze06aA2zHMGAJQZlw37j/m0QiM82 1np01wWqBZKH7FYheFgVVfshyY4ltOjDmHrdzyPXaJP6D6659aWRhCfFppk3V5SDcFOl 4do0qQQtPQ+O423ujS3kvSK5rVVCZxLtDgc2JUXVJZspgts/HiH2w/1fXYN4zwBHA9l6 aHlZONyauH50ySMyv7+QCruyCsnB9Eo8ZPhd4x7YG7cXcyIV2XJZJcrK3v1738hyJXd5 DdT7WbE/7XBmdaW7NjbzeoLrcQeT4kB1650oGzPxaN042sdGUo4Vos9Xt5ahpobvqQLx 3A0Q== 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=PWmYCiDKXsVCGMYbu8uMv0VIFi1TBEe9r9UHF2tsAuE=; b=e+fdkcPiUOKoIOqzPzrvNwVqCXxQaxzyJBG4/j5xyupnPzoBZeC+X0C8WXWz8yCCOc XzDdvADAgwzq39BfMZHU8LTr5w+7DdacggClSro87sEvbTtfFmU4s+MYhY8IqB9ReKHD ox3nL5QW0OcVChtRU//uaWdzcOcacROUA4dV4LjIXibTst/6zy/TTU+JCzV5Hjh4u96v OhqMEIBvK6F2Rrj89aQsZX61DO5MyBl4Oplhux8tNQzfV/+OKqx32V/ngEciMbCXVN4V /3TSNhfyHZThfqKpjjM1lRrjVL8GW1wOn/2wzA4Q8gA+T8tbBdZA3MlOUkLS6ujkGXuy HSNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dSOgMdAv; 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 q2si17982047pfk.88.2022.02.09.17.25.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 17:25:47 -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=dSOgMdAv; 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 6D1F6205E8; Wed, 9 Feb 2022 17:25:45 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232082AbiBJBZh (ORCPT + 99 others); Wed, 9 Feb 2022 20:25:37 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:50924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232057AbiBJBZ2 (ORCPT ); Wed, 9 Feb 2022 20:25:28 -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 50FB75598; Wed, 9 Feb 2022 17:25:30 -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 DD21EB823BB; Thu, 10 Feb 2022 01:25:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 276E9C340E7; Thu, 10 Feb 2022 01:25:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1644456327; bh=q1j/8X8KRoaMux0MR33EKmu69UKx9HSvfrHlB087F2Y=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=dSOgMdAvTyqsqgyfjJafaoZDP9KQqRA12znksjSjfUS65ZvWAeU5jZLE44U3J+1Te MblFTGGEnsucHWyXVUgdr+CpwrmS2RkEGHQn1zqk+rYzT1kzBDhkWXfKH4bcty4NF+ AnSaHC9mSJ1XsDOYHyxifkbduWYMtOqU+/1ACoSa3/9Hz/5mjA2r4OqEdQLWtvNDn7 u5a29BYyu2kAD8e7D9Kvd3BJJ556KnEQX8IYeAk/BKLebT2sZBhScfw1qznLrCjVNV PcCOJ//q4w8XmVdIJS+WtIYh0t78DmP/C2S6oouNqEmN0eFrKNifHdcOlZq+LiltdU 6u6/GoJJ1W4tQ== Date: Wed, 9 Feb 2022 17:25:25 -0800 From: Jakub Kicinski To: Jiri Pirko , Moshe Shemesh Cc: "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: <20220209172525.19977e8c@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: 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-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 Wed, 9 Feb 2022 09:39:54 +0200 Moshe Shemesh wrote: > Well we don't have the SFs at that stage, how can we tell which SF will > use vnet and which SF will use eth ? On Wed, 9 Feb 2022 10:57:21 +0100 Jiri Pirko wrote: > 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. It is a little confusing, so I may well be misunderstanding but the cover letter says: $ devlink dev param set pci/0000:08:00.0 name enable_sfs_aux_devs \ value false cmode runtime $ devlink port add pci/0000:08:00.0 flavour pcisf pfnum 0 sfnum 11 So both of these run on the same side, no? What I meant is make the former part of the latter: $ devlink port add pci/0000:08:00.0 flavour pcisf pfnum 0 sfnum 11 noprobe Maybe worth clarifying - pci/0000:08:00.0 is the eswitch side and auxiliary/mlx5_core.sf.1 is the... "customer" side, correct?