From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C2E0CC433FE for ; Thu, 10 Feb 2022 07:02:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235800AbiBJHCQ (ORCPT ); Thu, 10 Feb 2022 02:02:16 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:60518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235488AbiBJHCP (ORCPT ); Thu, 10 Feb 2022 02:02:15 -0500 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CCD2FC0 for ; Wed, 9 Feb 2022 23:02:15 -0800 (PST) Received: by mail-ed1-x532.google.com with SMTP id f17so9332680edd.2 for ; Wed, 09 Feb 2022 23:02:15 -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=8W8qNsQkPekx4+jBc/rCyADx6fiSCeEy7qv0YDJEz88=; b=4o+JMS3rdmjt+g1J3QFITq+TZSTKGRuxLoxc0CjtqNWBBi4qithMjTsOBKg26gNcDc VTLnb39R8b3NxFmtS0/6w4k4uhe8C/5V36bSVd+Jwd4iZ6RyTmWnzSepJHTdglHcufaA 9JRR8EYuWCLQpM03Y7LdHgdxTEd2sQ1sfftV/blEloM0+Ka/IC8DQyLKh7Z32EG7yf/N vS22MFH8o7GdDetXK5vn++ksGZ0yiKeoQ2xBbM8u4f+XIfMxoL8znHIirXD4LGwNLGlo idaClRwVE+S0XQZwLZnGARFuGg/xdG8tWbkX3P9w2IHC1O31ll8jwoBf6D6ObzEk8NiN eSGQ== 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=8W8qNsQkPekx4+jBc/rCyADx6fiSCeEy7qv0YDJEz88=; b=o9QIZRzCHEiQvusbtlm2uagULQc63uh9kbRWJJcSwBbvDrSlT/bJopvIGzpTMUp/jq R/O6Kg83wqaSt5puP2nCX8oeopsQbZ70XyZedkUNKzuOF+lfayXgtUOKbUt8bjMHIoTE q4oDdWzrdVUfjuhrzyrNi3Xcwli+EkNVva+orqgoaVhDdZ+3zolvFxvztcyP1eHcESQD xjqAWuz3xWrE47XXV7Q0jLcb3ftRxpSIPtKWUEbab/uCak0OFXkImESecutMs41dkkng 6RXb8p4SgRH674x8Q1NyCVq1RogxnMgfOrTZ8SnLouHlTmsYMCYMgablH8jqE7lvZ+L6 2iQQ== X-Gm-Message-State: AOAM530+x50pepo6xEPYhJaBJGFP5NDy90am4Pi4byNcfhPOzYaA4Kyf r4Ocgqq1u2h/j20hcBzBSNXTtg== X-Google-Smtp-Source: ABdhPJxlDHHK73hDkQqMYWRIurlz7AdZtYqkU6ZeihEyFDPU6Q3mF2n+XsBeID30velI8V06BJDCuQ== X-Received: by 2002:a50:ccd3:: with SMTP id b19mr6831351edj.253.1644476534054; Wed, 09 Feb 2022 23:02:14 -0800 (PST) Received: from localhost (host-213-179-129-39.customer.m-online.net. [213.179.129.39]) by smtp.gmail.com with ESMTPSA id b7sm9215079edv.58.2022.02.09.23.02.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 23:02:13 -0800 (PST) Date: Thu, 10 Feb 2022 08:02:12 +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> <20220209172525.19977e8c@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220209172525.19977e8c@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thu, Feb 10, 2022 at 02:25:25AM CET, kuba@kernel.org wrote: >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 I see. So it would not be "global policy" but per-instance option during creation. That makes sense. I wonder if the HW is capable of such flow, Moshe, Saeed? > > >Maybe worth clarifying - pci/0000:08:00.0 is the eswitch side and >auxiliary/mlx5_core.sf.1 is the... "customer" side, correct? Yep.