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 D600545A50; Sat, 28 Sep 2024 18:20:47 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 76F2E4027A; Sat, 28 Sep 2024 18:20:47 +0200 (CEST) Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) by mails.dpdk.org (Postfix) with ESMTP id 28B8240273 for ; Sat, 28 Sep 2024 18:20:45 +0200 (CEST) Received: by mail-pf1-f174.google.com with SMTP id d2e1a72fcca58-717934728adso2411683b3a.2 for ; Sat, 28 Sep 2024 09:20:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1727540445; x=1728145245; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ZzwGmfcCbBfQEms3fvmhTsNYrQhRnc+tlearPnCbAlk=; b=NZ8F9OzQSCyNmT76ZZqXN5YkGruLm5xwo+lTMb+MHQI8EEJx5O/Z2BZA53GAg9x6Vq GdGRxYF11I8IJaep5+vzmTqJ+JMs+yoHMN9nnQkgAemR7dkO5S3CYjFkeaggqVRuw8K1 s3lz/b+nRMNSQLgqR1S9Dn2ZQ+YlY6brYVGyT5nGFYvSZ7nDdkl8YdireTdboeLaxSLW Wr8YtZ3Pf75ymstBgDtvmOcbJ0YE1PfbmwNcfLge/Vd+35Qxy41/V2TdOSq7q2OtTNqK G3F3ct7FaD1vMpcgypYNuPwyHRExCLq2+p6BIfdJEEkJBm7gDFFD0+ex1Auvj/X8k84Y BpJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727540445; x=1728145245; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ZzwGmfcCbBfQEms3fvmhTsNYrQhRnc+tlearPnCbAlk=; b=IwZWhpCqMk25wlcoPYWSX/wW2ZMOtmL+skCQkdLys1Qo+PPgDSmFob8D5opJ2eeCZl s4JnGnc/pR4Rrn3EF+WFwD1LCYSlKZgWX4+qS+x1u2bXWbuZcoC5tMrqUaSvMSrwukX9 RDk1CVL03rfYjCTgDI4AOue3YiaOwVjCJ+R9aJQ6gV8d5bbmjPLHpdKl7D8cuVFY5DCR jMRCSW6yP7GEFhqlxX7tEWkRzQXd1UJWAcza+CjJoyQvhzkj7a8GMQvkcKZ1V2TE3j6I 1tbbSM4il+qvd55XCzLlR01AGIyODf9VDEFvWEZrAm/ZYEzJB0uqEsqAu+iEQdXmNVlY 7QCQ== X-Gm-Message-State: AOJu0YyTB05ogNylT9GF7SoT+h2sOLEiuDToEuvXHmWsN6628YXcbzBo 6AKI/kOMtd2386uTuug/8Zo1urVn8GC+hsGAWEbey5Jmk4Q8zUaB/GTE+0abdtwKEzA58gVW+hW n X-Google-Smtp-Source: AGHT+IG+Gv1W2+9tISs7wx64qV3sPIblHCN//un46422LszO2AwudKA6mxlB0nqqV5ElKguHcYLQWw== X-Received: by 2002:a05:6a21:164a:b0:1d3:d40:2060 with SMTP id adf61e73a8af0-1d4fa64d7ebmr9429926637.5.1727540444878; Sat, 28 Sep 2024 09:20:44 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7e6db2b9407sm2969107a12.23.2024.09.28.09.20.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Sep 2024 09:20:44 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v9 0/8] test-pmd packet decoding enhancements Date: Sat, 28 Sep 2024 09:18:30 -0700 Message-ID: <20240928162035.849326-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240312220129.70667-1-stephen@networkplumber.org> References: <20240312220129.70667-1-stephen@networkplumber.org> 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 While debugging TAP rte_flow discovered that test pmd verbose output was confusing and unhelpful. Instead, made a simple dissector that prints one line per packet like this in test-pmd. The new commands are: testpmd> set output /tmp/packet.log testpmd> set format dissect To enable packet logging need to use: testpmd> set verbose 3 v9 - some fixes to JSON format extend hex to print hash and port v8 - added JSON output format, and ability to redirect packet log, and don't overload verbose option. Stephen Hemminger (8): net: add more icmp types net: add new packet dissector mbuf: decode the hash and fdir info in rte_pktmbuf_dump test: add test for packet dissector test-pmd: add option to redirect packet log test-pmd: add hex decode test-pmd: add packet dissect format test-pmd: add a JSON packet output app/test-pmd/cmdline.c | 81 ++++ app/test-pmd/config.c | 48 +++ app/test-pmd/testpmd.c | 4 + app/test-pmd/testpmd.h | 12 + app/test-pmd/util.c | 256 +++++++++++- app/test/meson.build | 1 + app/test/test_dissect.c | 302 ++++++++++++++ doc/guides/testpmd_app_ug/testpmd_funcs.rst | 22 + lib/mbuf/rte_mbuf.c | 14 + lib/net/meson.build | 2 + lib/net/rte_dissect.c | 428 ++++++++++++++++++++ lib/net/rte_dissect.h | 45 ++ lib/net/rte_icmp.h | 22 +- lib/net/version.map | 7 + 14 files changed, 1233 insertions(+), 11 deletions(-) create mode 100644 app/test/test_dissect.c create mode 100644 lib/net/rte_dissect.c create mode 100644 lib/net/rte_dissect.h -- 2.45.2