Received: by 2002:a05:6a10:6d25:0:0:0:0 with SMTP id gq37csp1954621pxb; Mon, 13 Sep 2021 08:53:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx6ifGNjFiQXlBaS9Zic0ebSeYmb3/1Vgh4iesClqU1X2Tns6aKoV/kTjrKhpIAtrAdxfwg X-Received: by 2002:a05:6e02:1bc5:: with SMTP id x5mr8488082ilv.83.1631548388649; Mon, 13 Sep 2021 08:53:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631548388; cv=none; d=google.com; s=arc-20160816; b=SdpEinnobTyRv5SrwRXPqgH4/VHAtvcLRhBaRbfvmHsGEMK4OnrgAN4CT6To38slA3 PISKvehQUi513DL8Pd5Qfrl1Ps98y11FWZbAeUOw0TD2/yj1wClBfoPA7J/TC8LJ/SEH bfzzOVsYQqXnJOi2f8gpVdbfYaVUKec0NgnXWLhsXt9EmRxuytut1IZo7A0FuBte1/vx 3iIH571s9WmtPQ6jhf7rpamTv8nh7axUOStFVEqX+FS3kWa1xVO4n4BxRgf4s1UnRbUq ETRN70IcRRrJxVSc8SydnWjZz+VB/KUWQTIMYdWBY+PnQQhqfmhHjtz7RS6MVXNxuVSk vN7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :dlp-version:dlp-reaction:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from; bh=3ZRoJOaZISXtDZm6BflgTo1TIQLFM59mJT0CZ6uIQf8=; b=AwVVRc5hhWmt2e4gPx9jlTAwPzUeNW88tipVAOgb6+2/Ixv7qjOIX++5Xm0KOJnt39 zI3NuWPqJOWu6i4RqZ6CxJtBjGm/ME09gnBLmhWIHeKuug8uI23QqGT5m35w/1yMnxmR +xqug82i8AwdmGnClWYimjGP8PNDJqyGBf+71Gm4pCAcCulnaw5MBnMDN8Hgj6xvRXl3 JIPvw+NngEiufsKEJF5GFoR4forlZlID6A2gZr0f4PfQR0BDm+ZNoaIx8QqVH1l2Nuw2 a95/RxFlr+EgU+QA5SVlgh12NR+XwF0Bv0gmr/P2O94WDCzlacxW0hG6hZyz0SjzqVf5 Dh2Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l19si6235177ilc.102.2021.09.13.08.52.57; Mon, 13 Sep 2021 08:53:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344501AbhIMPvo convert rfc822-to-8bit (ORCPT + 99 others); Mon, 13 Sep 2021 11:51:44 -0400 Received: from mga02.intel.com ([134.134.136.20]:23935 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244469AbhIMPvW (ORCPT ); Mon, 13 Sep 2021 11:51:22 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10105"; a="208941499" X-IronPort-AV: E=Sophos;i="5.85,290,1624345200"; d="scan'208";a="208941499" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Sep 2021 08:49:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,290,1624345200"; d="scan'208";a="469496135" Received: from fmsmsx604.amr.corp.intel.com ([10.18.126.84]) by fmsmga007.fm.intel.com with ESMTP; 13 Sep 2021 08:49:44 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Mon, 13 Sep 2021 08:49:44 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Mon, 13 Sep 2021 08:49:43 -0700 Received: from fmsmsx612.amr.corp.intel.com ([10.18.126.92]) by fmsmsx612.amr.corp.intel.com ([10.18.126.92]) with mapi id 15.01.2242.012; Mon, 13 Sep 2021 08:49:43 -0700 From: "Saleem, Shiraz" To: Leon Romanovsky , "Ertman, David M" CC: "davem@davemloft.net" , "kuba@kernel.org" , "yongxin.liu@windriver.com" , "Nguyen, Anthony L" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Brandeburg, Jesse" , "intel-wired-lan@lists.osuosl.org" , "linux-rdma@vger.kernel.org" , "jgg@ziepe.ca" , "Williams, Dan J" , "Singhai, Anjali" , "Parikh, Neerav" , "Samudrala, Sridhar" Subject: RE: [PATCH RESEND net] ice: Correctly deal with PFs that do not support RDMA Thread-Topic: [PATCH RESEND net] ice: Correctly deal with PFs that do not support RDMA Thread-Index: AQHXpcrK/jEhT3UrxEqhAh51dcd/n6udc5YA///U4xA= Date: Mon, 13 Sep 2021 15:49:43 +0000 Message-ID: <4bc2664ac89844a79242339f5e971335@intel.com> References: <20210909151223.572918-1-david.m.ertman@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.5.1.3 x-originating-ip: [10.1.200.100] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Subject: Re: [PATCH RESEND net] ice: Correctly deal with PFs that do not > support RDMA > > On Thu, Sep 09, 2021 at 08:12:23AM -0700, Dave Ertman wrote: > > There are two cases where the current PF does not support RDMA > > functionality. The first is if the NVM loaded on the device is set to > > not support RDMA (common_caps.rdma is false). The second is if the > > kernel bonding driver has included the current PF in an active link > > aggregate. > > > > When the driver has determined that this PF does not support RDMA, > > then auxiliary devices should not be created on the auxiliary bus. > > This part is wrong, auxiliary devices should always be created, in your case it will > be one eth device only without extra irdma device. It is worth considering having an eth aux device/driver but is it a hard-and-fast rule? In this case, the RDMA-capable PCI network device spawns an auxiliary device for RDMA and the core driver is a network driver. > > Your "bug" is that you mixed auxiliary bus devices with "regular" ones and created > eth device not as auxiliary one. This is why you are calling to auxiliary_device_init() > for RDMA only and fallback to non-auxiliary mode. It's a design choice on how you carve out function(s) off your PCI core device to be managed by auxiliary driver(s) and not a bug. Shiraz