From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out0.migadu.com (out0.migadu.com [IPv6:2001:41d0:2:267::]) by mail.toke.dk (Postfix) with ESMTPS id 5444E9BE3E6 for ; Fri, 11 Nov 2022 01:33:46 +0100 (CET) Authentication-Results: mail.toke.dk; dkim=pass (1024-bit key; unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=D/fM5G06 Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1668126825; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=k4pu/peDJZRN+bBHtsiWmWV7sdmrTkLJlHO7usejs4A=; b=D/fM5G06vDTxsRvy952f9u50TseLUS0Z5q6jgx3GIJDfEO3totX3EsieonaqWo8wd9R4we EUKd1xZP+F0e963r7Md0SHyhwJIjn4XV+rgriTD9umU5WuaqlTUCbfSJhH8b2bqeBgXpBl FCrWxg1k2LU5Dz5g05CpYUrgaJTp3Xg= Date: Thu, 10 Nov 2022 16:33:39 -0800 MIME-Version: 1.0 Content-Language: en-US To: Stanislav Fomichev , =?UTF-8?Q?Toke_H=c3=b8iland-J=c3=b8rgensen?= References: <20221104032532.1615099-1-sdf@google.com> <20221104032532.1615099-7-sdf@google.com> <187e89c3-d7de-7bec-c72e-d9d6eb5bcca0@linux.dev> <9a8fefe4-2fcb-95b7-cda0-06509feee78e@linux.dev> <6f57370f-7ec3-07dd-54df-04423cab6d1f@linux.dev> <87leokz8lq.fsf@toke.dk> <5a23b856-88a3-a57a-2191-b673f4160796@linux.dev> <32f81955-8296-6b9a-834a-5184c69d3aac@linux.dev> <87y1siyjf6.fsf@toke.dk> <87o7texv08.fsf@toke.dk> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Martin KaFai Lau In-Reply-To: Content-Type: text/plain; charset="utf-8"; format="flowed" Content-Transfer-Encoding: base64 X-Migadu-Flow: FLOW_OUT Message-ID-Hash: E3RB7CPVZQGIC6RYC5PD5PNNI7BTN4TN X-Message-ID-Hash: E3RB7CPVZQGIC6RYC5PD5PNNI7BTN4TN X-MailFrom: martin.lau@linux.dev X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, song@kernel.org, yhs@fb.com, john.fastabend@gmail.com, kpsingh@kernel.org, haoluo@google.com, jolsa@kernel.org, David Ahern , Jakub Kicinski , Willem de Bruijn , Jesper Dangaard Brouer , Anatoly Burakov , Alexander Lobakin , Magnus Karlsson , Maryam Tahhan , xdp-hints@xdp-project.net, netdev@vger.kernel.org, bpf@vger.kernel.org X-Mailman-Version: 3.3.6 Precedence: list Subject: [xdp-hints] Re: [RFC bpf-next v2 06/14] xdp: Carry over xdp metadata into skb context List-Id: XDP hardware hints design discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: T24gMTEvMTAvMjIgMzo1MiBQTSwgU3RhbmlzbGF2IEZvbWljaGV2IHdyb3RlOg0KPiBPbiBUaHUs IE5vdiAxMCwgMjAyMiBhdCAzOjE0IFBNIFRva2UgSMO4aWxhbmQtSsO4cmdlbnNlbiA8dG9rZUBy ZWRoYXQuY29tPiB3cm90ZToNCj4+DQo+PiBTa2lwcGluZyB0byB0aGUgbGFzdCBiaXQ6DQo+Pg0K Pj4+Pj4+PiAgICAgfSBlbHNlIHsNCj4+Pj4+Pj4gICAgICAgdXNlIGtmdW5jcw0KPj4+Pj4+PiAg ICAgfQ0KPj4+Pj4+Pg0KPj4+Pj4+PiA1LiBTdXBwb3J0IHRoZSBjYXNlIHdoZXJlIHdlIGtlZXAg cHJvZ3JhbSdzIG1ldGFkYXRhIGFuZCBrZXJuZWwncw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