From patchwork Wed Dec 28 05:14:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ke Xu X-Patchwork-Id: 121430 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 D21CCA04FD; Wed, 28 Dec 2022 06:16:36 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A9569410D0; Wed, 28 Dec 2022 06:16:36 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id 8626940FDF for ; Wed, 28 Dec 2022 06:16:35 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1672204595; x=1703740595; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=8/X+hQHMVqaPs73aCaemmdmnNdSyBmhvNEhQu9qrFJY=; b=n+LuIz5any2kKp0zw4VhqsxX7HfKLxbjIAOZTzj8zRiU7iLX1yZRIVvf zZ6+fpjz+dppkd7oQ2rS/fpR3fNWUUWPLhlt+JjW4YMd7d28GFo3gXG2S t79zvzr6EKuKNQZM7Qeb9IL7OpCbTIWr4Wq2yojdW9atFe5ISYatXpXUE NrQ3EfqYEgdXEaMKvYWqkaMnrJQrGM6+RrgOXJoiQexFwoc2Kx9cOnZoc 7SQQPYC+1kjrBrZ/P0SSNrbRkTFjG8zpGCMpR002SHYyYZx4Rira+O/m+ LdmqOM457+NBv/aAP2reWbr33njjcnPHqu9w0kEsBC3P2eKTHepRgLFU/ Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10573"; a="348007983" X-IronPort-AV: E=Sophos;i="5.96,280,1665471600"; d="scan'208";a="348007983" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Dec 2022 21:16:33 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10573"; a="603234348" X-IronPort-AV: E=Sophos;i="5.96,280,1665471600"; d="scan'208";a="603234348" Received: from dpdk-xuke-lab.sh.intel.com ([10.67.119.8]) by orsmga003.jf.intel.com with ESMTP; 27 Dec 2022 21:16:31 -0800 From: Ke Xu To: dts@dpdk.org Cc: qi.fu@intel.com, weiyuanx.li@intel.com, lijuan.tu@intel.com, ke1.xu@intel.com Subject: [DTS][PATCH V3 0/5] Improve checksum validate and tso packet counting. Date: Wed, 28 Dec 2022 13:14:58 +0800 Message-Id: <20221228051503.36747-1-ke1.xu@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org This patch updates checksum_validate method and remove the tunnel one. Use packet.show(dump) methods and packet reading to validate the packets in a faster, more common and more stable way. This allows packets other than the plain packets can be verified by method checksum_validate. This updated method replaces checksum_validate_tunnel in checksum offload cases. This patch also updates TSO packet checking. Replace the tcpdump implementation to a packet reading implementation. Packet reading implementation is more common to use when to verify the received packet count and payload size. The tcpdump method is not able to recognize some of the tunnel packets, leading to a wrong output failing the validation. Newly added tcpdump_analyse_sniff method is implemented by sniff packet reading and analysing and can replace the lagacy methods number_of_packets and number_of_bytes. This patch also removes a redundant variable. Ke Xu (5): tests/vf_offload: Improve checksum_validate method. tests/vf_offload: Remove redundant variable used. tests/vf_offload: Use modified checksum_validate to replace checksum_validate_tunnel. tests/vf_offload: Improve tcpdump_analyse_sniff method tests/vf_offload: Replace the tcpdump implementation to a packet reading implementation. tests/TestSuite_vf_offload.py | 247 +++++++++------------------------- 1 file changed, 66 insertions(+), 181 deletions(-) Acked-by: Fu, Qi