Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp139165lqo; Thu, 16 May 2024 01:30:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW/JeMLUzh7+/b8PBYpItX0YWwU0p7egJJBqGeRoTOTrH6xDNlXUzAlcPok9dqX4GKdMBFE2jSbrnNS4mSOkyM0vyMbYqEg+/7hjukfxw== X-Google-Smtp-Source: AGHT+IEVccEAXLbGjMbWE0Dl/SvHWagBSR4rHY5iZXSUEOIHPR7NAOpVMZZgjL9hca4tnhaD2S1w X-Received: by 2002:a05:6a20:9f9a:b0:1b0:18e6:ac2c with SMTP id adf61e73a8af0-1b018e6ad87mr5155801637.40.1715848246211; Thu, 16 May 2024 01:30:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715848246; cv=pass; d=google.com; s=arc-20160816; b=HjmcvX4MwviFqCx1WthozN85MUhEYHn16czYo00tzkFUuaIi8HIJ/jWqemHy1NgFq9 2IYalB7FhEmh6WeC08q6Rf8mAAIbAiOJ/80sBI8tJY9FxIHr1fW1ifrQ19VpQbBP9Ol9 fSWAW8Mxn6AF69+9Z7A2MruwefkyADHRqOFbmVdOW5V+itFLY2NSntjVu4866xDncRwB o4rBxYhbAGdvHdjm5Tp5rerqsu7m0LKr4ktUUALxmx2mVh2H1jrV+WbmV2cSvVtt0HEQ lIPtyd2wk5WCbjgklf9uyvqa8iDPdqKPIAhZIs5ki9rmUdiCEkg6/e3HX+0G3qcblUoW 8VWg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=d4hJtdBjJHYV39NdueoN5H8ZPgS1hyw5FDu5MtqkEXM=; fh=F+KPl+emI2kj5d6AZgGlOrQ2+B3WIESDRfRoKXpfa7Y=; b=oxkU0WUIx7Yz2f0kDW01oBMubvuGblkZTSV91aZ/3Rh15ra608/Q6V5U138zrfVvvQ ya6kTspmdAEtw3O/Na3kr0xhwnitAcDm6P9dOCNdxTS2LUB3D+iRYKO/nzu0VIS6lnBt IeWpuOapL33KX8L/aElAQn2ESpUMURW2K1+Ig/1YoijNwtZyQxJ41sRLIJqw8souO5En W1F0/5WPz97Pder+kmUX1FYjhPUXTLE/P3DtjKfy74/uYCgjFC8jqGFEA+KdCHTzUK3C njfzt26Sg4LTb3S2FKTnbXhTxW4lsjSywV9UOzzuXwWVSmK/DfioL4WHutDpV3GOUxrj gxLg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IVM2U5GL; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-180764-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180764-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d9443c01a7336-1ef0bf32be8si159561325ad.269.2024.05.16.01.30.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 01:30:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-180764-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IVM2U5GL; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-180764-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180764-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 04012B231C0 for ; Thu, 16 May 2024 08:28:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 83A481369B6; Thu, 16 May 2024 08:28:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="IVM2U5GL" 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 A2A1980031; Thu, 16 May 2024 08:28:00 +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=1715848080; cv=none; b=k1CV4LQalYa8Oo5Q/xrjXv+IzVTfItlTSLUdgmT7FzecOwi4JVI4CxJpvx/tbf7jM4M7Byqe2dfAwSjFPzCi1VGPrztIe90YSGFbQ55BHyg1Ucf8fy+5QfBu6dWwSug27ocrNaE99Alz+2CyT33UVNduTgfPDCdzSW61KtHQdVk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715848080; c=relaxed/simple; bh=K6LjZar4C+lKcaUcvKF9CUktTgIY/qpM6WOPF5lY1uw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=BBa+KIiQZyzRCSF+zORxI5gpJbPaCvIn9ZgWtySFH37mkRqy7jtdS8YZrVFHrBsoAytNV5XdMzyfqdEMaJimVE22M404qgXNkzez+vVTfQkUdvs6R3ROj1cCXMpVOP1lmdPrMIbQK4aRWJHJ1NIYM0vZpfPNJuryBReEufQdSDY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=IVM2U5GL; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A6C04C113CC; Thu, 16 May 2024 08:27:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715848080; bh=K6LjZar4C+lKcaUcvKF9CUktTgIY/qpM6WOPF5lY1uw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IVM2U5GL41lJTUzuQNHCDzbJ+lZ1NsJiUnnwHsjBArxf3Mu3rushEXOEiGkSlD744 ei3h/xt4Jw3/iEtIvTsF7imzCrsQ6E9BMT/EkCahgBOMpl085ZVphA05HiT1AnFAIh 0tY9NIFSMskjH/g8z1vuBFhVSE4e2HwRcdkMmwQB4BnFpZuhpmvZFM6TfvaCGEYHI/ AUBxKyZGlJjB4ndP/dggyUP+2mC5HEVfCxhczi92o0NzrwSWSpYaSlBQc9lQnAYOds ew7Sy2fRPYk1ygWnnQ0V8axIeRde63H0zPvIKUNJgaY/awJFPweqdhj4NPfj4vzYgL sQgI4500BrPZA== Date: Thu, 16 May 2024 09:27:54 +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 1/3] ice: remove af_xdp_zc_qps bitmap Message-ID: <20240516082754.GE179178@kernel.org> References: <20240515160246.5181-1-larysa.zaremba@intel.com> <20240515160246.5181-2-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-2-larysa.zaremba@intel.com> On Wed, May 15, 2024 at 06:02:14PM +0200, Larysa Zaremba wrote: > Referenced commit has introduced a bitmap to distinguish between ZC and > copy-mode AF_XDP queues, because xsk_get_pool_from_qid() does not do this > for us. > > The bitmap would be especially useful when restoring previous state after > rebuild, if only it was not reallocated in the process. This leads to e.g. > xdpsock dying after changing number of queues. > > Instead of preserving the bitmap during the rebuild, remove it completely > and distinguish between ZC and copy-mode queues based on the presence of > a device associated with the pool. > > Fixes: e102db780e1c ("ice: track AF_XDP ZC enabled queues in bitmap") > Reviewed-by: Przemek Kitszel > Signed-off-by: Larysa Zaremba Reviewed-by: Simon Horman