From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mail.toke.dk; spf=pass (mailfrom) smtp.mailfrom=linux.dev (client-ip=188.165.223.204; helo=out2.migadu.com; envelope-from=martin.lau@linux.dev; receiver=) 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=HNzCbhUT Received: from out2.migadu.com (out2.migadu.com [188.165.223.204]) by mail.toke.dk (Postfix) with ESMTPS id 5CB399CFC37 for ; Wed, 14 Dec 2022 19:09:15 +0100 (CET) Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1671041353; 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=9RVeE52fe8tao+Jgn1fchMA7etd6S9WYXBGMEn5oGVU=; b=HNzCbhUTrOzIAXCLd6h/BnqC3BLAQGZ4FyiH3GZuiqk9HY2DqkjmqGjmtqLuHcBf49uzKJ PCPdTKjLvXSmhQyh3TsMMJswXelM6s8xtOad/sV+Uz9Txn8Fu3F44OuIITj32l5RXPFeqe AWJKbQ3SRTiXjEL9R+s4L8LkmxCgmEY= Date: Wed, 14 Dec 2022 10:09:04 -0800 MIME-Version: 1.0 Content-Language: en-US To: Stanislav Fomichev References: <20221213023605.737383-1-sdf@google.com> <20221213023605.737383-9-sdf@google.com> <7ca8ac2c-7c07-a52f-ec17-d1ba86fa45ab@redhat.com> <4bac619d-8767-1364-1924-78c05b1ecf88@redhat.com> <87a63qgt30.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: <87a63qgt30.fsf@toke.dk> Content-Type: text/plain; charset="utf-8"; format="flowed" Content-Transfer-Encoding: base64 X-Migadu-Flow: FLOW_OUT Message-ID-Hash: 762RKGCOWXVU5D5QLLPGY5ZPMB4FPQ45 X-Message-ID-Hash: 762RKGCOWXVU5D5QLLPGY5ZPMB4FPQ45 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: brouer@redhat.com, bpf@vger.kernel.org, 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 , Anatoly Burakov , Alexander Lobakin , Magnus Karlsson , Maryam Tahhan , xdp-hints@xdp-project.net, netdev@vger.kernel.org, =?UTF-8?Q?Toke_H=c3=b8iland-J=c3=b8rgensen?= , Jesper Dangaard Brouer X-Mailman-Version: 3.3.7 Precedence: list Subject: [xdp-hints] Re: [PATCH bpf-next v4 08/15] veth: Support RX XDP metadata List-Id: XDP hardware hints design discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: T24gMTIvMTQvMjIgMjo0NyBBTSwgVG9rZSBIw7hpbGFuZC1Kw7hyZ2Vuc2VuIHdyb3RlOg0KPiBK ZXNwZXIgRGFuZ2FhcmQgQnJvdWVyIDxqYnJvdWVyQHJlZGhhdC5jb20+IHdyaXRlczoNCj4gDQo+ PiBPbiAxMy8xMi8yMDIyIDIxLjQyLCBTdGFuaXNsYXYgRm9taWNoZXYgd3JvdGU6DQo+Pj4gT24g VHVlLCBEZWMgMTMsIDIwMjIgYXQgNzo1NSBBTSBKZXNwZXIgRGFuZ2FhcmQgQnJvdWVyDQo+Pj4g PGpicm91ZXJAcmVkaGF0LmNvbT4gd3JvdGU6DQo+Pj4+DQo+Pj4+DQo+Pj4+IE9uIDEzLzEyLzIw MjIgMDMuMzUsIFN0YW5pc2xhdiBGb21pY2hldiB3cm90ZToNCj4+Pj4+IF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