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 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 6FAD4C43381 for ; Sat, 2 Mar 2019 19:49:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3F11220863 for ; Sat, 2 Mar 2019 19:49:45 +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="pI1dVf9S" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726665AbfCBTto (ORCPT ); Sat, 2 Mar 2019 14:49:44 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:40750 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726577AbfCBTtn (ORCPT ); Sat, 2 Mar 2019 14:49:43 -0500 Received: by mail-pg1-f194.google.com with SMTP id u9so603187pgo.7 for ; Sat, 02 Mar 2019 11:49:42 -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=tZHXcDLBu71/qqsRFrcnUfd0ZuxLF6SWO0rGJjvVZvk=; b=pI1dVf9Sy6sVm1t3qrrFBpVBCmzV02XoE58184dpoSMXvL8/pDaROkPCnd4kQ4G8uu 0pR4xNGnx7TNILL2U0qewjTVyTUpw1B8xa9P86K463AHWPX+1MM8uO0WJ9r0CQo/21K9 tMQtwnPpYvRRhLNKKqS3rdpSEDAO0Fk27HuNzHeHl/YWGWVbrKzxNVlyn9yNMpRjuJgr ONqenvBO8L+VZKsabbfsV0SNkn1rJVt0SYGJep+EVIcbgBI9vrScgoMyPhDOyhexGB5s lm2jQW7ylh6zaE1YGHoWfxRJrM1f1xT4yGRUsS2H2DDRxK32m3aBqDm8VheqOILYgkDS 5d5w== 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=tZHXcDLBu71/qqsRFrcnUfd0ZuxLF6SWO0rGJjvVZvk=; b=pFHmKcztDs4vbX1YA48rL+47QQo1Mz+mGXXXu4SpY4j1Q4ttXoMyyaPPGB8SQsUc2G URJAWOahff8UHKTnylddZ7Ot1vhAZmmkI7LPNy41D4Ul09YUCA8C9r2krjOKi9yRznBI 2l4FzKJ0vXrqehDXVVGF433y2gtZfAfWEDJyomczeDyMKdae9as6/z/x9VjystC5V4nQ shZremy0MU9ursGbMw5DmgBVEAgH+6MWvq9p+ElbRYBUjma65dJIkAPZdHnwCMX4nSLZ mFhfqiWtmCiUBifQx1frG2rEgN8zwrc4W5tzFMH38jU1Y4h07PguE533NNxdWXBndV3p aOag== X-Gm-Message-State: APjAAAXdHuY6b7+vbHPOVeXmheXFt15vY00iNXYFzUB3mmcm3pOfV2Ko 1Rheq1Lr8cBgUmv1+OBQxWCTlQ== X-Google-Smtp-Source: APXvYqwbxqaxWiM00GkC4Izmp1RsWfCQFzxMUY9F4Ta+8rQyuuuuDCiyZGKvIb7ZpHExktHTOZOS2Q== X-Received: by 2002:a63:6a47:: with SMTP id f68mr10966573pgc.82.1551556182554; Sat, 02 Mar 2019 11:49:42 -0800 (PST) Received: from cakuba.netronome.com ([2601:646:8e00:1b7a::2]) by smtp.gmail.com with ESMTPSA id q28sm3219794pgl.35.2019.03.02.11.49.42 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 02 Mar 2019 11:49:42 -0800 (PST) Date: Sat, 2 Mar 2019 11:49:39 -0800 From: Jakub Kicinski To: Jiri Pirko Cc: davem@davemloft.net, netdev@vger.kernel.org, oss-drivers@netronome.com Subject: Re: [oss-drivers] Re: [PATCH net-next v2 0/7] devlink: expose PF and VF representors as ports Message-ID: <20190302114939.45d878fc@cakuba.netronome.com> In-Reply-To: <20190302101337.GR2314@nanopsycho> References: <20190301180453.17778-1-jakub.kicinski@netronome.com> <20190302101337.GR2314@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 Sat, 2 Mar 2019 11:13:37 +0100, Jiri Pirko wrote: > >This is the conceptual image of devlink instances: > > > > HOST A || HOST B > > || > > PF A | V | V | V | V || PF B | V | V | V > > |*F |*F |*F |*F ... || |*F |*F |*F > >*port A0 |*port A1 | 0 | 1 | 2 | 3 ||*port B0 |*port B1 | 0 | 1 | 2 > > || > > PCI Express link || PCI Express link > > \ \ \ | | | | | / / / > > \ \ \ | | | | | / / / > > /\ \______\______\'___|___|__________|_______'____/___/___/__ /\ > > || |+PF0s0|+PF0s1 |+VF0|+VF1| ...| |+PF1s0|+PF1s1|+VF0|+VF1| || > > i || |------ ------ ----- ---- ----|--- ------ ------ ---- ----| || i > >d n H || | <<========== | || d n H > >e s O || | ==========>> | || e s O > >v t S || | SR-IOV e-switch | || v t S > >l a T || | <<========== | || l a T > >i n || | ==========>> | || i n > >n c A || | ________ _________ ________ | || n c B > >k e || | |+Phys 0 |+Phys 1 |+Phys 2 | | || k e > > || \---------------------------------------------------------/ || > > \/ | | | \/ > > | | | > > || || > > MAC 0 || MAC 1 || MAC 2 > > || || > > > > '+' marks the devlink ports and port (-representor-) netdevs > > '*' marks host netdevs (actual VF/PF netdev) > > As I wrote in the reply to patch 4, I think we need to figure out if we > want to model all entities that belong under specific devlink > instance/pci address - which I prefer, or we want to have only eswitch > ports there. > > One way or another, I think that it is not good idea to merge this > patchset this late, I would prefer to wait for next net-next opening... > In the meantime we can sync and make this whole thing crystal clear, for > everyone. Makes sense, let's keep talking.