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 15ED04571E; Fri, 2 Aug 2024 20:08:52 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D282342790; Fri, 2 Aug 2024 20:08:51 +0200 (CEST) Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) by mails.dpdk.org (Postfix) with ESMTP id E9A2840E22 for ; Fri, 2 Aug 2024 20:08:49 +0200 (CEST) Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-1fd70ba6a15so66262995ad.0 for ; Fri, 02 Aug 2024 11:08:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1722622129; x=1723226929; 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=fr0fMCDzvkqRseHXaOigYEa5BJJZoywTQbC6tndwdJ4=; b=PkJT0apFlAGAEH9lgc/cdiDb9RD7G5mCr0A+eoIgQnoK4dV8P24dip6yH2jy/SWUjW 2BBLqe+92i9wxNBaCPggONysQEShKwSiiP+Jx+MKH210delPNayrqdBSStF0+KpJhStX aP6Dh738NsK1E3GW9uUr3/fPK10hpXZwM1v0/P2IinS3EoxyEZcgKMueq1Tg7y131/UD FK/ZHtxIIzz0E0/WVL5PMvaEXgoOpmfnR6SUaHQuN/U+G9WKsFqZb1wfdaWbmNt3xY2Y qygyz0j/2V3Tu+UG5tx7B4CzqZpbqo+mUJ6KSiDeB2YQhdCCwzGXax4XwdcmMjhpHj5W ZElQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722622129; x=1723226929; 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=fr0fMCDzvkqRseHXaOigYEa5BJJZoywTQbC6tndwdJ4=; b=AVK7M3f6GC+45U1xqZ+TpBwTPoOhIevIU7vnkexSUyCthV+LRQLHBIge/IxYJWcNnP h32JnqDmPgpoAISB1c2M5cDcj96/wwxBccMv087dg5kHNbvkV5CSIobgsV5MkZgDmoRc pZMA8ZReGg/pFgDCiYSd/DcwMbXaBlsDLahiwhafefjA8Ne5UtAgGxZK34nDb5VFbIqn G/XDk8bqYY7mrSxL3UJHJ3/dlYvb4QUnEszEApY8TJAMC7xqvXPMzxvMelWLrA/HbB7s 7ncNeA1aog83PHAQxJIdOA3tntyRqINmyADR9hesF1+b4ZqtdNYUjxrDXM94hVN3k0X2 F+7A== X-Gm-Message-State: AOJu0YyMYwQTYJnDEmxa5RyzRCfpDnSqKC+Ky2rEfOxwvaTFbjUGM/az 8qrXsCIc5Q644aWFIa0/VabKmGWmeZxAHz5XAzA4DRtnXnXl0DFWtvaOYjoS+tnkTzSmDfkjx0w 8 X-Google-Smtp-Source: AGHT+IHjmSQ3PadslXkbnlCNpABXBFakW1cwSIKF3s6hSw6z+Pp2qSrn+F7I+UnBq5Pz3APa1Udifw== X-Received: by 2002:a17:903:1207:b0:1f6:fcd9:5b86 with SMTP id d9443c01a7336-1ff5722e771mr52157125ad.12.1722622128904; Fri, 02 Aug 2024 11:08:48 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1ff58f6a540sm20228195ad.118.2024.08.02.11.08.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Aug 2024 11:08:48 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v6 0/4] Add network packet dissector Date: Fri, 2 Aug 2024 11:07:43 -0700 Message-ID: <20240802180838.862858-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-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. v6 - validate result of rte_dissect for simple packet v5 - breakout the additional ICMP types into header - fix some decoding bugs in ARP and ICMP Stephen Hemminger (4): net: add more icmp types 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 | 253 ++++++++++++ doc/guides/testpmd_app_ug/testpmd_funcs.rst | 5 +- lib/net/meson.build | 2 + lib/net/rte_dissect.c | 416 ++++++++++++++++++++ lib/net/rte_dissect.h | 42 ++ lib/net/rte_icmp.h | 22 +- lib/net/version.map | 7 + 12 files changed, 850 insertions(+), 22 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