Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp137922lqo; Thu, 16 May 2024 01:27:30 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXHLVeDX2SE/H7ufbkPEedS2x99Ju9Jss6G1uvvE1n9XloSR1JzjIQfDD5vwGaigAbyw1P7xTImtMDmxkbQ+hhuNyQMF68lzXGxZq5WdQ== X-Google-Smtp-Source: AGHT+IGkDACAsVt6f2OIIGItl6Ep85bXcA1CYIPcJ0oylIWAL4ums9NDqEmBzR2KVoCvpC6EQTXR X-Received: by 2002:a05:6808:211f:b0:3c9:a968:d0b2 with SMTP id 5614622812f47-3c9a968d375mr15417428b6e.32.1715848050277; Thu, 16 May 2024 01:27:30 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-792bf33b582si1541004485a.505.2024.05.16.01.27.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 01:27:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-180760-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=k20201202 header.b=W+e1arsP; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-180760-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180760-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id A685C1C21856 for ; Thu, 16 May 2024 08:27:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 12557130A56; Thu, 16 May 2024 08:27:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="W+e1arsP" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2EAF938F86; Thu, 16 May 2024 08:27:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715848040; cv=none; b=BxKfDeMBKFm5Hqsw/5JweiYKHf+qXrcpEEA68fumCfU31GvRehq602rp16yN/gGJdXxCOKFNCkcMN5m2pUGZ+LePMziaZvWYYbUpg/hF7zSgnRNK23fYlBEi4EDVxzi0Zxjun3RDbJg/eV33YgAD4BwRB7fPXR7vC5odfFllVn0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715848040; c=relaxed/simple; bh=XS+c13dsUKZqV4fhUJ4NseTT8YN+F9dJ7nFDGFXcNrs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=XHpZ2QwYrmozH0w1E4f39ZHzGrqbXQ3JJgTi3el6NNUGGjmhT2xgWYXwbJidFH/EdTzCTmO9qTQsmUUVjyDwtsTmaRt2fFttntjDGm5TzXQ5b8XncRB8M4MyS997OFnY3cPnpc6zOoIn3Q9hZidVodpnZaoqJN6YlestYWk5Ul4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=W+e1arsP; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 48018C113CC; Thu, 16 May 2024 08:27:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715848039; bh=XS+c13dsUKZqV4fhUJ4NseTT8YN+F9dJ7nFDGFXcNrs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=W+e1arsPk3v9M3A8EeaJpe0Z8uAAfgVylWc7wCMixoFpsYxiO9MFuM1ocFVQWmAeR KXFZOav5FfjYm03+McmjOpIdXEii1bxqkQ7/8xTAZEo2U8XQP2rBp6ipgo4uPalkuV pI3G5UHIJFYjL0qdyyW6ncIlnV77pQwjI/oV4GeDMHeZ7LFeQvodFEnlwh6ocDojZr Rhs+0VJzxcuD+TJmk93Zdt4cUvlMlwGtl17UBaYbgqvPjPtKbodCgnDVOZUE/yT/c6 S0rmmeB4QipQDwpYo8jNBtAQs0cXym7XCM1RjrkdHC2gnkNB/buheVMKzkKahzGDYt IN9+Y3ltxHvdA== Date: Thu, 16 May 2024 09:27:13 +0100 From: Simon Horman To: Larysa Zaremba Cc: intel-wired-lan@lists.osuosl.org, Jacob Keller , maciej.fijalkowski@intel.com, Magnus Karlsson , Przemek Kitszel , igor.bagnucki@intel.com, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org Subject: Re: [PATCH iwl-net 3/3] ice: map XDP queues to vectors in ice_vsi_map_rings_to_vectors() Message-ID: <20240516082713.GC179178@kernel.org> References: <20240515160246.5181-1-larysa.zaremba@intel.com> <20240515160246.5181-4-larysa.zaremba@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240515160246.5181-4-larysa.zaremba@intel.com> On Wed, May 15, 2024 at 06:02:16PM +0200, Larysa Zaremba wrote: > ice_pf_dcb_recfg() re-maps queues to vectors with > ice_vsi_map_rings_to_vectors(), which does not restore the previous > state for XDP queues. This leads to no AF_XDP traffic after rebuild. > > Map XDP queues to vectors in ice_vsi_map_rings_to_vectors(). > Also, move the code around, so XDP queues are mapped independently only > through .ndo_bpf(). Hi Larysa, I take it the last sentence refers to the placement of ice_map_xdp_rings() in ice_prepare_xdp_rings() after rather than before the (cfg_type == ICE_XDP_CFG_PART) condition. If so, I see that it is a small change. But I do wonder if it is separate from fixing the issue described in the first paragraph. And thus would be better as a separate patch. Also, (I'm raising a separate issue :) breaking out logic into ice_xdp_ring_from_qid() seems very nice. But I wonder if this ought to be part of a cleanup-patch for 'iwl' rather than a fixes patch for 'iwl-next'. OTOH, I do see that breaking out ice_map_xdp_rings() makes sense in the context of this fix as the same logic is to be called in two places. Splitting patches aside, the resulting code looks good to me. ..