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 89F2643380; Mon, 20 Nov 2023 17:25:07 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BF2A742E20; Mon, 20 Nov 2023 17:25:00 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id 6D63A42E1E for ; Mon, 20 Nov 2023 17:24:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1700497499; 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=YLXvMHKmsaVt2y2IEoRpFEIkhA4z0j8A4xP13OO+IhE=; b=adt/xDrLcQWQ4KIQyN4NtGz9IJZlm+Otcclo5mdQk5/79x2xoENKRum662kfXlLQ/7e9f0 mtSKpfQjwzN/V5s9OowtzoHo8O3CPPP4UI1dGz1hNybkBa0B33115WdK3149KsXHXNRKdW qWB/NWJlqK6MGXaQ3j+xYP0iGzqMTnY= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-679-n9llTLBzNuOguYD6wzF1Sg-1; Mon, 20 Nov 2023 11:24:55 -0500 X-MC-Unique: n9llTLBzNuOguYD6wzF1Sg-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 71310185A782; Mon, 20 Nov 2023 16:24:55 +0000 (UTC) Received: from localhost.localdomain (unknown [10.39.208.14]) by smtp.corp.redhat.com (Postfix) with ESMTP id C9CEF2166B26; Mon, 20 Nov 2023 16:24:54 +0000 (UTC) From: Robin Jarry To: dev@dpdk.org Cc: Sunil Kumar Kori Subject: [PATCH v2 3/3] usertools/rss: add CNXK well-known key Date: Mon, 20 Nov 2023 17:22:59 +0100 Message-ID: <20231120162256.74399-6-rjarry@redhat.com> In-Reply-To: <20231120162256.74399-4-rjarry@redhat.com> References: <20231023080710.240402-3-rjarry@redhat.com> <20231120162256.74399-4-rjarry@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.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 Add default RSS key for CNXK platforms. CNXK platform uses 48 bytes long key for hash calculations and a default RETA size of 64. Example: ~$ usertools/dpdk-rss-flows.py 8 28.0.0.0/24 40.0.0.0/24 -k cnxk SRC_IP DST_IP QUEUE 28.0.0.1 40.0.0.1 7 28.0.0.1 40.0.0.2 2 28.0.0.1 40.0.0.3 4 28.0.0.1 40.0.0.7 1 28.0.0.1 40.0.0.8 3 28.0.0.1 40.0.0.9 5 28.0.0.1 40.0.0.10 0 28.0.0.1 40.0.0.11 6 Co-authored-by: Sunil Kumar Kori Signed-off-by: Robin Jarry --- usertools/dpdk-rss-flows.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/usertools/dpdk-rss-flows.py b/usertools/dpdk-rss-flows.py index fd225a697f08..be9b3d760c03 100755 --- a/usertools/dpdk-rss-flows.py +++ b/usertools/dpdk-rss-flows.py @@ -226,6 +226,23 @@ def reta_size(self, num_queues: int) -> int: ), reta_size=512, ), + "cnxk": DriverInfo( + key=bytes( + ( + # fmt: off + # roc_nix_rss_key_default_fill, see drivers/common/cnxk/roc_nix_rss.c + # Marvell's cnxk NICs take 48 bytes keys + 0xfe, 0xed, 0x0b, 0xad, 0xfe, 0xed, 0x0b, 0xad, + 0xfe, 0xed, 0x0b, 0xad, 0xfe, 0xed, 0x0b, 0xad, + 0xfe, 0xed, 0x0b, 0xad, 0xfe, 0xed, 0x0b, 0xad, + 0xfe, 0xed, 0x0b, 0xad, 0xfe, 0xed, 0x0b, 0xad, + 0xfe, 0xed, 0x0b, 0xad, 0xfe, 0xed, 0x0b, 0xad, + 0xfe, 0xed, 0x0b, 0xad, 0xfe, 0xed, 0x0b, 0xad, + # fmt: on + ) + ), + reta_size=64, + ), } -- 2.42.0