Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 09F5CC433F5 for ; Fri, 10 Sep 2021 17:58:14 +0000 (UTC) Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by mail.kernel.org (Postfix) with ESMTP id 238C7611CB for ; Fri, 10 Sep 2021 17:58:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 238C7611CB Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ovn.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dpdk.org Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2C7A9410DA; Fri, 10 Sep 2021 19:58:12 +0200 (CEST) Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) by mails.dpdk.org (Postfix) with ESMTP id 5292E40DF4 for ; Fri, 10 Sep 2021 19:58:10 +0200 (CEST) Received: (Authenticated sender: blp@ovn.org) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id 580D91BF204; Fri, 10 Sep 2021 17:58:08 +0000 (UTC) From: Ben Pfaff To: dev@dpdk.org Cc: Ben Pfaff Date: Fri, 10 Sep 2021 10:57:34 -0700 Message-Id: <20210910175733.1248739-1-blp@ovn.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] app/testpmd: Document what the application does. 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 Sender: "dev" I could not find anything in the documentation that says what testpmd does. This should save other people time trying to figure that out in the future. Signed-off-by: Ben Pfaff --- doc/guides/testpmd_app_ug/run_app.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/guides/testpmd_app_ug/run_app.rst b/doc/guides/testpmd_app_ug/run_app.rst index 6061674239..7c3406f72b 100644 --- a/doc/guides/testpmd_app_ug/run_app.rst +++ b/doc/guides/testpmd_app_ug/run_app.rst @@ -15,6 +15,12 @@ a list of available EAL command-line options. Testpmd Command-line Options ---------------------------- +By default, testpmd receives packets on each configured port and +forwards the received packets to its paired port. Ports 0 and 1 are +paired, as are ports 2 and 3, and so on. With an odd number of ports, +the last port is paired with itself: packets received on the port are +sent back out on the same port. + The following are the command-line options for the testpmd applications. They must be separated from the EAL options, shown in the previous section, with a ``--`` separator: -- 2.31.1