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 F00FA4387A; Wed, 10 Jan 2024 00:09:40 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DB050402EB; Wed, 10 Jan 2024 00:09:40 +0100 (CET) Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) by mails.dpdk.org (Postfix) with ESMTP id AC1CE4026B for ; Wed, 10 Jan 2024 00:09:38 +0100 (CET) Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-1d3ec3db764so13075345ad.2 for ; Tue, 09 Jan 2024 15:09:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1704841778; x=1705446578; 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=acmi+NS3JRQgRSJDOSFzRx1nZs8Jm+Rght4ayOLKrP8=; b=CLN4iav+4o+RF5hscyVvzpGC4BeR0Ys1Wsk8kZKks2fznik54dzaISg6FUYckhr+xF aGBh42xlT6E9WlyYrY2FL2akj3I4OXxm6cSJRj7lYgVVnZ0+/M8AVK2E5Z1NbDwLWtdE glaBRnho3v7t3Un9Y9IKZPfUFFChKoebeLkprHYngyjXCNtO/DJM8S4EhbpszH2UMor3 4JrtjOiIiJpUlnhZOyJxio1QGqzUnUhf5MARkpj+Z3fmUkj/T0DJngcwH+MoWiAgQp2T cRY4uMfCIxWBBSkhC5JFrJyPJZSdJ9jT8LgG+//hnWfVlk1baIp5vaUH9dO0GNRMjVgA g8KA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704841778; x=1705446578; 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=acmi+NS3JRQgRSJDOSFzRx1nZs8Jm+Rght4ayOLKrP8=; b=fwGNbAFeq0wKvp3gDrm2ygGei8WQLAAw4bLhUZ2Gu8+RazdCuhGhGlqzcow1GTWXoL PCXFeZAdmwAOkF/26jW/kTG+bY6AZihphWcuTAjAsG+gZP3Zl1lQwamZsYHJ08RpzzIG 6vprgSEKnUgYyKEN5jQNI1x/bfN8M55xKwvZmnlNguYqqowbQQChEKpDaoFGVsf/dssI 6dW5uI3V1g/HP3GJ0al3o/EIM1nuWV+s0H8x7OpXKj4MKy+d94uxOnR9Ug04usjsfes6 T8SOwe9bceqjsNrLuQLps87OP/GsGHRaNOIzXCdIMp6NlBcUbI2HKGYdcmCztcApKZx0 xqGA== X-Gm-Message-State: AOJu0YwfUWQ6XF9aYFfgJZFlBcb1T2JcMwBBB+6BLk2KU5JG8JumTAbe WmGayIf3caczTiq30YZGhajLynQED4SwbyxFSZ8odFyrMgU= X-Google-Smtp-Source: AGHT+IHQK8d4gwGXtTZeIE7t/+AzQdin2PfOccPz562ReOvclKzWtnOGoV9YlVNSqvGe6kOr1K3RZw== X-Received: by 2002:a17:903:a8b:b0:1d0:8cc1:8d66 with SMTP id mo11-20020a1709030a8b00b001d08cc18d66mr108117plb.84.1704841777903; Tue, 09 Jan 2024 15:09:37 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id j6-20020a170902c08600b001d33c85ce1bsm2313823pld.2.2024.01.09.15.09.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 15:09:37 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Aman Singh , Yuying Zhang , Remy Horton , Pablo de Lara Subject: [PATCH] testpmd: do not print bitrate-stats in help if not configured Date: Tue, 9 Jan 2024 15:09:27 -0800 Message-ID: <20240109230927.6417-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Like other #ifdef options, bitrate-stats should not be printed in help if not configured. Fixes: e25e6c70fb56 ("app/testpmd: add --bitrate-stats option") Signed-off-by: Stephen Hemminger --- app/test-pmd/parameters.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/test-pmd/parameters.c b/app/test-pmd/parameters.c index a9ca58339dd7..f7df7d31295f 100644 --- a/app/test-pmd/parameters.c +++ b/app/test-pmd/parameters.c @@ -167,8 +167,10 @@ usage(char* progname) printf(" --disable-device-start: do not automatically start port\n"); printf(" --no-lsc-interrupt: disable link status change interrupt.\n"); printf(" --no-rmv-interrupt: disable device removal interrupt.\n"); +#ifdef RTE_LIB_BITRATESTATS printf(" --bitrate-stats=N: set the logical core N to perform " "bit-rate calculation.\n"); +#endif printf(" --print-event : " "enable print of designated event or all of them.\n"); printf(" --mask-event : " -- 2.43.0