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 X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 51EBFFC6198 for ; Fri, 8 Nov 2019 21:51:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 26F57215EA for ; Fri, 8 Nov 2019 21:51:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=netronome-com.20150623.gappssmtp.com header.i=@netronome-com.20150623.gappssmtp.com header.b="v6yGJOyW" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727210AbfKHVvT (ORCPT ); Fri, 8 Nov 2019 16:51:19 -0500 Received: from mail-lf1-f66.google.com ([209.85.167.66]:41911 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726227AbfKHVvT (ORCPT ); Fri, 8 Nov 2019 16:51:19 -0500 Received: by mail-lf1-f66.google.com with SMTP id j14so5558571lfb.8 for ; Fri, 08 Nov 2019 13:51:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netronome-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :organization:mime-version:content-transfer-encoding; bh=pjTRr0Ec/7D/SD2DSIp1WRI4YQ8Q1c/X0d5DLs4SpQQ=; b=v6yGJOyWPww9FgRnAS7dK1eYVTIpQwh1HxWR9ZpjHlvvzMESt3N7xDyV0DPkVDnhkS bpMEwIpCDyTZufBBpD6LwvZGh7qzhBcc+GTQ8z79Fv2lFXXms2fdeNNpRk8SJUdpZJIs 4ehf9AOXtrVtx+UjUmcEWUBTpw4jd7MnaSHyFun6dy17XY0gPBeLbi3x2LcFlc8tuWjl 0gfBCk7jVnmj5iHWukHJz2gYp1Z7TWj+aMZMI4vO/UNms2/qdbI0FFMsf5drA3NUOqMi IPXMjJIz9R80zI6gI1Dwn2THe5oo/MIVXZ+WNcQirrhYVrg+VQ9ZIXxwVQWHyhQ4bt1A wEVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:organization:mime-version:content-transfer-encoding; bh=pjTRr0Ec/7D/SD2DSIp1WRI4YQ8Q1c/X0d5DLs4SpQQ=; b=DW1ADTUo7vacT9vcYJfqlAPut7LGMtxOUDTooQESjb/xjltHSdfUfDdu6io9CMQTph G+PqMHpIAdc2rm/JSaPP+1qWCXU2S8z9UTEd4mrxcgkCwHpxIWrTUmaP7n7btz+mAwFw sQTiG+hM3iZgGPFsBi/XywyeMFpzXSJInN/2ujZsyfv7eQx73hE+7Pn2gSHdvOxo72A5 sG1K2WJbpTjs1P/UwC5yapAK4TzxVsBuhWpZRlwWnTR21w2IzLsM4Dj9hDRQjugVgpL4 q3eYY+8RZA+Sj5DyBcBtzXvAnu9NuyOZP+HyQforBE1r6qAdKHjFqb8iKRkwd/MO1OFO bxqA== X-Gm-Message-State: APjAAAVPgY4vvc8rrAGS6waXdx5Q5zxGNwUPJB9DpN0JHwcwNxODMp1r YkAIdyxDmcVRy0JWdmd2Db3jgevrlXA= X-Google-Smtp-Source: APXvYqzBVlVp10LBUGfJPwXg0YAxcN7fNdNGF+Hc6mgKysDtZiRWF0SB3Lc7WXQXsBSzLrEHy3XXqw== X-Received: by 2002:a19:1ce:: with SMTP id 197mr8207726lfb.16.1573249877377; Fri, 08 Nov 2019 13:51:17 -0800 (PST) Received: from cakuba ([66.60.152.14]) by smtp.gmail.com with ESMTPSA id h16sm3791325ljb.10.2019.11.08.13.51.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Nov 2019 13:51:17 -0800 (PST) Date: Fri, 8 Nov 2019 13:51:09 -0800 From: Jakub Kicinski To: Jiri Pirko Cc: Parav Pandit , alex.williamson@redhat.com, davem@davemloft.net, kvm@vger.kernel.org, netdev@vger.kernel.org, saeedm@mellanox.com, kwankhede@nvidia.com, leon@kernel.org, cohuck@redhat.com, jiri@mellanox.com, linux-rdma@vger.kernel.org, Or Gerlitz Subject: Re: [PATCH net-next 00/19] Mellanox, mlx5 sub function support Message-ID: <20191108135109.0c833847@cakuba> In-Reply-To: <20191108213952.GZ6990@nanopsycho> References: <20191107160448.20962-1-parav@mellanox.com> <20191107153234.0d735c1f@cakuba.netronome.com> <20191108121233.GJ6990@nanopsycho> <20191108110640.225b2724@cakuba> <20191108194118.GY6990@nanopsycho> <20191108132120.510d8b87@cakuba> <20191108213952.GZ6990@nanopsycho> Organization: Netronome Systems, Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On Fri, 8 Nov 2019 22:39:52 +0100, Jiri Pirko wrote: > >> Please let me understand how your device is different. > >> Originally Parav didn't want to have mlx5 subfunctions as mdev. He > >> wanted to have them tight to the same pci device as the pf. No > >> difference from what you describe you want. However while we thought > >> about how to fit things in, how to handle na phys_port_name, how to see > >> things in sysfs we came up with an idea of a dedicated bus. > > > >The difference is that there is naturally a main device and subslices > >with this new mlx5 code. In mlx4 or nfp all ports are equal and > >statically allocated when FW initializes based on port breakout. > > Ah, I see. I was missing the static part in nfp. Now I understand. It is > just an another "pf", but not real pf in the pci terminology, right? Ack, due to (real and perceived) HW limitations what should have been separate PFs got squished into a single big one. Biggest NFP chip has an insane (for a NIC) number Ethernet ports.