From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id 7B5054418F;
	Sun, 16 Jun 2024 19:39:01 +0200 (CEST)
Received: from mails.dpdk.org (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id 87E4B40263;
	Sun, 16 Jun 2024 19:38:59 +0200 (CEST)
Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com
 [209.85.167.54]) by mails.dpdk.org (Postfix) with ESMTP id 379FB40042
 for <dev@dpdk.org>; Sun, 16 Jun 2024 19:38:58 +0200 (CEST)
Received: by mail-lf1-f54.google.com with SMTP id
 2adb3069b0e04-52bd48cf36bso4331860e87.3
 for <dev@dpdk.org>; Sun, 16 Jun 2024 10:38:58 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1718559537; x=1719164337; darn=dpdk.org;
 h=content-transfer-encoding:mime-version:message-id:date:subject:cc
 :to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=j4ZglzofgZIWaDJhlSnnZaiWFKNpbWe4P/e7zuqRWR0=;
 b=RIMRDQvHB+eGTJqjfvAqWe2o4z+EbWq7SH8JLKhEObpAkYBNeunP+rDyawmsv2fXus
 4auWta3IA0QG67glpGHXW5yf8tv9YEmu73RZ+HJ2LUk+/Jm987lRKPiOERJeCAxSGhi/
 rHzOZPYiP8JsNR0REKrbZEKRqrtL4QIZUia0WJU4T4TZa8LDXQdDhm+Y1yWzyieOQ+eL
 PB/1Q4mbAEaGRu45VrRIsg+20COxnRSNXgHr8YpxDnc7fvEPgWcs9zLE/9kOD6LosPig
 D+4o+KB9/fL00EGQ9oPPO6CXplx/y+Ct2ydMl6i+LuXSD+STolWakTV0T3w0VRMnNu1O
 vp0w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1718559537; x=1719164337;
 h=content-transfer-encoding:mime-version:message-id:date:subject:cc
 :to:from:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=j4ZglzofgZIWaDJhlSnnZaiWFKNpbWe4P/e7zuqRWR0=;
 b=fiXC91Tf2lG/HLdK55UkLAmYO6la3EI/blA2eVpBNfFYuhyvsyJlNzLnrmy34oShha
 SDYYWZJMT82eavxjyyu2ZFxkd/WTIFxAAd52oBP7wloTRYGzjaHVXAy35lrWUGhwjzHa
 +sKONiowe0LLRxYzRJZIbWSAe/WgqgcjcvXAtgkvsj2FrG5hMCJuATZvR0UqdlyCRS/N
 GHAEqfc9+I71OGiqsA9bfJO5u7t0lEp8yNbzIeivZghunyUJckv0mzo+gl5jW0r3cKNf
 Q9LSB4cmNygcofFCKw11dKifRDagqxGK4g3eOGgIDLStMa+O50syikX3aywOS9IP5tTG
 mSVQ==
X-Gm-Message-State: AOJu0YxNW23KYnlZ9ZF+23nGZPLiIo5M24qwN0hWlmg1MAqqu7/QLWO1
 1BjAsKmIut+BRp1851d+3RzDnYT4kJdi02GgCrJDDUKpnOZW5qu5
X-Google-Smtp-Source: AGHT+IGWmBBok8ZZwznUrfOCOHsPdjLdcaZObQA2syE3TD3Nku8+W2feq1FDXb5YRgSzYZFJsoY7Gg==
X-Received: by 2002:a05:6512:4846:b0:52b:c1f1:5809 with SMTP id
 2adb3069b0e04-52ca6e6e3e6mr5723311e87.39.1718559535205; 
 Sun, 16 Jun 2024 10:38:55 -0700 (PDT)
Received: from saturn.. ([85.172.100.87]) by smtp.gmail.com with ESMTPSA id
 2adb3069b0e04-52ca28720a1sm1030208e87.141.2024.06.16.10.38.54
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sun, 16 Jun 2024 10:38:54 -0700 (PDT)
From: Igor Gutorov <igootorov@gmail.com>
To: dsosnowski@nvidia.com, viacheslavo@nvidia.com, orika@nvidia.com,
 suanmingm@nvidia.com, matan@nvidia.com
Cc: dev@dpdk.org,
	Igor Gutorov <igootorov@gmail.com>
Subject: [PATCH 0/1] net/mlx5: show rx/tx descriptor ring limitations in
 rte_eth_dev_info
Date: Sun, 16 Jun 2024 20:38:02 +0300
Message-ID: <20240616173803.424025-1-igootorov@gmail.com>
X-Mailer: git-send-email 2.45.2
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org

Hello,

This patch fixes an issue with my ConnectX5 NIC (15b3:1019) showing
65535 as the maximum number of RX descriptors.

So, a disclaimer: I don't know whether other NICs (ConnectX6?) allow
larger values. The value of 8192 was obtained experimentally with
ethtool: ethtool -G *nic* rx 8192, as I do not have the NIC
programmer's manual.

Using anything larger than 8192 resulted in an error. Similarly,
anything in the [8193, 32768) range with the DPDK PMD results in an rx
queue allocation failure.

Igor Gutorov (1):
  net/mlx5: show rx/tx descriptor ring limitations in rte_eth_dev_info

 drivers/net/mlx5/mlx5_defs.h   | 3 +++
 drivers/net/mlx5/mlx5_ethdev.c | 5 ++++-
 2 files changed, 7 insertions(+), 1 deletion(-)

--
2.45.2