From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mail.toke.dk; spf=pass (mailfrom) smtp.mailfrom=linux.dev (client-ip=2001:41d0:1004:224b::17; helo=out-23.mta0.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=qtrfONqU Received: from out-23.mta0.migadu.com (out-23.mta0.migadu.com [IPv6:2001:41d0:1004:224b::17]) by mail.toke.dk (Postfix) with ESMTPS id 46B469ED95A for ; Fri, 24 Feb 2023 08:45:06 +0100 (CET) Message-ID: <4aaf2a34-b3ad-0970-614f-edfc8244e746@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1677224702; 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=1i4WS33mquNkNcChcjoQGOfw106LH345J9OGkWHW60U=; b=qtrfONqUMB5C2p1w282Z0iAG0HpqQSSCpNy64C13H1N5Q9gh/cZJQfBWitKxdVpz7MgYaW IdEGSMuAh/gCxTUXbzfowDWNRf90cb1X9XnVk2xy9jCr24/WZD589JXYkyQQW8Q3S1GUsj yoSzshX3WHkaDNxHHT69k2WVKJcf9Jc= Date: Thu, 23 Feb 2023 23:44:55 -0800 MIME-Version: 1.0 Content-Language: en-US To: Jesper Dangaard Brouer References: <167673444093.2179692.14745621008776172374.stgit@firesoul> <613bbdb0-e7b0-59df-f2ee-6c689b15fe41@redhat.com> <8bb53544-94f4-601b-24ad-96c6cc87cf50@linux.dev> 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: 2V2DMWU33HDBM2EYHOKW7P5WORWYCYMW X-Message-ID-Hash: 2V2DMWU33HDBM2EYHOKW7P5WORWYCYMW 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, netdev@vger.kernel.org, martin.lau@kernel.org, ast@kernel.org, daniel@iogearbox.net, alexandr.lobakin@intel.com, larysa.zaremba@intel.com, xdp-hints@xdp-project.net, Stanislav Fomichev X-Mailman-Version: 3.3.8 Precedence: list Subject: [xdp-hints] Re: [PATCH bpf-next V3] xdp: bpf_xdp_metadata use EOPNOTSUPP for no driver support List-Id: XDP hardware hints design discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: T24gMi8yMi8yMyAxOjQ5IFBNLCBKZXNwZXIgRGFuZ2FhcmQgQnJvdWVyIHdyb3RlOg0KPiANCj4g T24gMjEvMDIvMjAyMyAyMi41OCwgTWFydGluIEthRmFpIExhdSB3cm90ZToNCj4+IE9uIDIvMjEv MjMgMTI6MzkgUE0sIEplc3BlciBEYW5nYWFyZCBCcm91ZXIgd3JvdGU6DQo+Pj4gRm9yIG1lIHRo aXMgaXMgbW9yZSBhYm91dCB0aGUgQVBJIHdlIGFyZSBnaXZpbmcgdGhlIEJQRi1wcm9ncmFtbWVy Lg0KPj4+DQo+Pj4gVGhlcmUgY2FuIGJlIG5hdHVyYWwgY2FzZXMgd2h5IGEgZHJpdmVyIGRvZXNu J3QgcHJvdmlkZSBhbnkgaGFyZHdhcmUNCj4+PiBpbmZvIGZvciBhIHNwZWNpZmljIGhpbnQuwqAg VGhlIFJYLXRpbWVzdGFtcCBpcyBhIGdvb2QgcHJhY3RpY2FsIGV4YW1wbGUsDQo+Pj4gYXMgb2Z0 ZW4gb25seSBQVFAgcGFja2V0cyB3aWxsIGJlIHRpbWV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