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 15511A04FD; Wed, 28 Dec 2022 06:10:24 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D99DF410D0; Wed, 28 Dec 2022 06:10:23 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 17E8A40FDF for ; Wed, 28 Dec 2022 06:10:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1672204222; x=1703740222; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=hAJ0TINC8b72jooFs/KvJdL0QL/fNFXHBlwVIvV14NA=; b=CCJpAGPejf+Z0id8V8FcsR8ipXhkM96WFmR33QRWV9jXRskrcxEfS3yK 2wDS9HnnWTrSQD5J5FPPIpN65pbcYm0LWoLmeQTpZGQ5XObQfO+hfB071 ZNpndWGZoINK3cFzBPEBdqcHyDjZuis/2haOMeq8t+fbPU8PWjo+I7dik 0h51kOZwP0odppGINMDWUveqlREqHFE0avVc1M0qfCTXSbbZkdUYp3X10 mOZx+CDWIJO7q52anrNhuiIn2wndXJL5VpS2moSG9pUchvPXcB6NfOC39 gAPYNOdtPMYEUlYmxLWReNVky/GsMyRu5u1JIwEaOP1aEiPXoPW/f048d A==; X-IronPort-AV: E=McAfee;i="6500,9779,10573"; a="300499462" X-IronPort-AV: E=Sophos;i="5.96,280,1665471600"; d="scan'208";a="300499462" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Dec 2022 21:10:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10573"; a="760536341" X-IronPort-AV: E=Sophos;i="5.96,280,1665471600"; d="scan'208";a="760536341" Received: from dpdk-xuke-lab.sh.intel.com ([10.67.119.8]) by fmsmga002.fm.intel.com with ESMTP; 27 Dec 2022 21:10:19 -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 V2 0/5] Improve checksum validate and tso packet counting. Date: Wed, 28 Dec 2022 13:08:45 +0800 Message-Id: <20221228050850.33004-1-ke1.xu@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 | 241 +++++++++------------------------- 1 file changed, 59 insertions(+), 182 deletions(-) -- 2.25.1