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 AB4D29FD281 for ; Wed, 12 Apr 2023 13:31:26 +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=C+AHA7od DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1681299085; 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=Nk2HN4LYcyDaWmfUhz3C+OW0ZEf1uFXTpNavnDkV0cc=; b=C+AHA7od5z7QO7JXAYtpiAzj0AXNHkOHJMES7tPIKe2/HfhgsHtDgrnwNcZxqMx9GHlCau chKfyjB11/Yz8Dlzs+wzj2QKJjpuH0NgCHaU/lpdpZxfSb33deVkmZDIiK/083eS/jTlUp HhtqyaMvhn+MM/weekHjHgYmayX/2PU= Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-169-19dlsWO5NWWfYPfbuHvFcw-1; Wed, 12 Apr 2023 07:31:22 -0400 X-MC-Unique: 19dlsWO5NWWfYPfbuHvFcw-1 Received: by mail-ej1-f71.google.com with SMTP id a640c23a62f3a-94a56ea01e9so130113466b.1 for ; Wed, 12 Apr 2023 04:31:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681299081; x=1683891081; 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=Nk2HN4LYcyDaWmfUhz3C+OW0ZEf1uFXTpNavnDkV0cc=; b=4f+h5FE1MGRGFPqOD+/qLcd4vOCXoAICPGNJoOqeIAvOUrp6So6FZOCD36LZculz0r CqXUQEAXiYwY+RG0olu/ernbls6El5onjzuGu5t921QUzYNYvzvx6b6A5PQlom3NdV+f 2XI3NRzn1IE9iGNXNAj013OusThm5R1ijgdfE5ld2pGxeCXxztJ2WJvTHmjSa2ctQ/yw 8hUiQJ7PWIBASL4OlagsYx9AMO8yY2OH5OmI3oBEIZST3jMyAetAUgdxINsmpJKMRNmj x+vX6HzjH4yLvQkQeK+k3dCWyQJrcj8ncSmxtm7xwtsL7A+76oUjKkFziRg03Z3yZchz Kl6w== X-Gm-Message-State: AAQBX9dlixoZLr2/LwfhuiXkvK1cIP5fuL3LfkkWpX+VCMuNBYMHtUjl G6KiAsEW0zA/zwCPbERrCp9FIPuxDb+F/ja7KqgtrsRk8ELCPh2t8upID82W4pyukDPAgl0ehzu r1QQH07lAz9yQjwQRmTjD X-Received: by 2002:a05:6402:752:b0:504:b5e2:1106 with SMTP id p18-20020a056402075200b00504b5e21106mr1901068edy.31.1681299081170; Wed, 12 Apr 2023 04:31:21 -0700 (PDT) X-Google-Smtp-Source: AKy350bWSnMhtYTS7XybJW7QFtVttBmNYOBb1gK7QmiwkJ3R5PmWWhPKTh95b+l/GZUnSauQBragxw== X-Received: by 2002:a05:6402:752:b0:504:b5e2:1106 with SMTP id p18-20020a056402075200b00504b5e21106mr1901027edy.31.1681299080782; Wed, 12 Apr 2023 04:31:20 -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 o2-20020a056402444200b00501c2a9e16dsm6523178edb.74.2023.04.12.04.31.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 12 Apr 2023 04:31:20 -0700 (PDT) From: Jesper Dangaard Brouer X-Google-Original-From: Jesper Dangaard Brouer Message-ID: <8cd2d200-09ec-57c2-0619-963dfe5efd58@redhat.com> Date: Wed, 12 Apr 2023 13:31:18 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 To: Simon Horman References: <168098183268.96582.7852359418481981062.stgit@firesoul> <168098189656.96582.16141211495116669329.stgit@firesoul> 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: PQ6CRYI523OLBGUFMXGRFVVKAFKZ6OY3 X-Message-ID-Hash: PQ6CRYI523OLBGUFMXGRFVVKAFKZ6OY3 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, Stanislav Fomichev , =?UTF-8?B?VG9rZSBIw7hpbGFuZC1Kw7hyZ2Vu?= =?UTF-8?Q?sen?= , 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] Re: [PATCH bpf V7 4/7] mlx5: 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-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