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=UA8C3ojh Received: from out2.migadu.com (out2.migadu.com [188.165.223.204]) by mail.toke.dk (Postfix) with ESMTPS id 184DD9A9AAF for ; Tue, 11 Oct 2022 08:29:16 +0200 (CEST) Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1665469754; 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=zUi8fTh0XUn9xbcYsioWxqspfv8zn7O04vzgZgzRS88=; b=UA8C3ojhTfDtRVyRXWhwFANJ6RsYjfkchO9bvG1nWJCiIYr86Ho9V/ZuMLtTVbJjY7mHXv MvsWPErArT42abXWlz8626f4RGlC4oXeLSNE3mGx64oBETuLJl6OC7vEsL7g/KjvLbnj/u aHCh6xyp7F6DizbieEETHyMIZLZHJYo= Date: Mon, 10 Oct 2022 23:29:07 -0700 MIME-Version: 1.0 Content-Language: en-US To: Jesper Dangaard Brouer , Magnus Karlsson References: <166256538687.1434226.15760041133601409770.stgit@firesoul> <35fcfb25-583a-e923-6eee-e8bbcc19db17@redhat.com> <5ccff6fa-0d50-c436-b891-ab797fe7e3c4@linux.dev> <20221004175952.6e4aade7@kernel.org> <20221004182451.6804b8ca@kernel.org> 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: JKYOCMOXQWIXBV46TI2M4E7ZRSGC7BXL X-Message-ID-Hash: JKYOCMOXQWIXBV46TI2M4E7ZRSGC7BXL 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, Stanislav Fomichev , bpf@vger.kernel.org, netdev@vger.kernel.org, xdp-hints@xdp-project.net, larysa.zaremba@intel.com, memxor@gmail.com, Lorenzo Bianconi , mtahhan@redhat.com, Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , dave@dtucker.co.uk, Magnus Karlsson , bjorn@kernel.org, Jakub Kicinski X-Mailman-Version: 3.3.5 Precedence: list Subject: [xdp-hints] Re: [PATCH RFCv2 bpf-next 00/18] XDP-hints: XDP gaining access to HW offload hints via BTF List-Id: XDP hardware hints design discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: T24gMTAvNi8yMiA4OjI5IEFNLCBKZXNwZXIgRGFuZ2FhcmQgQnJvdWVyIHdyb3RlOg0KPiANCj4g T24gMDYvMTAvMjAyMiAxMS4xNCwgTWFnbnVzIEthcmxzc29uIHdyb3RlOg0KPj4gT24gV2VkLCBP Y3QgNSwgMjAyMiBhdCA5OjI3IFBNIE1hcnRpbiBLYUZhaSBMYXUgPG1hcnRpbi5sYXVAbGludXgu ZGV2PiB3cm90ZToNCj4+Pg0KPj4+IE9uIDEwLzQvMjIgNzoxNSBQTSwgU3RhbmlzbGF2IEZvbWlj aGV2IHdyb3RlOg0KPj4+PiBPbiBUdWUsIE9jdCA0LCAyMDIyIGF0IDY6MjQgUE0gSmFrdWIgS2lj aW5za2kgPGt1YmFAa2VybmVsLm9yZz4gd3JvdGU6DQo+Pj4+Pg0KPj4+Pj4gT24gVHVlLCA0IE9j dCAyMDIyIDE4OjAyOjU2IC0wNzAwIFN0YW5pc2xhdiBGb21pY2hldiB3cm90ZToNC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