From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mail.toke.dk (Postfix) with ESMTPS id 467149ECDF8 for ; Wed, 22 Feb 2023 22:50:04 +0100 (CET) Authentication-Results: mail.toke.dk; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=Ic/M3Uqx DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1677102603; 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=R6IXijjfsOhQ7gBHCJ0QxrKhqJ/Fz8eXx6MZTsuMtqY=; b=Ic/M3UqxLMCe2U29zMgm9wMRxHtUxIEViMu+vu0ln8cAp2iCjuHuuqtL2Ua6hC2ICfQY6A ophJDx6FWnkXj6PxKf9qdJ8c7SsFi6EaGxaVrC8qBDM7fFp3E6wVHTGLJv3V9HlzoEW6J6 lu57Ak9ez9TG/0IAl9e8+iXBqeGEL4U= Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-351-jf_QrfphM3KpXdmT9Z3DSg-1; Wed, 22 Feb 2023 16:50:02 -0500 X-MC-Unique: jf_QrfphM3KpXdmT9Z3DSg-1 Received: by mail-ed1-f69.google.com with SMTP id ee6-20020a056402290600b004ad51f8fc36so12454134edb.22 for ; Wed, 22 Feb 2023 13:50:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:references:to :content-language:subject:cc:user-agent:mime-version:date:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=R6IXijjfsOhQ7gBHCJ0QxrKhqJ/Fz8eXx6MZTsuMtqY=; b=L/gEHjMGtoeeRDSdBu0EFAVoNeWN6LEibi/CXFb/S4rDG6sAI5uqJYruJXV+SLqQT9 2irGV7kXmJoRyqzet8HpiMp7CsYMT9UAEWXu+gM8rP3kuqxUgJRAJrbJJtIErA4NBK4T GY6QZSpOSBpO2mxzzSJj75Ejt4XjlcZbznPcBMb4no9Jh++PdkM8xi0IIAJN5Xmaogvq 5x74jrN5X9VEhkUCzpwqC5BiuhZvbOlE8fyUDZCAfN5kqR7hvOIK/cN4nH5FcCrL/qU9 /mxN98KF1t5zzTt4tWwle+RevLQS718tUsD1YjD+/Yo9MuCafuigEyGfgMoCNdFT0LAv RNvQ== X-Gm-Message-State: AO0yUKVYbASWwHFqKONSpjOUajKP1RO3P/ZwYFJRvI6vwwdHNCShrDdI FAA3lqGo0jVGkXWXIFV72VPduZhnD/m3M4zvmS91g1obt/88xN5bBvHU8Q9EdclSvlL2LjQ4uWS ABA2NfBI1CHni0FGB8yLN X-Received: by 2002:a17:906:2b54:b0:87b:d400:e1df with SMTP id b20-20020a1709062b5400b0087bd400e1dfmr17526451ejg.72.1677102600776; Wed, 22 Feb 2023 13:50:00 -0800 (PST) X-Google-Smtp-Source: AK7set+OWzWHD9rxUfuT2+1/dRsSv+jzA2j2/1Dlup0Hd9rw5sEZr2iufLqecElErRd3N+WFenguFw== X-Received: by 2002:a17:906:2b54:b0:87b:d400:e1df with SMTP id b20-20020a1709062b5400b0087bd400e1dfmr17526424ejg.72.1677102600486; Wed, 22 Feb 2023 13:50:00 -0800 (PST) Received: from [192.168.42.100] (nat-cgn9-185-107-15-52.static.kviknet.net. [185.107.15.52]) by smtp.gmail.com with ESMTPSA id a27-20020a509b5b000000b004acc7202074sm3575868edj.16.2023.02.22.13.49.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 Feb 2023 13:49:59 -0800 (PST) From: Jesper Dangaard Brouer X-Google-Original-From: Jesper Dangaard Brouer Message-ID: Date: Wed, 22 Feb 2023 22:49:58 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 To: Martin KaFai Lau , Jesper Dangaard Brouer , Stanislav Fomichev References: <167673444093.2179692.14745621008776172374.stgit@firesoul> <613bbdb0-e7b0-59df-f2ee-6c689b15fe41@redhat.com> <8bb53544-94f4-601b-24ad-96c6cc87cf50@linux.dev> In-Reply-To: <8bb53544-94f4-601b-24ad-96c6cc87cf50@linux.dev> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset="utf-8"; format="flowed" Content-Transfer-Encoding: base64 Message-ID-Hash: L3WQOG3F7LRUGPMVSRADNWNO22ZJWLHT X-Message-ID-Hash: L3WQOG3F7LRUGPMVSRADNWNO22ZJWLHT X-MailFrom: jbrouer@redhat.com 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 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: DQpPbiAyMS8wMi8yMDIzIDIyLjU4LCBNYXJ0aW4gS2FGYWkgTGF1IHdyb3RlOg0KPiBPbiAyLzIx LzIzIDEyOjM5IFBNLCBKZXNwZXIgRGFuZ2FhcmQgQnJvdWVyIHdyb3RlOg0KPj4gRm9yIG1lIHRo aXMgaXMgbW9yZSBhY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