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 A000D4412D; Sun, 2 Jun 2024 04:45:43 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2B9764028A; Sun, 2 Jun 2024 04:45:43 +0200 (CEST) Received: from mail-qt1-f176.google.com (mail-qt1-f176.google.com [209.85.160.176]) by mails.dpdk.org (Postfix) with ESMTP id 53BBE40042 for ; Sun, 2 Jun 2024 04:45:41 +0200 (CEST) Received: by mail-qt1-f176.google.com with SMTP id d75a77b69052e-43fe2d17834so19172321cf.3 for ; Sat, 01 Jun 2024 19:45:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1717296340; x=1717901140; darn=dpdk.org; h=mime-version:references:in-reply-to:message-id:date:subject:to:from :from:to:cc:subject:date:message-id:reply-to; bh=KNaBKM3OGzVQ5YLQc0AywtSs1yCvVuSUlzHuxgRrzsg=; b=alyjvpWNi9F/ZTKX0K4NCKvVEBhG9Bsj5rhY7CNjnloLd3X6/Er4grMn1khGVpAhAz PQEStOLKVdQ7zmAz7qp9IzmNXv1XQz5j2wuUmWFDTlvFY2YrV57ImHajQ8D2ZK+uQOK+ xVG7Wu85THGBHdtRTK2AtAqq6HqxgKn0HcwwA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717296340; x=1717901140; h=mime-version:references:in-reply-to:message-id:date:subject:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=KNaBKM3OGzVQ5YLQc0AywtSs1yCvVuSUlzHuxgRrzsg=; b=ugBD3puG+msY5QpzvWSnwrwHYN2N3jbkSCZ2iUnpZWaDhCYIT+NNOnqLPxY4F+2H3d wt2lilenKDNzQawM4r0OW3qrZkrYIc4EqJfCyZCJTDvIFhCuzs8nr3E8fnQ7xyBPOEuk Yxm6JhkY2uzghwzetzX7yn2VQDZHGwUpURLV1zLQl0LAVEsj0VbzDpdy/p1813Cf8Anf zU+40EWQbvL0NcdMXYEFKFqTVmE6D9nyemKoos8Fw/cfFVOrtHSa7AIqpyWLlZ8T29w4 zOVNrphg3gajiR2j9uj7QVhoFJMi60BOc0b2ysLeKisNc8KovvdR4zXlZrTACL9FOr7T U2WQ== X-Gm-Message-State: AOJu0YxhGAfh96N5AkwEZm9RMbw9bEPrFTNlgBgjWOqaRW8QhleLcoQw jroSe9IXQiwfO3978xZn1dFTgOdmc2Z2fjyasps9leP5whva1qznR8Vi+krsjceGIpOcU1nIBuz I20ISuUBUMrhHcaaD8Ac8wABUQQtuLfR355YmKKHS54P744GPooVqRR96aUvDIuB1axL7aFOF6D ircynG6P16vd+ODGgYzynjsx5VokfJBfcdSs5aog== X-Google-Smtp-Source: AGHT+IHp+JbSIuLKY2rEtuwZEHM0ireCj3fHPZ7soGD5Y6KIs4ntRofdZkVsDBw3SV7TcqTTQC/MZA== X-Received: by 2002:a05:622a:86:b0:43a:ef4e:7b2c with SMTP id d75a77b69052e-43ff525afdbmr80199741cf.14.1717296339824; Sat, 01 Jun 2024 19:45:39 -0700 (PDT) Received: from dhcp-10-193-55-224.dhcp.broadcom.net ([192.19.224.250]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-43ff23e0de8sm24579281cf.40.2024.06.01.19.45.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 Jun 2024 19:45:39 -0700 (PDT) From: Damodharam Ammepalli To: dev@dpdk.org Subject: [PATCH v2 0/4] Add support for link speed lanes Date: Sat, 1 Jun 2024 19:45:00 -0700 Message-Id: <20240602024504.179506-1-damodharam.ammepalli@broadcom.com> X-Mailer: git-send-email 2.39.3 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" 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 NIC adapters can support speeds with different lanes configuration. This patchset will allow users: - get the Lanes capability per speed supported by the ethernet controller. - set the lanes configuration using a new CLI - Display the user configured lanes -- v1->v2 Added speed lanes capability and display on testpmd shell. testpmd> show port 0 speed_lanes capabilities Supported speeds Valid lanes ----------------------------------- 10 Gbps 1 25 Gbps 1 40 Gbps 4 50 Gbps 1 2 100 Gbps 1 2 4 200 Gbps 2 4 400 Gbps 4 8 testpmd> Damodharam Ammepalli (4): lib/ethdev: Add link_speed lanes support into rte lib testpmd: Add speed lanes to testpmd config and show command lib/ethdev: add support for displaying lanes capability testpmd: add support for displaying lanes capability app/test-pmd/cmdline.c | 270 +++++++++++++++++++++++++++++++++++++ app/test-pmd/config.c | 13 +- lib/ethdev/ethdev_driver.h | 70 ++++++++++ lib/ethdev/rte_ethdev.c | 39 ++++++ lib/ethdev/rte_ethdev.h | 84 ++++++++++++ lib/ethdev/version.map | 3 + 6 files changed, 475 insertions(+), 4 deletions(-) -- 2.39.3 -- This electronic communication and the information and any files transmitted with it, or attached to it, are confidential and are intended solely for the use of the individual or entity to whom it is addressed and may contain information that is confidential, legally privileged, protected by privacy laws, or otherwise restricted from disclosure to anyone else. If you are not the intended recipient or the person responsible for delivering the e-mail to the intended recipient, you are hereby notified that any use, copying, distributing, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited. If you received this e-mail in error, please return the e-mail to the sender, delete it from your computer, and destroy any printed copy of it.