From mboxrd@z Thu Jan 1 00:00:00 1970 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 02D7B1F5614; Fri, 17 Jan 2025 02:07:25 +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=1737079646; cv=none; b=BUH4qPH3XAYqp3eSZJ11+K1mryq6rv/ZVyzNc63kiyYOwgT4TokC2KnfFmH7XqaC17PhubfVwm8vb7wsrqrfY4fD69Mc/Ms0BbMYf6CvIcMwWKMNQ6UXJH51jh3s73lJrR3Z61oyNPZ6WCeJXQ/0soBPHfTp34uOhW8K9OY2+dQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737079646; c=relaxed/simple; bh=kkzjE1abC9f4YTR7CcARJX5dGGH7iZDQUJXe5bBq5Tk=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=HABATZBDa3jzqS5lTgwTDuhMgT7cLhr+n2iy/1fIyT/VQTq9tZBtLsuK+ICZ8kY5sSGebsiqPOz8aQHlJXMU2zLI9m9ayNX3a0csypKgU/BB43clA2EGGredsH21hBajRld3SjUqhyvIOH/INKWvWoz+k0rKxEIdWTGX9zjpOag= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=q3E/d5r2; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="q3E/d5r2" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C601DC4CEE4; Fri, 17 Jan 2025 02:07:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1737079645; bh=kkzjE1abC9f4YTR7CcARJX5dGGH7iZDQUJXe5bBq5Tk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=q3E/d5r2fdAZ6LQh0tManqWn+gvDtcCTi0/roDt1h0XzabAv4NtQA/IrIvJ2K9FmK BEwr6RFDjKYP0CEb25IypNVdTB927Lw2BHlyQIRKEl4wVaE/fVSBy6YIlh6bHS0Lka zDsJ9O70pDUcE0oSos9vhQpYXJDWiHCNEHYn5/HU2INRNszGDer9O3q3mPd/4Nvp81 kMhFQiQNVGgQZWIaJzeOD4no6C2CmVXOFgU+eRygUUVLxbTWwKHNsMMJuialiNtLKm VT+K895Zp0ewsXYsY5l+cie/8pOLHWLaUwAl0pRQ3xaTY62gykWAutMUXcjvsrKyj6 KjCVJM3OF+ApQ== Date: Thu, 16 Jan 2025 18:07:23 -0800 From: Jakub Kicinski To: David Wei Cc: io-uring@vger.kernel.org, netdev@vger.kernel.org, Jens Axboe , Pavel Begunkov , Paolo Abeni , "David S. Miller" , Eric Dumazet , Jesper Dangaard Brouer , David Ahern , Mina Almasry , Stanislav Fomichev , Joe Damato , Pedro Tammela Subject: Re: [PATCH net-next v11 14/21] io_uring/zcrx: implement zerocopy receive pp memory provider Message-ID: <20250116180723.21a4e637@kernel.org> In-Reply-To: <20250116231704.2402455-15-dw@davidwei.uk> References: <20250116231704.2402455-1-dw@davidwei.uk> <20250116231704.2402455-15-dw@davidwei.uk> Precedence: bulk X-Mailing-List: io-uring@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 16 Jan 2025 15:16:56 -0800 David Wei wrote: > + type = rxq ? NETDEV_A_QUEUE_IO_URING : NETDEV_A_PAGE_POOL_IO_URING; > + nest = nla_nest_start(rsp, type); > + nla_nest_end(rsp, nest); nla_nest_start() can fail, you should return -EMSGSIZE if it does