Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp74689imi; Wed, 20 Jul 2022 17:28:33 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vrkFprbooBqhLLS/Vl8+mexQUu4IwprgJvhL3JKi1ZvmREyp4TtKjEb5am4pKTmWVtbGGT X-Received: by 2002:a05:6402:1f01:b0:43a:239e:e65a with SMTP id b1-20020a0564021f0100b0043a239ee65amr53923040edb.428.1658363313296; Wed, 20 Jul 2022 17:28:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658363313; cv=none; d=google.com; s=arc-20160816; b=a/KwUGDJyojOJx6bwGDQuJMByqcgTzWoDsnfoJWWtRSCsCIgxmfqPufQe9UDR371Gu 4HKR5rjjE5Z+RnZupczWnnWYbJ/SAq3NcPi3GmkoXCN4/IXMH2myE8kvoFk39Lb0EOYb E5qm08fdD3oxVxUxzMv0gJ6+BHmxTXgw3qO+Ln8QKXXH9FUnTdfAkI3TfcXfT086jkV1 57MgO08DRsVhGnz5sXwziBnlB9sEm2iibINcDXFbVh9u+4u9rVcZNKEc3M9U1n6HYxnD J5uKENmXXpNqEljcTtmP48pOnBAphdvNYKPBuqsutaYEfxGk8LXEtHO0qHzsRNOQcAL1 A9Yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=W0m+zaV/t9IfMCsWddU/BD/INu7/IDz+95VLsqfyLlk=; b=OG4zCtBBm5FCPe1MvprS02JmiaGxspcqNALe/M+4+c6EKjX5aILgPul8/m6QkFkSdJ +Tdb6rqkF0kuUsOpcSZEIP0IVUCoSSPfTmJAmla63Biun/FQClEwFWvwJrzmptbyEdXX EjmsES9GgyQwQzDRIXPYRkCASBZzeLJPE7IPc4/4xGPDK2T6mzuFeZNCIl2HtqmzQybY rlwkIYA0olnwuxuvmpLhkNTOxK7zIivuiQEToYrfCo3+/kOp6laHVfxRGG5SniY9tk30 p50ZwInb/CHGDChuAWOuboMZZ9+hgg90bboz4YBSC3RN1l8MmfEHKJO/ASQWFmnBby9g NoSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=U3yy46iz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x2-20020aa7d382000000b0043565c5a2fbsi564403edq.89.2022.07.20.17.28.08; Wed, 20 Jul 2022 17:28:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=U3yy46iz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230106AbiGTXmO (ORCPT + 99 others); Wed, 20 Jul 2022 19:42:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229508AbiGTXmM (ORCPT ); Wed, 20 Jul 2022 19:42:12 -0400 Received: from mail-qk1-x732.google.com (mail-qk1-x732.google.com [IPv6:2607:f8b0:4864:20::732]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52C1B474CF for ; Wed, 20 Jul 2022 16:42:11 -0700 (PDT) Received: by mail-qk1-x732.google.com with SMTP id b25so170366qka.11 for ; Wed, 20 Jul 2022 16:42:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=W0m+zaV/t9IfMCsWddU/BD/INu7/IDz+95VLsqfyLlk=; b=U3yy46ize2deAZrpfJnMv8YMz8IGVBTnhJcNPjIo6TTb4pcJ+2Rf0HGhY3BbVcCoWV Fr6INq63FCKPdfGdT5sCcLQZ66CU1vzCoHoPBI0mRx57jWPTUrS0g23L/KjiSFAwgK+H GO1ZJiWGPLaOR8bFzBjThFgxzhauTq5H8Ad5+6uwjMjSl/nfzhtcdI3wIRqNptpEJG+U jwSMlDrGPttQJtFu4an9vV+ShopsjhzcaZ5xQTRm0xyxBBGA30nLu3urNMzTKaoyWP2f UTSIu+6q3QG1VRi/P/fHe3ypCskf/KZ6FoqFqMNWVUl/YO7cyrklzl1QWXowrdWg5hgg DvIA== 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=W0m+zaV/t9IfMCsWddU/BD/INu7/IDz+95VLsqfyLlk=; b=fnAXVXlI0W/6zNav0GqFD8sPzzqkKl9jx/Pzy3OmyQueLzs5K4pVqWrky0E3z+ICCD lTyC3qWeUC0Beys3PutI1D+0CJQvRwQvrLlr0YVqRWufFR46QVwn5f0oS/UKTcqP7U00 TmawPKdRQGT69w4kJ3M/kXkaQwQydwPDGP7AClLI+5jsO/mNliKLCTlwuGq1YH/jt1iY QFFPI66tHSzJ+hnUJTRCWnr/HTGtbXykkDyGPGrnohkKiIVS4eLCFJebO3H4TQb8yY/F kr05O3seGpfXKiTXgOGc+ebtnSaQ5KjyMJNBjNbr7Jv3E41D55PjS4BK8AyhXdmImfF9 KWQg== X-Gm-Message-State: AJIora8/1NQ9h31uYhwD2LdgwyywvxkoDCbgMNCe8J2jJxJ/uT707KzD 7xerMLc8+LkjBKyNfaxaX+5mQA== X-Received: by 2002:a37:555:0:b0:6b5:dace:f589 with SMTP id 82-20020a370555000000b006b5dacef589mr15076898qkf.444.1658360530482; Wed, 20 Jul 2022 16:42:10 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-142-162-113-129.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.162.113.129]) by smtp.gmail.com with ESMTPSA id z8-20020ac84308000000b0031ee1f0c420sm379908qtm.10.2022.07.20.16.42.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Jul 2022 16:42:09 -0700 (PDT) Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1oEJKT-001hih-C9; Wed, 20 Jul 2022 20:42:09 -0300 Date: Wed, 20 Jul 2022 20:42:09 -0300 From: Jason Gunthorpe To: Long Li Cc: Dexuan Cui , KY Srinivasan , Haiyang Zhang , Stephen Hemminger , Wei Liu , "David S. Miller" , Jakub Kicinski , Paolo Abeni , Leon Romanovsky , "edumazet@google.com" , "shiraz.saleem@intel.com" , Ajay Sharma , "linux-hyperv@vger.kernel.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-rdma@vger.kernel.org" Subject: Re: [Patch v4 03/12] net: mana: Handle vport sharing between devices Message-ID: <20220720234209.GP5049@ziepe.ca> References: <1655345240-26411-1-git-send-email-longli@linuxonhyperv.com> <1655345240-26411-4-git-send-email-longli@linuxonhyperv.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 Tue, Jul 12, 2022 at 06:48:09PM +0000, Long Li wrote: > > > @@ -563,9 +581,19 @@ static int mana_cfg_vport(struct > > > mana_port_context *apc, u32 protection_dom_id, > > > > > > apc->tx_shortform_allowed = resp.short_form_allowed; > > > apc->tx_vp_offset = resp.tx_vport_offset; > > > + > > > + netdev_info(apc->ndev, "Configured vPort %llu PD %u DB %u\n", > > > + apc->port_handle, protection_dom_id, doorbell_pg_id); > > Should this be netdev_dbg()? > > The log buffer can be flooded if there are many vPorts per VF PCI device and > > there are a lot of VFs. > > The reason netdev_info () is used is that this message is important > for troubleshooting initial setup issues with Ethernet driver. We > rely on user to get this configured right to share the same hardware > port between Ethernet and RDMA driver. As far as I know, there is no > easy way for a driver to "take over" an exclusive hardware resource > from another driver. This seems like a really strange statement. Exactly how does all of this work? Jason