From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id D51635A26 for ; Tue, 21 Jul 2015 04:12:46 +0200 (CEST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP; 20 Jul 2015 19:12:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,512,1432623600"; d="scan'208";a="732465344" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by orsmga001.jf.intel.com with ESMTP; 20 Jul 2015 19:12:44 -0700 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id t6L2CgVl015668; Tue, 21 Jul 2015 10:12:42 +0800 Received: from shecgisg003.sh.intel.com (localhost [127.0.0.1]) by shecgisg003.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id t6L2Ceo1011601; Tue, 21 Jul 2015 10:12:42 +0800 Received: (from yliu84x@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id t6L2CefC011597; Tue, 21 Jul 2015 10:12:40 +0800 From: Yong Liu To: dts@dpdk.org Date: Tue, 21 Jul 2015 10:12:39 +0800 Message-Id: <1437444759-11565-1-git-send-email-yong.liu@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dts] [PATCH] fix bug that packet type detect failure X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jul 2015 02:12:47 -0000 From: Marvin Liu Packet type value changed after unified packet type. So suite need modification as consequence. Signed-off-by: Marvin Liu diff --git a/tests/TestSuite_nvgre.py b/tests/TestSuite_nvgre.py index 62bb83b..954259d 100644 --- a/tests/TestSuite_nvgre.py +++ b/tests/TestSuite_nvgre.py @@ -163,14 +163,14 @@ class NvgreTestConfig(object): """ if self.outer_ip_proto != 47: if self.outer_l3_type == 'IPv4': - return 'PKT_RX_IPV4_HDR' + return '(outer) L3 type: IPV4_EXT_UNKNOWN' else: - return 'PKT_RX_IPV6_HDR' + return '(outer) L3 type: IPV6_EXT_UNKNOWN' else: - if self.outer_l3_type == 'IPv4': - return 'PKT_RX_TUNNEL_IPV4_HDR' + if self.inner_l3_type == 'IPv4': + return 'Inner L3 type: IPV4_EXT_UNKNOWN' else: - return 'PKT_RX_TUNNEL_IPV6_HDR' + return 'Inner L3 type: IPV6_EXT_UNKNOWN' def create_pcap(self, scp=True): """ diff --git a/tests/TestSuite_vxlan.py b/tests/TestSuite_vxlan.py index 9dd7862..91da7ca 100644 --- a/tests/TestSuite_vxlan.py +++ b/tests/TestSuite_vxlan.py @@ -90,14 +90,14 @@ class VxlanTestConfig(object): """ if self.outer_udp_dst != VXLAN_PORT: if self.outer_ip6_src != 'N/A': - return 'PKT_RX_IPV6_HDR' + return '(outer) L3 type: IPV6_EXT_UNKNOWN' else: - return 'PKT_RX_IPV4_HDR' + return '(outer) L3 type: IPV4_EXT_UNKNOWN' else: - if self.outer_ip6_src != 'N/A': - return 'PKT_RX_TUNNEL_IPV6_HDR' + if self.inner_ip6_src != 'N/A': + return 'Inner L3 type: IPV6_EXT_UNKNOWN' else: - return 'PKT_RX_TUNNEL_IPV4_HDR' + return 'Inner L3 type: IPV4_EXT_UNKNOWN' def create_pcap(self, scp=True): """ -- 1.9.3