Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1182461lqg; Sat, 2 Mar 2024 21:26:29 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVn2KTELPMHobMIngFqtMRQkbFKF/Wy41kHvdcxeacW8o41/xW6ykrjoazUIogdS/7C+J2goMRrjduzrW6H1O/s6ABRZ/96Xs3Uytew5g== X-Google-Smtp-Source: AGHT+IEfxu49zjUCnlldUNIYKBGWHLn5QC7twZcUT2wkByWbUOqR5F6hhHHxVVh+eLsBOkvt1ECs X-Received: by 2002:a05:6402:5c5:b0:567:1263:e31f with SMTP id n5-20020a05640205c500b005671263e31fmr1743809edx.10.1709443589206; Sat, 02 Mar 2024 21:26:29 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709443589; cv=pass; d=google.com; s=arc-20160816; b=b7MvSbun3ipuetYnUBujdB+6IeA95iXIscvxTyP/nG6VnhZSqDfi61+QpEnOrMureh W/euyqpxkZiFHNOb/hWErBXqPGLEt7dCkidLjoeGrnFAi6WcJxrT1mRENXRObdNnvdYV ssnfLXR2nTuYIPfGo1IJxh7Zsa9YEZ7KYZV9bwmlxd350sYeQLaEMJw5btEEil+epv8z 4Q9p+cHnygMQG66DbvbGGXk9cxaV79kRuyGW/pruabSZjiqxYh0ZHf0QybHp3lKyVy8t aOjqauxgtfe17uDRkE9Ttmfe2oQ1FLpq5vfgWOGowiaAzetrvJrS1YRWF+E/LE0TM0gx yMQg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=s8KSxPjLWM5g6y9dTG7Enr3rtw5sQnAYC/d4qYCssvw=; fh=E0TDxf2zo86LTFdihdNqdFTqtmb4/P6pKIOP8PnI2k8=; b=ccCADg5IY4dSe6St9ZUTkwm2QjxUtrvkuOHiDD8PNpl7GwdiktLvRggh9kKBNQpfry 8Xx6lOrdREue+8FdHjLSeoKsAgrqp08kt+KI1pMYd71QttY9OezDcQvO7qWdXa1dFleG Hn1/O3J7tDVOJOnNn8KnIgYti2Sn7VHW+IeusHBrEl4ICBZSS9OvelSW0iiDZDQLVITr cTDcPSG3w6gIiMmHR1exPELmlAP4qknsz1UprKwdO4nfROwaMciAO8qPNQVYxkrjaINT UqHV9J7egQ2i8++xjTpFKZdcGvFCE/aG8vN52SXLQnV7bv3icC9nehZ3znz0S71zvhrD V5gQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QUbyNXba; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-89657-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89657-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id z5-20020a50eb45000000b00564d2bf234dsi2782963edp.253.2024.03.02.21.26.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Mar 2024 21:26:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-89657-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QUbyNXba; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-89657-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89657-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 am.mirrors.kernel.org (Postfix) with ESMTPS id EB2E31F22218 for ; Sun, 3 Mar 2024 05:26:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1A5B18BE7; Sun, 3 Mar 2024 05:26:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="QUbyNXba" 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 410E11C2E; Sun, 3 Mar 2024 05:26:16 +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=1709443577; cv=none; b=PG3SivbG9KMZlUuPQ0BXtiVhnetxAlYMRe4cdlrpDXhBXsK6TH8CZJIICE7hspOsMzfAjGpK74YmCgCvjk/I62x/U5POhWjNqgnnZVGl1yeG6WCGnZIfmN+i+C+Vb2kOUY03OAjp4uKa0nQRcqgjyFSdQOhyFzAUeOEDX17CdvU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709443577; c=relaxed/simple; bh=pDTqr75VrTenhrZ7T1mxLvCoeWHL+hc6thSbvXACcuQ=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=GDJnwF7J39WE2xK+7XSFyEIkSpYjnZD8oBguYAFOEEhw5Yzn5XIp5fX5brv+VkaM0Rg5EDkm06HHIe7GATEyLqTQO9kdL4iQC+Ajd7EFgr16fWFsAqiZgy0gvHHophwGEswet9wmT/BrrJ466WuOKRm8rzvfvV5nnCNWCkQq6U0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=QUbyNXba; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3F7FDC433F1; Sun, 3 Mar 2024 05:26:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709443576; bh=pDTqr75VrTenhrZ7T1mxLvCoeWHL+hc6thSbvXACcuQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=QUbyNXbaTyYF1KDMsPa4TbrSyBOX0xx/gnZUZi4SuDKF5r7E9EV97lYwRkpXYaF1L pADr96LkXEmMKKNx88n/AD0Y3wKlqgUOOTsfka8xTD6G3wP4F8ru0YepbIC6OUfC41 eOhVxeo3NPCjU3K+6ioUBuakT34fPX0HZH/FzIv65Wo/dIbAfi484xB8/p7Jo+nYgR pmOWKavyMJ9KNPhRCv3r+9gg03PoZcyKaG1SESzVkighvnzv+hiFJql10Fimy1ALMC 5+0C4jMZcLLtn6ko3i/3Ut9QwU1eGfhLe83RKDWEErP8O3U1H/2hwd9qPmv+l0y86g ivSE9pe/955+Q== Date: Sat, 2 Mar 2024 21:26:15 -0800 From: Jakub Kicinski To: David Howells Cc: netdev@vger.kernel.org, Marc Dionne , "David S. Miller" , Eric Dumazet , Paolo Abeni , linux-afs@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next 13/21] rxrpc: Use rxrpc_txbuf::kvec[0] instead of rxrpc_txbuf::wire Message-ID: <20240302212615.310678df@kernel.org> In-Reply-To: <20240301163807.385573-14-dhowells@redhat.com> References: <20240301163807.385573-1-dhowells@redhat.com> <20240301163807.385573-14-dhowells@redhat.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-Transfer-Encoding: 7bit On Fri, 1 Mar 2024 16:37:45 +0000 David Howells wrote: > Use rxrpc_txbuf::kvec[0] instead of rxrpc_txbuf::wire to gain access to the > Rx protocol header. In future, the wire header will be stored in a page > frag, not in the rxrpc_txbuf struct making it possible to use > MSG_SPLICE_PAGES when sending it. > > Similarly, access the ack header as being immediately after the wire header > when filling out an ACK packet. net/rxrpc/output.c:263:28: warning: unused variable 'whdr' [-Wunused-variable] 263 | struct rxrpc_wire_header *whdr; | ^~~~