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 561CF9F74BC for ; Wed, 22 Mar 2023 17:05:44 +0100 (CET) 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=FqVKtob4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1679501142; 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=R19EYQl/3a1OZn/7iEThbID+2P3CKP86RKDBkJY/6ig=; b=FqVKtob4ewrYCGN1hVqYrPLnILo3QOiSSH2L4FzbgLGVip+u0CORILZrxQimquzKo7xRmf 0IVRYrCqI8zxV3Qp2aJ6/+QwRDgmIdz95dUFKUX2kGmK1kqm/0qmcTGckgeSdiVX0wTp0A fkzrbP2gI5w2Ue4T74Lg/oCc4d3KZjU= Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-657-N6TOEVV8NYuMzlR0xevjww-1; Wed, 22 Mar 2023 12:05:15 -0400 X-MC-Unique: N6TOEVV8NYuMzlR0xevjww-1 Received: by mail-ed1-f71.google.com with SMTP id q13-20020a5085cd000000b004af50de0bcfso28264368edh.15 for ; Wed, 22 Mar 2023 09:05:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679501113; 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=R19EYQl/3a1OZn/7iEThbID+2P3CKP86RKDBkJY/6ig=; b=tFPj4VweROImUxIE9E7sxR09KxuR3LzKGPxQGxcp4GKjeXGtLoRz+WlTkQMWfRtC6P C7Lz7vkbvndZSvkT96bgTWg+ymfZSi6KzsWpNK8KQ9xodb977AUZ1qlJvqWcCjxJS44r /lo/rrl8isb+MqH5zM6inrdItgSUtzS/Gf0s3hoJbq5+tjPsAxSEa5Btixhg8tK4mqlT 9dpqnVnIlyUxrMFCCwDnonEzgJlj7pGM6C7TMTi+h6XNg07PlCLvtaL2czjYPe8FlV4R 0C8RbEQdkJDaEEoqMT8gRqs64R/ejQ7LB5Idsq0gl8v4binC480WEel/pWiAW5RZXtx5 zxZA== X-Gm-Message-State: AO0yUKW0BNMdzh7ELMEO69Xw6QUJxjvlWXrE2WNoN4zAqENKn4k3POD4 hgcRZI6h0agWEqoY4BSqcN7wwLsHaoPvGGNwbAprTSo8fsh7b1qTOm3Y9ch4marztN9z2x1AUGy hUwqoOXV53UlwJiEKSJBi X-Received: by 2002:a17:907:d9f:b0:930:3916:df1d with SMTP id go31-20020a1709070d9f00b009303916df1dmr9416078ejc.0.1679501113607; Wed, 22 Mar 2023 09:05:13 -0700 (PDT) X-Google-Smtp-Source: AK7set+eEG+9Nhjdu7pvohVMislIOYYj5JHPc8wzmjUCjfXB2jEEvGgjHeH7cZ4uUEeLZG8BmQFvpw== X-Received: by 2002:a17:907:d9f:b0:930:3916:df1d with SMTP id go31-20020a1709070d9f00b009303916df1dmr9416034ejc.0.1679501113325; Wed, 22 Mar 2023 09:05:13 -0700 (PDT) Received: from [192.168.42.100] (194-45-78-10.static.kviknet.net. [194.45.78.10]) by smtp.gmail.com with ESMTPSA id 22-20020a170906309600b0092f289b6fdbsm7373117ejv.181.2023.03.22.09.05.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 Mar 2023 09:05:12 -0700 (PDT) From: Jesper Dangaard Brouer X-Google-Original-From: Jesper Dangaard Brouer Message-ID: <080640fc-5835-26f1-2b20-ff079bd59182@redhat.com> Date: Wed, 22 Mar 2023 17:05:11 +0100 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 References: <167940634187.2718137.10209374282891218398.stgit@firesoul> <167940643669.2718137.4624187727245854475.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: EB2QEL2TVL7ZZWNKFWEZMP2SQAN4VGQI X-Message-ID-Hash: EB2QEL2TVL7ZZWNKFWEZMP2SQAN4VGQI 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-next V2 3/6] selftests/bpf: xdp_hw_metadata RX hash return code info List-Id: XDP hardware hints design discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: DQoNCk9uIDIxLzAzLzIwMjMgMTkuNDcsIFN0YW5pc2xhdiBGb21pY2hldiB3cm90ZToNCj4gT24g VHVlLCBNYXIgMjEsIDIwMjMgYXQgNjo0N+KAr0FNIEplc3BlciBEYW5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