Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp894999pxb; Thu, 9 Sep 2021 14:54:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIErupvHyoiAwfIlkJZN+1J7ht2Jdt3OC4ywl/hvePjdPhWwaNbIFY4WXT/UPVEkjk7ezG X-Received: by 2002:a17:907:9604:: with SMTP id gb4mr5824332ejc.142.1631224449429; Thu, 09 Sep 2021 14:54:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631224449; cv=none; d=google.com; s=arc-20160816; b=PxpEvT7C46Ap3+BxOY1CFriACzm1U9RQIeqOMra++KYSQCt+OObsGb+eo80sJTUFVO FWYL4phHyEVyUTKGdsqBuojwme7HMAVOoRwoqsZg7Ql88PJPSiUmIj55/gh+dAFQsUT0 h/euzITFJAEZzYOhM3fc1nGRX8U7UOALwcDOF4SGUpqL7AdJL2Qpc3q+QLIgOA/Jl46D XJdHaz0HZuh8XjqYysDbAEvCKDlMEYZ3OoOH8eEjGp0My10ML4X2fhunlhR98VSvPUz3 BXhJFm8BW2OFvudLQ8WhwqbRhnCJz7LsY+83qXPedHXBd2Krfi7av+zRlc4tOnik1lhu +24g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=50WiW4Nfrbgbwqcj8xEAktPSbqUoR+9ZXvPPiAIeu2s=; b=W4C/iLeYqVNtuGJxcYWfQy52tZmytSzvaJ5Xa422msehbZ288HXX57mWVXePlY4qXP FB8YgkgH8omvAK43QjTpeJ5m23OHLRrtCLLbn4Tzog/F61FhpZ49RpHcDeDu3yNB6mjY 2bRmS6g6TYlAH9z8HoCT1Fr/K4Xr3iVbNk0CrH1uvzeNB9AqVVl63i3FG5EKqEfNYLNR aMqzUqwbLNN4hBawhXXNB3Wjg1/m17D1YzxHaZjSRmSE2EQ81XBkjclO+R/qDx896rAm kghlsN6ZEGfYeZDyy3Pg4QfIGOe8iQzStTyKY8CWUvuYQLaqALvAmV8VdefCVPCMxcCS HhDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=s3gSANa5; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h5si2843495ejj.144.2021.09.09.14.53.32; Thu, 09 Sep 2021 14:54:09 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=s3gSANa5; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235080AbhIIVtp (ORCPT + 99 others); Thu, 9 Sep 2021 17:49:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:57236 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232371AbhIIVtp (ORCPT ); Thu, 9 Sep 2021 17:49:45 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id BB10B61131; Thu, 9 Sep 2021 21:48:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631224115; bh=zgld0ENlJlel6GXYsTEi10TI+j+hHy9GAC9tRdTbpmU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=s3gSANa5PaatYRdPl+UZjLCJtfDR2TSj6pSaJjtIlpqFpTh7mRBJ0nFYPxnZAZa/E yQgCacQlbxweBMAFDhnqZGG9shtUowlzinoR/oZ6TYrlzs6BuKAQVeJJVINzvnWqbl ElhkbozbzU4QKe1dXqRQtiUym0TDJD/2Y1vDx7yQlQeVJD+HOVNYsuXlZKi6rSFPLk YigZKx02u/D8BEaU0qB9hyx5JG4xn9ZvaIg5+fxQG3NbqBwtMUKb4gRKfUY2rE+EXk rQwInkOSDr6KsxM5E3kSfPAy0gPKuFSL516hQ6wVZslpnln6Qv6PwkJ0YNPhILyye4 KJeCyvCrW4hjw== Date: Thu, 9 Sep 2021 14:48:33 -0700 From: Jakub Kicinski To: Dave Ertman Cc: davem@davemloft.net, yongxin.liu@windriver.com, shiraz.saleem@intel.com, anthony.l.nguyen@intel.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, jesse.brandeburg@intel.com, intel-wired-lan@lists.osuosl.org Subject: Re: [PATCH net] ice: Correctly deal with PFs that do not support RDMA Message-ID: <20210909144833.2ca0069d@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20210909085612.570229-1-david.m.ertman@intel.com> References: <20210909085612.570229-1-david.m.ertman@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 9 Sep 2021 01:56:12 -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. Without > a device on the auxiliary bus, even if the irdma driver is present, there > will be no RDMA activity attempted on this PF. > > Currently, in the reset flow, an attempt to create auxiliary devices is > performed without regard to the ability of the PF. There needs to be a > check in ice_aux_plug_dev (as the central point that creates auxiliary > devices) to see if the PF is in a state to support the functionality. > > When disabling and re-enabling RDMA due to the inclusion/removal of the PF > in a link aggregate, we also need to set/clear the bit which controls > auxiliary device creation so that a reset recovery in a link aggregate > situation doesn't try to create auxiliary devices when it shouldn't. > > Fixes: f9f5301e7e2d ("ice: Register auxiliary device to provide RDMA") > Reported-by: Yongxin Liu > Signed-off-by: Dave Ertman > Signed-off-by: Tony Nguyen Why CC lkml but not CC RDMA or Leon?