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=-1.0 required=3.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS, URIBL_BLOCKED autolearn=ham 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 94B7BC43381 for ; Wed, 27 Feb 2019 17:23:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5F3322183F for ; Wed, 27 Feb 2019 17:23:34 +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="BY9UatSK" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728751AbfB0RXd (ORCPT ); Wed, 27 Feb 2019 12:23:33 -0500 Received: from mail-qt1-f194.google.com ([209.85.160.194]:36476 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726223AbfB0RXc (ORCPT ); Wed, 27 Feb 2019 12:23:32 -0500 Received: by mail-qt1-f194.google.com with SMTP id p25so20138470qtb.3 for ; Wed, 27 Feb 2019 09:23:32 -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=HlgPgXgHBdXHr1+fFvpppG1hE5FsLdz+Th3q/PDJ1ZM=; b=BY9UatSKbSC0DRZY0XASnn4KZCY4iV5wB2fp9Qvm3Mc34gFIf/KO03yqMPVYTDzbqL 21ZujZvkn17+jDkGk7qANRIaq425pFtsPaT4kXq3kHdTs/e6OXDpn8vV3xLj6JU09TCi fgSs4EBRg1L+sE7oKjVviCGdguKyFQURf0oDuxNAEfIKyxbozUBsC4+2rOQOrureo2Mi pbx7xXJ6UfXJF3CTmHkJLDZFLtokIkj87GanC+QD/ctz8Vxw1wysz+gYdK5BaWsCnoVK J3cARUCA6eobBMPhdAvJo29mefQWQYfHz7yvqgsNe6GFS415XdHyC/1P1Nx8ysMAaPcm 4Srw== 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=HlgPgXgHBdXHr1+fFvpppG1hE5FsLdz+Th3q/PDJ1ZM=; b=Xmz0AxQArBXtsBNG0jeKuFSSOlbv1DKPhdolqMllU6Z87WcEzwFM8kcvsDoXa2fkHu mao010mjPvNVR+0F1A9kUTMscYWyHccuvsvzqleE4DA5JxQ7PQU/5+XZd3Ekz9lxIjap 4qv+LYdCpqW0EijaTj4XcmYfHwCD9RRJEQbynPjvX3/yv4mlBORuNyMg1S6oIVaZxbce bNwz0mdVO68ZNeRkv8qLIZtYcBD+bBjcDQT0Knf8ZCTq5ZAGym1BpawFfbUIyhd4WewR hUR2Oy1pOyOlGEKWiWZM91uxYt6PGZfWx9sk8wV8BF77e5mHlF3ItufQXfJc1hevKfvZ jobA== X-Gm-Message-State: AHQUAuYvHUh7XHf+aLltR+jv7xbmAMKRVz00vqISZfTb8iMaH5J41ztl uyrRwx6HvRrS4lZ6FQ5cnjxwoQ== X-Google-Smtp-Source: APXvYqw48dyk5ZFY88IECLjG/nv4yEImdGUDzTEWXUMDdDK3QqoOtnp7eNB3cS4K48a07iDk5up6+Q== X-Received: by 2002:ac8:1ba9:: with SMTP id z38mr2594934qtj.3.1551288211770; Wed, 27 Feb 2019 09:23:31 -0800 (PST) Received: from cakuba.netronome.com ([66.60.152.14]) by smtp.gmail.com with ESMTPSA id w20sm8268136qki.35.2019.02.27.09.23.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 27 Feb 2019 09:23:31 -0800 (PST) Date: Wed, 27 Feb 2019 09:23:26 -0800 From: Jakub Kicinski To: Jiri Pirko Cc: davem@davemloft.net, oss-drivers@netronome.com, netdev@vger.kernel.org Subject: Re: [PATCH net-next 2/8] devlink: add PF and VF port flavours Message-ID: <20190227092326.5abf417b@cakuba.netronome.com> In-Reply-To: <20190227124135.GB10571@nanopsycho> References: <20190226182436.23811-1-jakub.kicinski@netronome.com> <20190226182436.23811-3-jakub.kicinski@netronome.com> <20190227122327.GA10571@nanopsycho> <20190227124135.GB10571@nanopsycho> Organization: Netronome Systems, Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Wed, 27 Feb 2019 13:41:35 +0100, Jiri Pirko wrote: > Wed, Feb 27, 2019 at 01:23:27PM CET, jiri@resnulli.us wrote: > >Tue, Feb 26, 2019 at 07:24:30PM CET, jakub.kicinski@netronome.com wrote: > >>Current port flavours cover simple switches and DSA. Add PF > >>and VF flavours to cover "switchdev" SR-IOV NICs. > >> > >>Example devlink user space output: > >> > >>$ devlink port > >>pci/0000:82:00.0/0: type eth netdev p4p1 flavour physical > >>pci/0000:82:00.0/10000: type eth netdev eth0 flavour pcie_pf pf 0 > >>pci/0000:82:00.0/10001: type eth netdev eth1 flavour pcie_vf pf 0 vf 0 > >>pci/0000:82:00.0/10002: type eth netdev eth2 flavour pcie_vf pf 0 vf 1 > > > >Wait a second, howcome pf and vfs have the same PCI address? > > Oh, I think you have these as eswitch port representors. Confusing... FWIW I don't like the word representor, its a port. We don't call physical ports "representors" even though from ASIC's point of view they are exactly the same.