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 9BC1BA0503; Wed, 18 May 2022 21:47:05 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 48E3440156; Wed, 18 May 2022 21:47:05 +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 39B51400D6 for ; Wed, 18 May 2022 21:47:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652903222; 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=LJ/sdaMt1oHgR1bt39I46vD03VmBDVrBxNqbZ7yUDEw=; b=U9Yzmh5p25jHFKTAYG1g3ntKjsJBqL3PxBZir/LX/6+AMEi9UQdKRO+eRuTMWBpU1cK6Ix hsySL35t7Geu6QqZpWjO84ujpIH+R3guBy0D7ECKo1I7K3/NFnpd9qx22NFVb1YbHuTTNl ufsf1wM7QjeQsWNKpys32rdBHNb3AI0= 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-288-f7-S9mqRMfaAiomrZPxPLA-1; Wed, 18 May 2022 15:47:01 -0400 X-MC-Unique: f7-S9mqRMfaAiomrZPxPLA-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 CF4A7811E75; Wed, 18 May 2022 19:47:00 +0000 (UTC) Received: from fchome.home (unknown [10.40.195.61]) by smtp.corp.redhat.com (Postfix) with ESMTP id BF707492C14; Wed, 18 May 2022 19:46:58 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: thomas@monjalon.net Subject: [RFC PATCH v2 0/5] Split driver specific commands out of testpmd Date: Wed, 18 May 2022 21:46:44 +0200 Message-Id: <20220518194649.1868574-1-david.marchand@redhat.com> In-Reply-To: <20220513075718.18674-1-david.marchand@redhat.com> References: <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? -- David Marchand Changes since RFC v1: - added a cleanup as patch 1, to make all parser symbols static, - fixed registering issue in patch 1, - moved more i40e specific commands, fixed checkpatch warnings, David Marchand (5): app/testpmd: mark cmdline symbols as static 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 | 15402 +++++++------------ app/test-pmd/config.c | 43 - app/test-pmd/meson.build | 8 +- app/test-pmd/testpmd.c | 18 +- app/test-pmd/testpmd.h | 23 +- 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 | 2718 ++++ drivers/net/i40e/meson.build | 2 + drivers/net/ixgbe/ixgbe_testpmd.c | 1147 ++ drivers/net/ixgbe/meson.build | 2 + meson.build | 2 + 13 files changed, 10272 insertions(+), 10136 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.36.1