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 A88679FADA4 for ; Sun, 2 Apr 2023 10:30:12 +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=gHHTvxA0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1680424211; 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=7ph+xCj8xMhhOD/k6lU+woQ5fwdBlFQod/UuSdGSJc0=; b=gHHTvxA0T0isghddvsUJZV1AXkTl9fU9EA1HJa2gp3QAmJlJHLoDye2Xt5T1uga1tBLtdz 2hDeWagpansBIdihCo1p8NHD2EF7WLjEsFbjc5HhzseyvDawcifkqBn4Y/za+1oCEeE188 SfMHQfI6uzXivuHiqxFAP9F7mYjVtLQ= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-137-y1d6fe74O4W305DMg0LcGQ-1; Sun, 02 Apr 2023 04:30:06 -0400 X-MC-Unique: y1d6fe74O4W305DMg0LcGQ-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E1449811E7C; Sun, 2 Apr 2023 08:30:04 +0000 (UTC) Received: from firesoul.localdomain (unknown [10.45.242.12]) by smtp.corp.redhat.com (Postfix) with ESMTP id 62DFF40C6EC4; Sun, 2 Apr 2023 08:30:04 +0000 (UTC) Received: from [10.1.1.1] (localhost [IPv6:::1]) by firesoul.localdomain (Postfix) with ESMTP id 77EA030736C72; Sun, 2 Apr 2023 10:30:03 +0200 (CEST) From: Jesper Dangaard Brouer To: bpf@vger.kernel.org, Stanislav Fomichev , =?utf-8?q?Toke_H=C3=B8iland-J=C3=B8rgensen?= Date: Sun, 02 Apr 2023 10:30:03 +0200 Message-ID: <168042420344.4051476.9107061652824513113.stgit@firesoul> In-Reply-To: <168042409059.4051476.8176861613304493950.stgit@firesoul> References: <168042409059.4051476.8176861613304493950.stgit@firesoul> User-Agent: StGit/1.4 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 Message-ID-Hash: WFX6PCIJTAY3DUEJ2QWW5DNWZ263GM5A X-Message-ID-Hash: WFX6PCIJTAY3DUEJ2QWW5DNWZ263GM5A X-MailFrom: brouer@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: Jesper Dangaard Brouer , netdev@vger.kernel.org, linux-kernel@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, anthony.l.nguyen@intel.com, yoong.siang.song@intel.com, boon.leong.ong@intel.com, intel-wired-lan@lists.osuosl.org, pabeni@redhat.com, jesse.brandeburg@intel.com, kuba@kernel.org, edumazet@google.com, john.fastabend@gmail.com, hawk@kernel.org, davem@davemloft.net, tariqt@nvidia.com, saeedm@nvidia.com, leon@kernel.org, linux-rdma@vger.kernel.org X-Mailman-Version: 3.3.8 Precedence: list Subject: [xdp-hints] [PATCH bpf V6 5/5] selftests/bpf: Adjust bpf_xdp_metadata_rx_hash for new arg List-Id: XDP hardware hints design discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: VXBkYXRlIEJQRiBzZWxmdGVzdHMgdG8gdXNlIHRoZSBuZXcgUlNTIHR5cGUgYXJndW1lbnQgZm9y IGtmdW5jDQpicGZfeGRwX21ldGFkYXRhX3J4X2hhc2guDQoNClNpZ25lZC1vZmYtYnk6IEplc3Bl ciBEYW5nYWFyZCBCcm91ZXIgPGJyb3VlckByZWRoYXQuY29tPg0KQWNrZWQtYnk6IFRva2UgSMO4 aWxhbmQtSsO4cmdlbnNlbiA8dG9rZUByZWRoYXQuY29tPg0KQWNrZWQtYnk6IFN0YW5pc2xhdiBG b21pY2hldiA8c2RmQGdvb2dsZS5jb20+DQotLS0NCiAuLi4vc2VsZnRlc3RzL2JwZi9wcm9nX3Rl c3RzL3hkcF9tZXRhZGF0YS5jICAgICAgICB8ICAgIDIgKysNCiAuLi4vdGVzdGluZy9zZWxmdGVz dHMvYnBmL3Byb2dzL3hkcF9od19tZXRhZGF0YS5jICB8ICAgMTQgKysrKysrKysrLS0tLS0NCiB0 b29scy90ZXN0aW5nL3NlbGZ0ZXN0cy9icGYvcHJvZ3MveGRwX21ldGFkYXRhLmMgICB8ICAgIDYg KysrLS0tDQogdG9vbHMvdGVzdGluZy9zZWxmdGVzdHMvYnBmL3Byb2dzL3hkcF9tZXRhZGF0YTIu YyAgfCAgICA3ICsrKystLS0NCiB0b29scy90ZXN0aW5nL3NlbGZ0ZXN0cy9icGYveGRwX2h3X21l dGFkYXRhLmMgICAgICB8ICAgIDIgKy0NCiB0b29scy90ZXN0aW5nL3NlbGZ0ZXN0cy9icGYveGRw X21ldGFkYXRhLmggICAgICAgICB8ICAgIDEgKw0KIDYgZmlsZXMgY2hhbmdlZCwgMjAgaW5zZXJ0 aW9ucygrKSwgMTIgZGVsZXRpb25zKC0pDQoNCmRpZmYgLS1naXQgYS90b29scy90ZXN0aW5nL3Nl bGZ0ZXN0cy9icGYvcHJvZ190ZXN0cy94Z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