From patchwork Thu Aug 1 19:04:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 1189 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 45CBA45716; Thu, 1 Aug 2024 21:06:29 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1C52E4067E; Thu, 1 Aug 2024 21:06:29 +0200 (CEST) Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) by mails.dpdk.org (Postfix) with ESMTP id 195BE40668 for ; Thu, 1 Aug 2024 21:06:28 +0200 (CEST) Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-1fdd6d81812so62315135ad.1 for ; Thu, 01 Aug 2024 12:06:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1722539187; x=1723143987; 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=qMXXoNx/G9w9EFPRz6s/4SMCbqpeSyE5Qfu8ZdenDcY=; b=rUJ0jeJSOPY/P/QtpS7jRvZ7Irryo5VpafbTiRKRhhjCR5jHAkP1/kYekbQIUzbs/z 9LOCDt0AvHgbMWCMLtzYkyl4wrETERU+7WLoC5qSSUqMbO74xuC3BiE6igvS0gWJS2H/ IZKfH5cJKndc+74ciEYaVXoVLIx9WAMw2O7+BYJos1Axoz1yAIcOI7yF/ZjUMzFeRq+i 7a1IcZ5jeUAsx/PheG/ZfgCYH6zIMz7EEhjpsFbrErI0QRu8QbkFjrtCuzx7HeAcqmiU qiSdEAqDllqKjUTET5rQ4GfIzWyznx53dopwwBugnAsYPF2ef0l+MC2xLpXu6ctlULin o+BQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722539187; x=1723143987; 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=qMXXoNx/G9w9EFPRz6s/4SMCbqpeSyE5Qfu8ZdenDcY=; b=QGjpWAnguxTitDjnTJ730XQEPV09Yix5MUnAMpfLZxvS3jQzzc3k3sVn4OZjjDdJh9 /xVIutN9LVOgJCJGZU4+alBXO7oEFu5tHyw1BMHHqkh12TROrcXgNH8Xq/NN5mFDP9Iw udJIejgtvaAcUclqQquNOtF+TBVkTB35Ev/l/kWP0Mn0GrUnSnj2o4iq00WU3g/rk1Yt jJ+Dq/yBrvKmjzwzgPSokVeURpmkB1MnFWOabgWZiuKmBbN4xUD9hdmYC90m/BOmkpqG wJy8fPiVqixhxcpBH9Mq9P63il9nicZAlRt8oZzHPytpoCCi1yhRXquR19H9uECMCUDA kA5A== X-Gm-Message-State: AOJu0YwGcKJysQQYOik9sGCSCzXK6xRQcU5KobbcGaE7Zxg64PxhausY +9fCbPdnmfrb6vbK89z8M4nPsp8jjFz2I/TYeoXET37te1Ssy/+hcXZaHmKo9ejPaSsNQiqJFZW R X-Google-Smtp-Source: AGHT+IGSxZoVey2HMltzGkVGyyS/9Et6u+lnIFbyAUemXDDJgBURlqJM5TViEFuF6zyA0o2x4q5+1A== X-Received: by 2002:a17:902:ea01:b0:1fd:a043:e3de with SMTP id d9443c01a7336-1ff5737e3b7mr14600565ad.40.1722539186942; Thu, 01 Aug 2024 12:06:26 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1ff58f5a222sm2371955ad.112.2024.08.01.12.06.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Aug 2024 12:06:26 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v5 0/4] Add network packet dissector Date: Thu, 1 Aug 2024 12:04:39 -0700 Message-ID: <20240801190617.201574-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 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. 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 | 245 ++++++++++++ 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, 842 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