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 B398AA0548; Wed, 8 Jun 2022 09:10:07 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AED1B427EE; Wed, 8 Jun 2022 09:10:07 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id DA302427EE for ; Wed, 8 Jun 2022 09:10:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1654672206; x=1686208206; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=z/ApUMzR8v3jD5snd5Jx4ni5R1IsDCQhl+trwWmTEq4=; b=R9Gvdcgk/MyPw8tLfGBQGs6lkCQdDeKw+ITcIF37mTnnXpnGjghF25P9 utJ2tajiibLB39Pa9gBoyBJSmoo+CEDN/Wdr9qA+AkypbwOE0WfBec1dd F9sisoOAQpSQZs98qZIldVuk75fMt84ZI/gHFHxEshbHWgjZd2JIOijuq GYjE+6kLaudOcIYRfghj81LTabm+TeqkVYf+JvOVfmC6UQyZOH6NcAdX5 wdalfK0F8ESwCBgUYLyEuQXygJV/JckdrmQEJgRZ+kOmnh/w/AcsKpGOT y78IKwTaSh6lyF4mUOr1IcOZQ1DOIGrb8t4fzku8PrMCDSrWsSSAavs2B w==; X-IronPort-AV: E=McAfee;i="6400,9594,10371"; a="265593049" X-IronPort-AV: E=Sophos;i="5.91,285,1647327600"; d="scan'208";a="265593049" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jun 2022 00:10:04 -0700 X-IronPort-AV: E=Sophos;i="5.91,285,1647327600"; d="scan'208";a="636626654" Received: from unknown (HELO localhost.localdomain.localdomain) ([10.239.251.127]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jun 2022 00:10:02 -0700 From: "Yu.Jiang" To: yuan.peng@intel.com, dts@dpdk.org Cc: Yu Jiang Subject: [dts][PATCH V1 2/2] tests/kernelpf_iavf: remove 2 duplicated vf jumboframe cases Date: Wed, 8 Jun 2022 15:09:55 +0800 Message-Id: <1654672195-6189-3-git-send-email-yux.jiang@intel.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1654672195-6189-1-git-send-email-yux.jiang@intel.com> References: <1654672195-6189-1-git-send-email-yux.jiang@intel.com> 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 From: Yu Jiang VF with/without jumboframe are duplicated to vf_jumboframe suite, so remove the two cases Signed-off-by: Yu Jiang --- tests/TestSuite_kernelpf_iavf.py | 72 -------------------------------- 1 file changed, 72 deletions(-) diff --git a/tests/TestSuite_kernelpf_iavf.py b/tests/TestSuite_kernelpf_iavf.py index bb20e687..811e55ee 100644 --- a/tests/TestSuite_kernelpf_iavf.py +++ b/tests/TestSuite_kernelpf_iavf.py @@ -568,78 +568,6 @@ class TestKernelpfIavf(TestCase): else: self.verify(len(receive_pkt) == 1, "Failed to received vlan packet!!!") - def test_vf_without_jumboframe(self): - self.tester.send_expect( - "ifconfig %s mtu %s" % (self.tester_intf, ETHER_JUMBO_FRAME_MTU), "#" - ) - - self.vm_testpmd.start_testpmd("all") - self.vm_testpmd.execute_cmd("set fwd mac") - self.vm_testpmd.execute_cmd("start") - self.jumboframes_send_packet(ETHER_STANDARD_MTU - 1, True) - self.jumboframes_send_packet(ETHER_STANDARD_MTU + 1 + 4 + 4, False) - self.tester.send_expect( - "ifconfig %s mtu %s" % (self.tester_intf, ETHER_STANDARD_MTU), "#" - ) - - def test_vf_with_jumboframe(self): - self.tester.send_expect( - "ifconfig %s mtu %d" % (self.tester_intf, ETHER_JUMBO_FRAME_MTU), "#" - ) - conf_pkt_len = 3000 - self.vm_testpmd.start_testpmd( - "all", - "--max-pkt-len=%d --port-topology=loop --tx-offloads=0x8000" % conf_pkt_len, - ) - self.vm_testpmd.execute_cmd("set fwd mac") - self.vm_testpmd.execute_cmd("start") - self.jumboframes_send_packet(conf_pkt_len - 1, True) - self.jumboframes_send_packet(conf_pkt_len + 1, False) - self.tester.send_expect( - "ifconfig %s mtu %d" % (self.tester_intf, ETHER_STANDARD_MTU), "#" - ) - - def jumboframes_send_packet(self, pktsize, received=True): - """ - Send 1 packet to portid - """ - tx_pkts_ori, _, tx_bytes_ori = [ - int(_) for _ in self.jumboframes_get_stat(self.vm_port, "tx") - ] - rx_pkts_ori, rx_err_ori, rx_bytes_ori = [ - int(_) for _ in self.jumboframes_get_stat(self.vm_port, "rx") - ] - - pkt = Packet(pkt_type="UDP", pkt_len=pktsize) - pkt.config_layer("ether", {"dst": self.vf_mac, "src": self.tester_mac}) - self.vm_testpmd.execute_cmd("clear port stats all") - pkt.send_pkt(self.tester, tx_port=self.tester_intf) - - time.sleep(1) - - tx_pkts, _, tx_bytes = [ - int(_) for _ in self.jumboframes_get_stat(self.port, "tx") - ] - rx_pkts, rx_err, rx_bytes = [ - int(_) for _ in self.jumboframes_get_stat(self.vm_port, "rx") - ] - - tx_pkts -= tx_pkts_ori - tx_bytes -= tx_bytes_ori - rx_pkts -= rx_pkts_ori - rx_bytes -= rx_bytes_ori - rx_err -= rx_err_ori - if received: - self.verify( - (rx_pkts == 1) and (tx_pkts == 1), "Packet forward assert error" - ) - - self.verify(rx_bytes + 4 == pktsize, "Rx packet size should be packet size") - - self.verify(tx_bytes + 4 == pktsize, "Tx packet size should be packet size") - else: - self.verify(rx_err == 1 or tx_pkts == -1, "Packet drop assert error") - def test_vf_rss(self): rss_type = ["ip", "tcp", "udp"] self.vm_testpmd.start_testpmd("all", "--txq=4 --rxq=4") -- 2.25.1