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.133.124]) by mail.toke.dk (Postfix) with ESMTPS id 3EF09A1283A for ; Sat, 24 Jun 2023 11:02:32 +0200 (CEST) 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=WRalVKZa DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1687597351; 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=TlP2BVcQn03b4N3Vfnv2JBUz1UUdr9/ElEd0wsgEsos=; b=WRalVKZatyuJqjlz8UeDn+l8vYFSCuXqfuGQ+Gid78eFEkG2fIuhC96GIze600BoxCWU32 kdeGJz3WOt+asXURtU0No4+/tykeYTp2XUR9GtpSKIrNNnfrmrRFGDA5peSs+QPcJInq/5 Cky72/G2LLyQ8TjAVljdjEk9Aq3mkfM= Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-512-JQUlWNnzPKqEuf-Wet9kpA-1; Sat, 24 Jun 2023 05:02:29 -0400 X-MC-Unique: JQUlWNnzPKqEuf-Wet9kpA-1 Received: by mail-ed1-f70.google.com with SMTP id 4fb4d7f45d1cf-51bdf1e1f3bso884148a12.0 for ; Sat, 24 Jun 2023 02:02:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687597349; x=1690189349; 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=TlP2BVcQn03b4N3Vfnv2JBUz1UUdr9/ElEd0wsgEsos=; b=MydmO1j3fYZs+Qq/GybKLvvE1KPkH38XrN8h2gDoHeIo1Ze2uq0qILdi9ockVBnajT ggoSAIfZUEE/tggLbV08dZgTFUsotkLUqLg0VbhzgtgRihHAnafDJliekasDzAjqnlnI 8nwrjaTjgKp2OCDsM/7KJr23gA1hSvOrD9hi21vo0uesCnY8B2fdhxIGmyQvXOKJfVu4 x5yecTV3PG0hGJw0+6/1n1SKHYlemLcys4CU59jfGsxPO5kaa4nFIYrIO2beE2R8yuGB kF5dHo6OX1YQORZCL0OcaF16SqYVbO1omUGnxZAQNXG3snk3+g9lfphBAujC7cv7X2Ap cJdA== X-Gm-Message-State: AC+VfDyg6mobzhhvR5BIxxnw7+VzlY60W5a38IYC13DafMAb7aA7LJr9 Afahc9DEFKn/iqqJbzJk8ta6/tl4wqq2KvpDaew3pkzZXA4iiwfzf4Ab1dSOtxDin30GtpeyUyJ 55QKglstByBqINZbjJK6p X-Received: by 2002:a17:907:7f1e:b0:989:1f66:e42f with SMTP id qf30-20020a1709077f1e00b009891f66e42fmr12083034ejc.62.1687597348778; Sat, 24 Jun 2023 02:02:28 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6rX9nKQ/6jeI2c308HrgACFLv0fQdBSt6UoiFoefTo79cZHwMfmp/LK+12IYGEmy9HYiV8vQ== X-Received: by 2002:a17:907:7f1e:b0:989:1f66:e42f with SMTP id qf30-20020a1709077f1e00b009891f66e42fmr12083006ejc.62.1687597348344; Sat, 24 Jun 2023 02:02:28 -0700 (PDT) Received: from [192.168.42.222] (194-45-78-10.static.kviknet.net. [194.45.78.10]) by smtp.gmail.com with ESMTPSA id b11-20020a170906194b00b00986e6a7d230sm641704eje.168.2023.06.24.02.02.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 24 Jun 2023 02:02:27 -0700 (PDT) From: Jesper Dangaard Brouer X-Google-Original-From: Jesper Dangaard Brouer Message-ID: <435d1630-c3f4-97fb-b6fe-9795d1f0bf33@redhat.com> Date: Sat, 24 Jun 2023 11:02:26 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 To: Stanislav Fomichev , Jesper Dangaard Brouer References: <20230621170244.1283336-1-sdf@google.com> <20230621170244.1283336-4-sdf@google.com> <57b9fc14-c02e-f0e5-148d-a549ebab6cf6@brouer.com> In-Reply-To: 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: OCSBUPDEAUE7XPLFN35ZL5CD6J2BZSXJ X-Message-ID-Hash: OCSBUPDEAUE7XPLFN35ZL5CD6J2BZSXJ 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, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, martin.lau@linux.dev, song@kernel.org, yhs@fb.com, john.fastabend@gmail.com, kpsingh@kernel.org, haoluo@google.com, jolsa@kernel.org, =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , "Karlsson, Magnus" , "xdp-hints@xdp-project.net" X-Mailman-Version: 3.3.8 Precedence: list Subject: [xdp-hints] Re: [RFC bpf-next v2 03/11] xsk: Support XDP_TX_METADATA_LEN List-Id: XDP hardware hints design discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: DQoNCk9uIDIzLzA2LzIwMjMgMTkuNDEsIFN0YW5pc2xhdiBGb21pY2hldiB3cm90ZToNCj4gT24g RnJpLCBKdW4gMjMsIDIwMjMgYXQgMzoyNOKAr0FNIEplc3BlciBEYW5nYWFyZCBCcm91ZXINCj4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