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 629EC27B343; Fri, 29 Aug 2025 22:39:26 +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=1756507166; cv=none; b=CTyx5oxHA+qHNoS4fwKYXKmo0hHcLaqrGgkLcURmXPcODIiDsRaqUX15JA7lxe4kMR5rbeD20EzJLkMhGkPh8VTQIoOj2VP6mtBjsWot08mCHSkIUBtm2nA9zYLJKp828HC+eZLa61e9Z8Sik0GfQjeBkTmd1XQ7H9ZzykLRubU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756507166; c=relaxed/simple; bh=t2zZa6cbOCIKOz62d3QuseK7Ch3T+oSbhGOp7t2vibU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=oMNEJ2ncbt52ug0wYX2HbIBa3CPKYKd6XvqSOtEQwgO3ASfWr2TOUCeUVeAOrmAPpjmzZ8cm90Oh05Yh28r3qTzxWqHzjJUDHXY7o8pHivMVKU//QvGEIv0uMttcRkjp34KCxGWfXwk107eJSIdAfxZ449XZaX9hf+fv8iN8wgg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=YQyoJhCK; 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="YQyoJhCK" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DD19AC4CEF0; Fri, 29 Aug 2025 22:39:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1756507166; bh=t2zZa6cbOCIKOz62d3QuseK7Ch3T+oSbhGOp7t2vibU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YQyoJhCKLC5zBOiw+VWg+BHxV5v2Hx9Uc2SLDRRDlYYzRK5N2mveTLjI+hBuxALRT 9wedkCz0CJMPjERQ4+UycivctCDk76UUel8Qv9Ff+gw9h36UcAm+SGVLv9VbjdaOJb 8igjtpAo4dwGDAhVp977T6FaUU2Yk97TP57sD0xi0p7ftcjl6uo8FAQN8b1A//yY6r U7qj9gm9EWdpzz1F7aDgcQR7/y5oNEaLHSQQyPgKLo8s9oAnFljTYfoGQHNXTn5CQp 7wXjejcWfjFMngDcsWrnItXQ+Eb6XjSYnbhrp1qL/7Hhw4Nx74h6QLiwdP97L+1RQ2 dzVNoG9mnghZg== Date: Fri, 29 Aug 2025 15:39:25 -0700 From: Saeed Mahameed To: cpaasch@openai.com Cc: Gal Pressman , Dragos Tatulea , Saeed Mahameed , Tariq Toukan , Mark Bloch , Leon Romanovsky , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , Stanislav Fomichev , netdev@vger.kernel.org, linux-rdma@vger.kernel.org, bpf@vger.kernel.org Subject: Re: [PATCH net-next v4 1/2] net/mlx5: DMA-sync earlier in mlx5e_skb_from_cqe_mpwrq_nonlinear Message-ID: References: <20250828-cpaasch-pf-927-netmlx5-avoid-copying-the-payload-to-the-malloced-area-v4-0-bfcd5033a77c@openai.com> <20250828-cpaasch-pf-927-netmlx5-avoid-copying-the-payload-to-the-malloced-area-v4-1-bfcd5033a77c@openai.com> Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20250828-cpaasch-pf-927-netmlx5-avoid-copying-the-payload-to-the-malloced-area-v4-1-bfcd5033a77c@openai.com> On 28 Aug 20:36, Christoph Paasch via B4 Relay wrote: >From: Christoph Paasch > >Doing the call to dma_sync_single_for_cpu() earlier will allow us to >adjust headlen based on the actual size of the protocol headers. > >Doing this earlier means that we don't need to call >mlx5e_copy_skb_header() anymore and rather can call >skb_copy_to_linear_data() directly. > >Signed-off-by: Christoph Paasch Reviewed-by: Saeed Mahameed