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 9FB12A00C3; Fri, 13 May 2022 09:57:25 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4C104410EE; Fri, 13 May 2022 09:57:25 +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 8161340DDE for ; Fri, 13 May 2022 09:57:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652428644; 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=UO7z9KYVq3ZD74td1+1Jp3R9ZHkgdoJ7PzgbDiiSBfo=; b=CEzigh8/LKf5CSvtsTpld8kHYoAn8AHQZjtpVtkDalSPrL7jUVY+cNL1TWiHbcitwy7Nah Kn6XaLMbUEzpX6i+BwpmE50jAaij9/qZWSlLV1zI75jLVSppL3OSWULVxx0gDW5BPW83/t 1iihlG+fqJbjjlyZWfKtsSONC3sG9ss= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-558-Na7HrnvDPouiIe_hNWTT7A-1; Fri, 13 May 2022 03:57:23 -0400 X-MC-Unique: Na7HrnvDPouiIe_hNWTT7A-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id AEB841C05ACB; Fri, 13 May 2022 07:57:22 +0000 (UTC) Received: from dmarchan.remote.csb (unknown [10.40.193.195]) by smtp.corp.redhat.com (Postfix) with ESMTP id EEE77401E89; Fri, 13 May 2022 07:57:21 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: thomas@monjalon.net Subject: [RFC PATCH 0/4] Split driver specific commands out of testpmd Date: Fri, 13 May 2022 09:57:14 +0200 Message-Id: <20220513075718.18674-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.10 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=david.marchand@redhat.com 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 Hello, Following TB decision and recent discussions on the driver specific commands in testpmd, here is a proposal on how the split could be done. For now, this series simply moves the testpmd code in the driver directory. The driver specific testpmd code is still compiled as part of testpmd compilation via a global meson testpmd_driver_sources list. TODO: - ixgbe bypass commands in testpmd are "dead" code since switch to meson, as the RTE_LIBRTE_IXGBE_BYPASS define is not set while compiling testpmd. I am tempted to simply drop those, since no one complained about issue for the last two years. For now, this series reinstates them. - this series keeps the command names as is. We could consolidate with a clear prefix so that users directly know they are exerting a special feature that makes no sense on other hw. For this, I had in mind introducing a "driver" top level prefix, where drivers would hook their specific stuff. For example: testpmd> driver ixgbe set vf split drop (port_id) (vf_id) (on|off) - the documentation of those commands is left untouched, we should probably move any existing doc into the driver documentation itself. testpmd documentation could then have a generic "Driver specific commands" section pointing at all other driver docs. Opinions on this first draft? -- David Marchand David Marchand (4): app/testpmd: register driver specific commands net/bonding: move testpmd commands net/i40e: move testpmd commands net/ixgbe: move testpmd commands app/test-pmd/cmdline.c | 9284 +++++++------------- app/test-pmd/meson.build | 8 +- app/test-pmd/testpmd.c | 18 +- app/test-pmd/testpmd.h | 21 +- drivers/meson.build | 5 + drivers/net/bonding/meson.build | 1 + drivers/net/bonding/rte_eth_bond_testpmd.c | 1037 +++ drivers/net/i40e/i40e_testpmd.c | 655 ++ drivers/net/i40e/meson.build | 2 + drivers/net/ixgbe/ixgbe_testpmd.c | 1147 +++ drivers/net/ixgbe/meson.build | 2 + meson.build | 2 + 12 files changed, 6216 insertions(+), 5966 deletions(-) create mode 100644 drivers/net/bonding/rte_eth_bond_testpmd.c create mode 100644 drivers/net/i40e/i40e_testpmd.c create mode 100644 drivers/net/ixgbe/ixgbe_testpmd.c -- 2.23.0