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 B1B139FD369 for ; Wed, 12 Apr 2023 14:43:20 +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=ICvrOiy8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1681303399; 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=2cip69uvEtYr/5frxYNZac25fuawKyNR+cs4ZJgFBxs=; b=ICvrOiy8U0pd77Itw0itae6wXFv9kKu2Edp8CI6wBgwWe9XUmnF9oNtZ3LlSAwYXiQUrMg KAzxAhvFxB+mdpmvpVEjiqCN5aC9NJ1xj7idROozFuPjSfty8+zEWKOxuyiGxFUZJ1+8m8 6EkvUaSrVY/+Ao9iI77ayodKAqNa7yk= 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-503-i-jHLEqEMHGnt4iqOT0Nhw-1; Wed, 12 Apr 2023 08:43:15 -0400 X-MC-Unique: i-jHLEqEMHGnt4iqOT0Nhw-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 CB313800B23; Wed, 12 Apr 2023 12:43:13 +0000 (UTC) Received: from firesoul.localdomain (unknown [10.45.242.24]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6422A40C6E71; Wed, 12 Apr 2023 12:43:13 +0000 (UTC) Received: from [10.1.1.1] (localhost [IPv6:::1]) by firesoul.localdomain (Postfix) with ESMTP id AB4EC307372E8; Wed, 12 Apr 2023 14:43:12 +0200 (CEST) From: Jesper Dangaard Brouer To: bpf@vger.kernel.org, Stanislav Fomichev , =?utf-8?q?Toke_H=C3=B8iland-J=C3=B8rgensen?= Date: Wed, 12 Apr 2023 14:43:12 +0200 Message-ID: <168130339265.150247.18079994022961741945.stgit@firesoul> In-Reply-To: <168130333143.150247.11159481574477358816.stgit@firesoul> References: <168130333143.150247.11159481574477358816.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: C3P2ZXM6V5WX67VOEZFBUTFPQRAQWNGO X-Message-ID-Hash: C3P2ZXM6V5WX67VOEZFBUTFPQRAQWNGO 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 V8 7/7] 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 dHMvYnBmL3Byb2dzL3hkcF9od19tZXRhZGF0YS5jICB8ICAgMTEgKysrKystLS0tLS0NCiB0b29s cy90ZXN0aW5nL3NlbGZ0ZXN0cy9icGYvcHJvZ3MveGRwX21ldGFkYXRhLmMgICB8ICAgIDYgKysr LS0tDQogdG9vbHMvdGVzdGluZy9zZWxmdGVzdHMvYnBmL3Byb2dzL3hkcF9tZXRhZGF0YTIuYyAg fCAgICA3ICsrKystLS0NCiB0b29scy90ZXN0aW5nL3NlbGZ0ZXN0cy9icGYveGRwX2h3X21ldGFk YXRhLmMgICAgICB8ICAgIDYgKysrKystDQogdG9vbHMvdGVzdGluZy9zZWxmdGVzdHMvYnBmL3hk cF9tZXRhZGF0YS5oICAgICAgICAgfCAgICA0ICsrKysNCiA2IGZpbGVzIGNoYW5nZWQsIDIzIGlu c2VydGlvbnMoKyksIDEzIGRlbGV0aW9ucygtKQ0KDQpkaWZmIC0tZ2l0IGEvdG9vbHMvdGVzdGlu Zy9zZWxmdGVzdHMvYnBmL3Byb2dfdG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