Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4A6BCC6FD1B for ; Mon, 6 Mar 2023 22:27:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229874AbjCFW14 (ORCPT ); Mon, 6 Mar 2023 17:27:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229516AbjCFW1x (ORCPT ); Mon, 6 Mar 2023 17:27:53 -0500 Received: from www62.your-server.de (www62.your-server.de [213.133.104.62]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7CE456512F; Mon, 6 Mar 2023 14:27:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=iogearbox.net; s=default2302; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=BGzXDnZx8+mCiNisS7Atnv9YnItWYP7gOAI+eGw+fp4=; b=LHJUnwT4DDHLVtqbSLfhcjfqAd h1Sb2hRVLRJwRKL7UvggVIR73cnirt6/P1g3KkiRuCZlYtPTE1FQu8QUIOQy0LZIr9qiSYDsZ3cmv LNhRjvV3eutlrr+jfJg31K3q6RzcjzX7BrU2p0VQfU1SGNpZ1pSf8Kt+hwOFtezn3xdc66k7q7Vj6 TnNC/Uo6yUOdJpJfLnE6seHsTWzdtprcOtSjMphW5H5ytXyDud5MeIXg4LUqgfkR6QtMsReejHrtz DZW0jGR1EOicCRONfb6Wi+9hz1iRgpA6JirmrqMHOZ+3PRRh3Oh2eSLZ4v0mRgtaOcJcbaWkG/3FD dl2mjKKg==; Received: from sslproxy02.your-server.de ([78.47.166.47]) by www62.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pZJIz-000C1l-PO; Mon, 06 Mar 2023 23:27:41 +0100 Received: from [85.1.206.226] (helo=linux.home) by sslproxy02.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pZJIz-000Mas-Dp; Mon, 06 Mar 2023 23:27:41 +0100 Subject: Re: [PATCH bpf v6] bpf, test_run: fix &xdp_frame misplacement for LIVE_FRAMES To: Alexander Lobakin , Alexei Starovoitov , Andrii Nakryiko , Martin KaFai Lau Cc: =?UTF-8?Q?Toke_H=c3=b8iland-J=c3=b8rgensen?= , Song Liu , Jesper Dangaard Brouer , Jakub Kicinski , bpf@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230224163607.2994755-1-aleksander.lobakin@intel.com> From: Daniel Borkmann Message-ID: Date: Mon, 6 Mar 2023 23:27:39 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <20230224163607.2994755-1-aleksander.lobakin@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.103.8/26833/Mon Mar 6 09:22:59 2023) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/24/23 5:36 PM, Alexander Lobakin wrote: > &xdp_buff and &xdp_frame are bound in a way that > > xdp_buff->data_hard_start == xdp_frame > > It's always the case and e.g. xdp_convert_buff_to_frame() relies on > this. [...] The patch got applied to bpf, thanks!