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 375949FA3DF for ; Thu, 30 Mar 2023 20:52:21 +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=TPyzlF64 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1680202340; 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=4YBDK9oa7IRSnGDsV6eC1sZG+Y0J3aQFUW2e3I1262Q=; b=TPyzlF64SKTrVky1PJygK378xFWnbmVFgsJKp9p3R86VL61AX3C+9APFPPGTd4Wywk4K46 mmYA0flS1oZxYOJzDQqE1P4V0EK0B802He7d84nchAw7VhB01yC4vRVTE9uXr1CO+sGTNf pelfoo++NYy4Cst2y1Z+e6kaVoEl7bg= Received: from mail-lf1-f69.google.com (mail-lf1-f69.google.com [209.85.167.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-263-wlHCKiw0NFKIOze4mltkDQ-1; Thu, 30 Mar 2023 14:52:19 -0400 X-MC-Unique: wlHCKiw0NFKIOze4mltkDQ-1 Received: by mail-lf1-f69.google.com with SMTP id b11-20020a19670b000000b004e9b307b224so7643872lfc.7 for ; Thu, 30 Mar 2023 11:52:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680202338; 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=4YBDK9oa7IRSnGDsV6eC1sZG+Y0J3aQFUW2e3I1262Q=; b=xSsx1ELHc8IDNzq33/ENcC74ARTiD+Qfa6ggDWnPDRaZmMAVRaDKKjkb+ptY0C+E9m uTFbkKzJAhEpNU6qA7PMWabvMesMwanbDbNG7bXSTnha2xXrS8XRaw0GqElli9ZUeiGy ilutZVKMwT8yEh6Pe4j/Dakq2LSo4RNMGUYLK0nUKckF7+mWHjUAIDRF+HOhiEcIRODg qmIImKjWD0IqugV7uD9Q57HJE4NjBeH5ks29QhdTWmbcOlDtP+voSTO1BDJwAb5Lsgb2 GPrQpFaiW+I1CtO7r1sDCWF7Ufs3lpZ/AgH5C68/SGE4KTkfRZ6YwUXXdxX6tyVvMV4J ih1w== X-Gm-Message-State: AAQBX9ca8I19UuryDQ3AcgreVLBzbV6jnvRzgNYj7IPyXmU/6xCdbj5N 53Xv1mUfI8k8ox0VsljDyOXEErak/LHDrCKBjgmUNNFa7LtzmEbrW1L9elZOkN0r8mJiSs9rY1z lPmFZ48bbsrIyhMGthltv X-Received: by 2002:ac2:4219:0:b0:4db:28ce:e5ef with SMTP id y25-20020ac24219000000b004db28cee5efmr6695650lfh.0.1680202337876; Thu, 30 Mar 2023 11:52:17 -0700 (PDT) X-Google-Smtp-Source: AKy350ZEG6X1LBEENo7FPVYgXURXiHltW2Oz5D1+hNuhYNjG0DAXLBytpTSBkNusr0t4A1SO/5Oneg== X-Received: by 2002:ac2:4219:0:b0:4db:28ce:e5ef with SMTP id y25-20020ac24219000000b004db28cee5efmr6695639lfh.0.1680202337545; Thu, 30 Mar 2023 11:52:17 -0700 (PDT) Received: from [192.168.42.100] (83-90-141-187-cable.dk.customer.tdc.net. [83.90.141.187]) by smtp.gmail.com with ESMTPSA id d1-20020ac24c81000000b004d85789cef1sm53324lfl.49.2023.03.30.11.52.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 30 Mar 2023 11:52:16 -0700 (PDT) From: Jesper Dangaard Brouer X-Google-Original-From: Jesper Dangaard Brouer Message-ID: Date: Thu, 30 Mar 2023 20:52:15 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 To: Stanislav Fomichev , Jesper Dangaard Brouer References: <168003451121.3027256.13000250073816770554.stgit@firesoul> <168003455815.3027256.7575362149566382055.stgit@firesoul> <811724e2-cdd6-15fe-b176-9dfcdbd98bad@redhat.com> <7ce10be6-bda2-74fc-371b-9791558af5b5@redhat.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: K4BOCFX24D2JIIRPFI6655EZ2XD2FPYF X-Message-ID-Hash: K4BOCFX24D2JIIRPFI6655EZ2XD2FPYF 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, 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 X-Mailman-Version: 3.3.8 Precedence: list Subject: [xdp-hints] Re: [PATCH bpf RFC 1/4] xdp: rss hash types representation List-Id: XDP hardware hints design discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: DQoNCk9uIDMwLzAzLzIwMjMgMTkuMTEsIFN0YW5pc2xhdiBGb21pY2hldiB3cm90ZToNCj4gT24g MDMvMzAsIEplc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