From patchwork Tue Dec 27 10:21:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ke Xu X-Patchwork-Id: 121414 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 4F6D7A04FD; Tue, 27 Dec 2022 11:23:46 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 28FE8410FC; Tue, 27 Dec 2022 11:23:46 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id 6B6F540E2D for ; Tue, 27 Dec 2022 11:23:45 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1672136625; x=1703672625; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=hAJ0TINC8b72jooFs/KvJdL0QL/fNFXHBlwVIvV14NA=; b=CyD2VlnouSlH83XZpCZJgkqvVqhKYuT9kDuf9Gu+OeJ0RW7+YWyXd0aZ eMB1x5CKPMjrJP+RxdAyM+cPRbAiU19PiBhCO4TndpqgZksYG0OZud0QZ 3S72dkKKp+OkUMnLU4FpqytyHsR8au8wOJgrAXTh78JvZKUm/EqYjMpX3 xipv9f9B/F+oLBdBxsmZdR1bepOcOduNtdFcAj8iwyYM2XHVgWQGfZj2K y3akhf1Oqi2gbWQ57qYkhJ56o+qg2tv28R0oUPBJiQjb0+sL4eC1NpRks BghU6oSdOBPsd5QnDfN7QOoIeB8Bzma5qtGe/g6xKdSV20SgGFWFalR6Y w==; X-IronPort-AV: E=McAfee;i="6500,9779,10572"; a="322656350" X-IronPort-AV: E=Sophos;i="5.96,278,1665471600"; d="scan'208";a="322656350" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Dec 2022 02:23:44 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10572"; a="760291912" X-IronPort-AV: E=Sophos;i="5.96,278,1665471600"; d="scan'208";a="760291912" Received: from dpdk-xuke-lab.sh.intel.com ([10.67.119.8]) by fmsmga002.fm.intel.com with ESMTP; 27 Dec 2022 02:23:42 -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 V1 0/5] Improve checksum validate and tso packet counting. Date: Tue, 27 Dec 2022 18:21:27 +0800 Message-Id: <20221227102131.529684-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 | 241 +++++++++------------------------- 1 file changed, 59 insertions(+), 182 deletions(-)