From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7327F42ECA; Thu, 20 Jul 2023 10:15:18 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0CC5C40E2D; Thu, 20 Jul 2023 10:15:18 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 5BC1D40DF5 for ; Thu, 20 Jul 2023 10:15:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1689840915; 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; bh=JJT2UvAc1oI/PnjySJkIEj14HqVo1Uu10OK1tQhIrr8=; b=BZnoaLzIPFFJfsaRd2RYrjnxvhE+g94atDhPBit/AI/PZY1c5gBp6PgASFau1Riw1UUuS+ zhKyQV5kII160W8eJHPRoRyD1hUVF+uO9fsW7YCf0EXIkDQLTMGDzzYJWE6kGXVQUS3BYG NMVOyDRVFsdAVEBW6Ul/H//UdbsLOyQ= 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-378-ZFACGNZIM12g3fgvEWRHpA-1; Thu, 20 Jul 2023 04:15:14 -0400 X-MC-Unique: ZFACGNZIM12g3fgvEWRHpA-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id D1EDA82A68C for ; Thu, 20 Jul 2023 08:15:13 +0000 (UTC) Received: from ringo.home (unknown [10.39.208.32]) by smtp.corp.redhat.com (Postfix) with ESMTP id 08B9D2166B26; Thu, 20 Jul 2023 08:15:12 +0000 (UTC) From: Robin Jarry To: dev@dpdk.org Cc: Robin Jarry , Abhiram R N Subject: [PATCH] usertools/rss: fix byte order of the default i40e key Date: Thu, 20 Jul 2023 10:15:01 +0200 Message-ID: <20230720081500.156361-2-rjarry@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org The key is represented as uint32 words in the driver source code but it is actually stored as little endian in the NIC registers. Fix the byte ordering in the python script. Fixes: 106a231ae528 ("usertools: add tool to generate balanced rss traffic flows") Reported-by: Abhiram R N Signed-off-by: Robin Jarry --- usertools/dpdk-rss-flows.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/usertools/dpdk-rss-flows.py b/usertools/dpdk-rss-flows.py index 4cdc524ddcb4..73821eb47125 100755 --- a/usertools/dpdk-rss-flows.py +++ b/usertools/dpdk-rss-flows.py @@ -179,13 +179,13 @@ def balanced_traffic( # i40e is the only driver that takes 52 bytes keys RSS_KEY_I40E = bytes( ( - 0x6b, 0x79, 0x39, 0x44, 0x23, 0x50, 0x4c, 0xb5, - 0x5b, 0xea, 0x75, 0xb6, 0x30, 0x9f, 0x4f, 0x12, - 0x3d, 0xc0, 0xa2, 0xb8, 0x02, 0x4d, 0xdc, 0xdf, - 0x33, 0x9b, 0x8c, 0xa0, 0x4c, 0x4a, 0xf6, 0x4a, - 0x34, 0xfa, 0xc6, 0x05, 0x55, 0xd8, 0x58, 0x39, - 0x3a, 0x58, 0x99, 0x7d, 0x2e, 0xc9, 0x38, 0xe1, - 0x66, 0x03, 0x15, 0x81, + 0x44, 0x39, 0x79, 0x6b, 0xb5, 0x4c, 0x50, 0x23, + 0xb6, 0x75, 0xea, 0x5b, 0x12, 0x4f, 0x9f, 0x30, + 0xb8, 0xa2, 0xc0, 0x3d, 0xdf, 0xdc, 0x4d, 0x02, + 0xa0, 0x8c, 0x9b, 0x33, 0x4a, 0xf6, 0x4a, 0x4c, + 0x05, 0xc6, 0xfa, 0x34, 0x39, 0x58, 0xd8, 0x55, + 0x7d, 0x99, 0x58, 0x3a, 0xe1, 0x38, 0xc9, 0x2e, + 0x81, 0x15, 0x03, 0x66, ) ) # fmt: on -- 2.41.0