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 2C1BA9FD4F9 for ; Wed, 12 Apr 2023 20:35:47 +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=eYjzhbCZ DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1681324546; 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=cSVYWifKD7SQGSjuGFZiN+et2zmCoRo8LLSGhODudbI=; b=eYjzhbCZe23Gja2cwpK8D81DSopJymHizKtFwJci4SpfB8Ljo6AQ0oPPwmsyVFwjR1dKzK Osg88Ily2L4STwDdRLf0KW48aA10TRI2A3arPE3ggNEUy+Oc0eaNhplbGEhn/GtS32ze4o rmq8gcKNle8FLRq1c5iL0ssWd7MbEJU= 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-119-IbczlyyOObSkDDMDQ8yE3Q-1; Wed, 12 Apr 2023 14:35:39 -0400 X-MC-Unique: IbczlyyOObSkDDMDQ8yE3Q-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 92D0D800B23; Wed, 12 Apr 2023 18:35:38 +0000 (UTC) Received: from firesoul.localdomain (unknown [10.45.242.24]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4DB5940C20FA; Wed, 12 Apr 2023 18:35:38 +0000 (UTC) Received: from [10.1.1.1] (localhost [IPv6:::1]) by firesoul.localdomain (Postfix) with ESMTP id 64F69307372E8; Wed, 12 Apr 2023 20:35:37 +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 20:35:37 +0200 Message-ID: <168132453736.317773.2296218934638816233.stgit@firesoul> In-Reply-To: <168132448251.317773.2526885806604122764.stgit@firesoul> References: <168132448251.317773.2526885806604122764.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.1 Message-ID-Hash: DLMJRVGDHGFOBQFPNI55JPOYTL4SBVVG X-Message-ID-Hash: DLMJRVGDHGFOBQFPNI55JPOYTL4SBVVG 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 V9 5/6] mlx4: bpf_xdp_metadata_rx_hash add xdp rss hash type List-Id: XDP hardware hints design discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: VXBkYXRlIEFQSSBmb3IgYnBmX3hkcF9tZXRhZGF0YV9yeF9oYXNoKCkgd2l0aCBhcmcgZm9yIHhk cCByc3MgaGFzaCB0eXBlDQp2aWEgbWF0Y2hpbmcgaW5kaXZpZHVhbCBDb21wbGV0aW9uIFF1ZXVl IEVudHJ5IChDUUUpIHN0YXR1cyBiaXRzLg0KDQpGaXhlczogYWI0NjE4MmQwZGNiICgibmV0L21s eDRfZW46IFN1cHBvcnQgUlggWERQIG1ldGFkYXRhIikNClNpZ25lZC1vZmYtYnk6IEplc3BlciBE YW5nYWFyZCBCcm91ZXIgPGJyb3VlckByZWRoYXQuY29tPg0KQWNrZWQtYnk6IFRva2UgSMO4aWxh bmQtSsO4cmdlbnNlbiA8dG9rZUByZWRoYXQuY29tPg0KQWNrZWQtYnk6IFN0YW5pc2xhdiBGb21p Y2hldiA8c2RmQGdvb2dsZS5jb20+DQotLS0NCiBkcml2ZXJzL25ldC9ldGhlcm5ldC9tZWxsYW5v eC9tbHg0L2VuX3J4LmMgfCAgIDE5ICsrKysrKysrKysrKysrKysrKy0NCiAxIGZpbGUgY2hhbmdl ZCwgMTggaW5zZXJ0aW9ucygrKSwgMSBkZWxldGlvbigtKQ0KDQpkaWZmIC0tZ2l0IGEvZHJpdmVy cy9uZXQvZXRoZXJuZXQvbWVsbGFub3gvbWx4NC9lbl9yeC5jIGIvZHJpdmVycy9uZXQvZXRoZXJu ZXQvbWVsbGFub3gvbWx4NC9lbl9yeC5jDQppbmRleCA3M2QxMGFhNGM1MDMuLjMzMjQ3MmZlNDk5 MCAxMDA2NDQNCi0tLSBhL2RyaXZlcnMvbmV0L2V0aGVybmV0L21lbGxhbm94L21seDQvZW5fcngu Yw0KKysrIGIvZHJpdmVycy9uZXQvZXRoZXJuZXQvbWVsbGFub3gvbWx4NC9lbl9yeC5jDQpAQCAt Njg1LDExICs2ODUsMjggQEAgaW50IG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