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 6EE9B456A2; Wed, 24 Jul 2024 20:47:54 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 41517427BB; Wed, 24 Jul 2024 20:47:54 +0200 (CEST) Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) by mails.dpdk.org (Postfix) with ESMTP id DCE0242709 for ; Wed, 24 Jul 2024 20:47:52 +0200 (CEST) Received: by mail-pf1-f169.google.com with SMTP id d2e1a72fcca58-70d2b921cdfso109342b3a.0 for ; Wed, 24 Jul 2024 11:47:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1721846872; x=1722451672; 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=v9k1p01qUhd0m+Yx53O9F5Qk1arnkM3XpbTmgxHIXV8=; b=n8ffgqAg5MBMZd0xIi0I62YFlo580HWiT/Q6lnIVRQdmfnjfVJSbUGpZ5qXPBqraPD qeEb960NgdndcrKxe3u1qsqrIHBT7duO+FR04l2MzdkNrRzxTBlJ7tbV/ZsE86NgzBFr +01Yz7hsahORPqapC6hkcvrT9djJ0v5EbTtGdcSCTH4T7NJNBZk5Fc7rd6U3kd/MhDZ1 076hKSMG80FBGOn8RYrc3tE1f2+4DKI7n4tz7Cmmsxc0wAg9RDmnX/jjFIQyIs1mF+Gd fFkORT5iFRppsDBZdyRBQXph6/8iW7dn45RuZOJNC0Kmf1L363w8Q/AiAzLc58S8buen H6+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721846872; x=1722451672; 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=v9k1p01qUhd0m+Yx53O9F5Qk1arnkM3XpbTmgxHIXV8=; b=hw2raKl2YMcJDMvG2xsohOt+F+fhXOzFCKi4TJGG7aNgXFXCI7U5gLIvByqOrfPDT/ K4R/qIo+JMuw8FyES5YdpLBn32EJTibWUyuW6yFurZndNCfSDZZ02Nj3cNM0Wo/xP9/X ZHYy0P7dZQ9AiLx0QKWHgEqSdBD4GGJxJyqzIGz5v/+SCmXxASXUPAVGUNOcD/CMAU/g OP1/SJ6IwUAu/ywLhP670C3XQi6yCaIIqRlbS8ANrjL85V/FAOjAYw1jZq0sI/NFA1Eh YmqqLv8K3I5a56tKwFds5waJ12TOHkhE7cnyzrjjlJdIbgM8DMe9CJEYUTZWPbi5aOnX qYCA== X-Gm-Message-State: AOJu0YxSDzG5aa0q9dMR1IUq/j08+/ZrVJ7fhrN6NeTOQbiG6wZMlNvk 0U8KF8DtWa43a2xgPv4izC7vESaDsF44urgVlXXh5pH3CJQw7xCXV2Efs0mO+D8gI+Gaz9hH1FQ m X-Google-Smtp-Source: AGHT+IEouSlgfg3JR6yxvHk7K/CyVYP7YYLd8kkFiNxcvKfdG3y7fxYUm69yGYCPX9YKzcDTaZAyYQ== X-Received: by 2002:a05:6a00:9462:b0:70a:ffc7:f921 with SMTP id d2e1a72fcca58-70eaa93460bmr467674b3a.22.1721846871774; Wed, 24 Jul 2024 11:47:51 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-70cff4b2e31sm8862854b3a.78.2024.07.24.11.47.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jul 2024 11:47:51 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v4 0/3] Add packet dissector Date: Wed, 24 Jul 2024 11:46:11 -0700 Message-ID: <20240724184741.150763-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240312220129.70667-1-stephen@networkplumber.org> References: <20240312220129.70667-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 with verbose level 4. Seq# Time Port:Que R Description 1 0.000000000 0:0 R :: → ff02::16 ICMP 143 2 0.000000000 0:0 R :: → ff02::1:ffbc:89e5 ICMP 135 3 0.000000000 0:0 R :: → ff02::16 ICMP 143 ... 38 0.313868235 0:0 T fe80::7442:55ff:febc:89e5 → ff02::fb UDP 70 5353 → 5353 39 4.635121071 0:0 R fe80::7442:55ff:febc:89e5 → ff02::2 ICMPv6 Router Solicitation 40 4.635138535 0:0 T fe80::7442:55ff:febc:89e5 → ff02::2 ICMPv6 Router Solicitation v4 - add direction flag to output - fix build on Windows Stephen Hemminger (3): net: add new packet dissector test: add test for packet dissector test-pmd: add more packet verbose decode options app/test-pmd/cmdline_flow.c | 3 +- app/test-pmd/config.c | 33 +- app/test-pmd/testpmd.h | 11 + app/test-pmd/util.c | 77 +++- app/test/meson.build | 1 + app/test/test_dissect.c | 245 ++++++++++++ doc/guides/testpmd_app_ug/testpmd_funcs.rst | 5 +- lib/net/meson.build | 2 + lib/net/rte_dissect.c | 404 ++++++++++++++++++++ lib/net/rte_dissect.h | 42 ++ lib/net/version.map | 7 + 11 files changed, 812 insertions(+), 18 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.43.0