From patchwork Wed Sep 29 18:28:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yan Xia X-Patchwork-Id: 99990 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 7DF47A0547; Wed, 29 Sep 2021 12:27:36 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6FD44410EA; Wed, 29 Sep 2021 12:27:36 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 491AF40685 for ; Wed, 29 Sep 2021 12:27:34 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10121"; a="211993860" X-IronPort-AV: E=Sophos;i="5.85,332,1624345200"; d="scan'208";a="211993860" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Sep 2021 03:27:33 -0700 X-IronPort-AV: E=Sophos;i="5.85,332,1624345200"; d="scan'208";a="476597411" Received: from unknown (HELO localhost.localdomain) ([10.240.183.77]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Sep 2021 03:27:32 -0700 From: Yan Xia To: dts@dpdk.org Cc: Yan Xia Date: Wed, 29 Sep 2021 18:28:29 +0000 Message-Id: <20210929182832.146624-2-yanx.xia@intel.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210929182832.146624-1-yanx.xia@intel.com> References: <20210929182832.146624-1-yanx.xia@intel.com> MIME-Version: 1.0 Subject: [dts] [PATCH V1 1/4] test_plans/generic_filter_test_plan: move case from generic_filter to generic_flow_api 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 Sender: "dts" move case from generic_filter to generic_flow_api Signed-off-by: Yan Xia --- test_plans/generic_filter_test_plan.rst | 36 ------------------------- 1 file changed, 36 deletions(-) diff --git a/test_plans/generic_filter_test_plan.rst b/test_plans/generic_filter_test_plan.rst index 10043629..e35d0381 100644 --- a/test_plans/generic_filter_test_plan.rst +++ b/test_plans/generic_filter_test_plan.rst @@ -396,39 +396,3 @@ Configure the traffic generator to send udp packets and arp packets. Then Verify that the packet are not received on the queue 1 and queue 3:: testpmd> quit - -Test Case 10: 128 queues -======================== - -This case is designed for NIC(niantic). Since NIC(niantic) has 128 transmit -queues, it should be supports 128 kinds of filter if Hardware have enough -cores. -DPDK enable 64 queues in ixgbe driver by default. Enlarge queue number to 128 -for 128 queues test:: - - sed -i -e 's/#define IXGBE_NONE_MODE_TX_NB_QUEUES 64$/#define IXGBE_NONE_MODE_TX_NB_QUEUES 128/' drivers/net/ixgbe/ixgbe_ethdev.h - -Launch the app ``testpmd`` with the following arguments:: - - ./testpmd -c fffff -n 4 -- -i --disable-rss --rxq=128 --txq=128 --nb-cores=16 --nb-ports=2 --total-num-mbufs=60000 - - testpmd>set stat_qmap rx 0 0 0 - testpmd>set stat_qmap rx 0 64 1 - testpmd>set stat_qmap rx 0 64 2 - testpmd>vlan set strip off 0 - testpmd>vlan set strip off 1 - testpmd>vlan set filter off 0 - testpmd>vlan set filter off 1 - -Enable the 5-tuple Filters with different queues (64,127) on port 0 for -niantic:: - - testpmd> 5tuple_filter 0 add dst_ip 2.2.2.5 src_ip 2.2.2.4 dst_port 1 src_port 1 protocol 0x06 mask 0x1f flags 0x0 priority 3 queue 64 index 1 - testpmd> 5tuple_filter 0 add dst_ip 2.2.2.5 src_ip 2.2.2.4 dst_port 2 src_port 1 protocol 0x06 mask 0x1f flags 0x0 priority 3 queue 127 index 1 - -Send packets(`dst_ip` = 2.2.2.5 `src_ip` = 2.2.2.4 `dst_port` = 1 `src_port` = -1 `protocol` = tcp) and (`dst_ip` = 2.2.2.5 `src_ip` = 2.2.2.4 `dst_port` = 2 -`src_port` = 1 `protocol` = tcp ). Then reading the stats for port 0 after -sending packets. packets are received on the queue 64 and queue 127 When -setting 5-tuple Filter with queue(128), it will display failure because the -number of queues no more than 128. From patchwork Wed Sep 29 18:28:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yan Xia X-Patchwork-Id: 99991 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 9DC30A0547; Wed, 29 Sep 2021 12:27:39 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 988CD410ED; Wed, 29 Sep 2021 12:27:39 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id BBBC840685 for ; Wed, 29 Sep 2021 12:27:37 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10121"; a="211993869" X-IronPort-AV: E=Sophos;i="5.85,332,1624345200"; d="scan'208";a="211993869" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Sep 2021 03:27:37 -0700 X-IronPort-AV: E=Sophos;i="5.85,332,1624345200"; d="scan'208";a="476597429" Received: from unknown (HELO localhost.localdomain) ([10.240.183.77]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Sep 2021 03:27:36 -0700 From: Yan Xia To: dts@dpdk.org Cc: Yan Xia Date: Wed, 29 Sep 2021 18:28:30 +0000 Message-Id: <20210929182832.146624-3-yanx.xia@intel.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210929182832.146624-1-yanx.xia@intel.com> References: <20210929182832.146624-1-yanx.xia@intel.com> MIME-Version: 1.0 Subject: [dts] [PATCH V1 2/4] test_plans/generic_flow_api_test_plan: move case from generic_filter to generic_flow_api 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 Sender: "dts" move case from generic_filter to generic_flow_api Signed-off-by: Yan Xia --- test_plans/generic_flow_api_test_plan.rst | 37 +++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/test_plans/generic_flow_api_test_plan.rst b/test_plans/generic_flow_api_test_plan.rst index 760f8e82..d3029430 100644 --- a/test_plans/generic_flow_api_test_plan.rst +++ b/test_plans/generic_flow_api_test_plan.rst @@ -2154,3 +2154,40 @@ Configure the traffic generator to send syn packets. Then Verify that the packet are not received on the queue 2:: testpmd> stop + +Test Case: 128 queues +======================== + +This case is designed for NIC(niantic). Since NIC(niantic) has 128 transmit +queues, it should be supports 128 kinds of filter if Hardware have enough +cores. +DPDK enable 64 queues in ixgbe driver by default. Enlarge queue number to 128 +for 128 queues test:: + + sed -i -e 's/#define IXGBE_NONE_MODE_TX_NB_QUEUES 64$/#define IXGBE_NONE_MODE_TX_NB_QUEUES 128/' drivers/net/ixgbe/ixgbe_ethdev.h + +Launch the app ``testpmd`` with the following arguments:: + + ./testpmd -l 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53 -n 4 -- -i --disable-rss --rxq=128 --txq=128 --portmask=0x3 --nb-cores=4 --total-num-mbufs=263168 + + testpmd>set stat_qmap rx 0 0 0 + testpmd>set stat_qmap rx 1 0 0 + testpmd>vlan set strip off 0 + testpmd>vlan set strip off 1 + testpmd>vlan set filter off 0 + testpmd>vlan set filter off 1 + +Create the 5-tuple Filters with different queues (64,127) on port 0 for +niantic:: + + testpmd> set stat_qmap rx 0 64 1 + testpmd> flow create 0 ingress pattern eth / ipv4 dst is 2.2.2.5 src is 2.2.2.4 / tcp dst is 1 src is 1 / end actions queue index 64 / end + testpmd> set stat_qmap rx 0 127 2 + testpmd> flow create 0 ingress pattern eth / ipv4 dst is 2.2.2.5 src is 2.2.2.4 / tcp dst is 2 src is 1 / end actions queue index 127 / end + +Send packets(`dst_ip` = 2.2.2.5 `src_ip` = 2.2.2.4 `dst_port` = 1 `src_port` = +1 `protocol` = tcp) and (`dst_ip` = 2.2.2.5 `src_ip` = 2.2.2.4 `dst_port` = 2 +`src_port` = 1 `protocol` = tcp ). Then reading the stats for port 0 after +sending packets. packets are received on the queue 64 and queue 127 When +setting 5-tuple Filter with queue(128), it will display failure because the +number of queues no more than 128. From patchwork Wed Sep 29 18:28:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yan Xia X-Patchwork-Id: 99992 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 C601FA0547; Wed, 29 Sep 2021 12:27:41 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BCFD4410E5; Wed, 29 Sep 2021 12:27:41 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 7947540685 for ; Wed, 29 Sep 2021 12:27:40 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10121"; a="211993877" X-IronPort-AV: E=Sophos;i="5.85,332,1624345200"; d="scan'208";a="211993877" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Sep 2021 03:27:40 -0700 X-IronPort-AV: E=Sophos;i="5.85,332,1624345200"; d="scan'208";a="476597454" Received: from unknown (HELO localhost.localdomain) ([10.240.183.77]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Sep 2021 03:27:38 -0700 From: Yan Xia To: dts@dpdk.org Cc: Yan Xia Date: Wed, 29 Sep 2021 18:28:31 +0000 Message-Id: <20210929182832.146624-4-yanx.xia@intel.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210929182832.146624-1-yanx.xia@intel.com> References: <20210929182832.146624-1-yanx.xia@intel.com> MIME-Version: 1.0 Subject: [dts] [PATCH V1 3/4] tests/generic_filter: move case from generic_filter to generic_flow_api 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 Sender: "dts" move case from generic_filter to generic_flow_api Signed-off-by: Yan Xia --- tests/TestSuite_generic_filter.py | 67 ------------------------------- 1 file changed, 67 deletions(-) diff --git a/tests/TestSuite_generic_filter.py b/tests/TestSuite_generic_filter.py index 173e4f72..e789a928 100644 --- a/tests/TestSuite_generic_filter.py +++ b/tests/TestSuite_generic_filter.py @@ -549,73 +549,6 @@ class TestGeneric_filter(TestCase): else: self.verify(False, "%s nic not support this test" % self.nic) - def test_128_queues(self): - # testpmd can't support assign queue to received packet, so can't test - set_filter_flag = 1 - packet_flag = 1 - if self.kdriver == "ixgbe": - self.dut.send_expect("sed -i -e 's/#define IXGBE_NONE_MODE_TX_NB_QUEUES 64$/#define IXGBE_NONE_MODE_TX_NB_QUEUES 128/' drivers/net/ixgbe/ixgbe_ethdev.h", "# ",30) - self.dut.build_install_dpdk(self.target) - global valports - total_mbufs = self.request_mbufs(128) * len(valports) - self.pmdout.start_testpmd( - "all", "--disable-rss --rxq=128 --txq=128 --portmask=%s --nb-cores=4 --total-num-mbufs=%d" % (portMask, total_mbufs)) - self.dut.send_expect( - "set stat_qmap rx %s 0 0" % valports[0], "testpmd> ") - self.dut.send_expect( - "set stat_qmap rx %s 0 0" % valports[1], "testpmd> ") - self.dut.send_expect( - "vlan set strip off %s" % valports[0], "testpmd> ") - self.dut.send_expect( - "vlan set strip off %s" % valports[1], "testpmd> ") - self.dut.send_expect( - "vlan set filter off %s" % valports[0], "testpmd> ") - self.dut.send_expect( - "vlan set filter off %s" % valports[1], "testpmd> ") - queue = ['64', '127', '128'] - - for i in [0, 1, 2]: - if i == 2: - out = self.dut.send_expect( - "set stat_qmap rx %s %s %s" % (valports[0], queue[i], (i + 1)), "testpmd> ") - if 'Invalid RX queue %s' % (queue[i]) not in out: - set_filter_flag = 0 - break - cmd = "flow create {} ingress pattern eth / ".format( - valports[0]) + "ipv4 dst is 2.2.2.5 src is 2.2.2.4 / tcp dst is {} src is 1 / ".format( - i + 1) + "end actions queue index {} / end".format(queue[i]) - out = self.dut.send_expect(cmd, "testpmd> ") - if 'Invalid argument' not in out: - set_filter_flag = 0 - break - continue - else: - self.dut.send_expect("set stat_qmap rx %s %s %s" % - (valports[0], queue[i], (i + 1)), "testpmd> ") - cmd = "flow create {} ingress pattern eth / ".format( - valports[0]) + "ipv4 dst is 2.2.2.5 src is 2.2.2.4 / tcp dst is {} src is 1 / ".format( - i + 1) + "end actions queue index {} / end".format(queue[i]) - self.dut.send_expect(cmd, "testpmd> ") - self.dut.send_expect("start", "testpmd> ", 120) - global filters_index - filters_index = i - self.filter_send_packet("packet") - time.sleep(1) - out = self.dut.send_expect("stop", "testpmd> ") - p = re.compile(r"Forward Stats for RX Port= \d+/Queue=(\s?\d+)") - res = p.findall(out) - queues = [int(i) for i in res] - if queues[0] != int(queue[i]): - packet_flag = 0 - break - self.dut.send_expect("quit", "#", timeout=30) - self.dut.send_expect("sed -i -e 's/#define IXGBE_NONE_MODE_TX_NB_QUEUES 128$/#define IXGBE_NONE_MODE_TX_NB_QUEUES 64/' drivers/net/ixgbe/ixgbe_ethdev.h", "# ",30) - self.dut.build_install_dpdk(self.target) - self.verify(set_filter_flag == 1, "set filters error") - self.verify(packet_flag == 1, "packet pass assert error") - else: - self.verify(False, "%s not support this test" % self.nic) - def tear_down(self): """ Run after each test case. From patchwork Wed Sep 29 18:28:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yan Xia X-Patchwork-Id: 99993 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 E9668A0547; Wed, 29 Sep 2021 12:27:45 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E0409410DB; Wed, 29 Sep 2021 12:27:45 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 2AC1740685 for ; Wed, 29 Sep 2021 12:27:44 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10121"; a="211993886" X-IronPort-AV: E=Sophos;i="5.85,332,1624345200"; d="scan'208";a="211993886" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Sep 2021 03:27:43 -0700 X-IronPort-AV: E=Sophos;i="5.85,332,1624345200"; d="scan'208";a="476597474" Received: from unknown (HELO localhost.localdomain) ([10.240.183.77]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Sep 2021 03:27:42 -0700 From: Yan Xia To: dts@dpdk.org Cc: Yan Xia Date: Wed, 29 Sep 2021 18:28:32 +0000 Message-Id: <20210929182832.146624-5-yanx.xia@intel.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210929182832.146624-1-yanx.xia@intel.com> References: <20210929182832.146624-1-yanx.xia@intel.com> MIME-Version: 1.0 Subject: [dts] [PATCH V1 4/4] tests/generic_flow_api: move case from generic_filter to generic_flow_api 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 Sender: "dts" move case from generic_filter to generic_flow_api Signed-off-by: Yan Xia Tested-by: Yan Xia --- tests/TestSuite_generic_flow_api.py | 75 +++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) diff --git a/tests/TestSuite_generic_flow_api.py b/tests/TestSuite_generic_flow_api.py index 32805e46..ee0ee6bb 100644 --- a/tests/TestSuite_generic_flow_api.py +++ b/tests/TestSuite_generic_flow_api.py @@ -154,6 +154,12 @@ class TestGeneric_flow_api(TestCase): time.sleep(2) self.vf_flag = 0 + def request_mbufs(self, queue_num): + """ + default txq/rxq descriptor is 64 + """ + return 1024 * queue_num + 512 + def verify_result(self, pf_vf, expect_rxpkts, expect_queue, verify_mac): """ verify the packet to the expected queue or be dropped @@ -2638,6 +2644,75 @@ class TestGeneric_flow_api(TestCase): self.tester.send_expect("ifconfig %s mtu %s" % (txItf, 1500), "# ") self.tester.send_expect("ifconfig %s mtu %s" % (rxItf, 1500), "# ") + def test_128_queues(self): + + set_filter_flag = 1 + packet_flag = 1 + if self.kdriver == "ixgbe": + self.dut.send_expect("sed -i -e 's/#define IXGBE_NONE_MODE_TX_NB_QUEUES 64$/#define IXGBE_NONE_MODE_TX_NB_QUEUES 128/' drivers/net/ixgbe/ixgbe_ethdev.h", "# ",30) + self.dut.build_install_dpdk(self.target) + global valports + total_mbufs = self.request_mbufs(128) * len(valports) + self.pmdout.start_testpmd( + "all", "--disable-rss --rxq=128 --txq=128 --portmask=%s --nb-cores=4 --total-num-mbufs=%d" % (portMask, total_mbufs)) + self.dut.send_expect( + "set stat_qmap rx %s 0 0" % valports[0], "testpmd> ") + self.dut.send_expect( + "set stat_qmap rx %s 0 0" % valports[1], "testpmd> ") + self.dut.send_expect( + "vlan set strip off %s" % valports[0], "testpmd> ") + self.dut.send_expect( + "vlan set strip off %s" % valports[1], "testpmd> ") + self.dut.send_expect( + "vlan set filter off %s" % valports[0], "testpmd> ") + self.dut.send_expect( + "vlan set filter off %s" % valports[1], "testpmd> ") + queue = ['64', '127', '128'] + for i in [0, 1, 2]: + if i == 2: + out = self.dut.send_expect( + "set stat_qmap rx %s %s %s" % (valports[0], queue[i], (i + 1)), "testpmd> ") + if 'Invalid RX queue %s' % (queue[i]) not in out: + set_filter_flag = 0 + break + cmd = "flow create {} ingress pattern eth / ".format( + valports[0]) + "ipv4 dst is 2.2.2.5 src is 2.2.2.4 / tcp dst is {} src is 1 / ".format( + i + 1) + "end actions queue index {} / end".format(queue[i]) + out = self.dut.send_expect(cmd, "testpmd> ") + if 'Invalid argument' not in out: + set_filter_flag = 0 + break + continue + else: + self.dut.send_expect("set stat_qmap rx %s %s %s" % + (valports[0], queue[i], (i + 1)), "testpmd> ") + cmd = "flow create {} ingress pattern eth / ".format( + valports[0]) + "ipv4 dst is 2.2.2.5 src is 2.2.2.4 / tcp dst is {} src is 1 / ".format( + i + 1) + "end actions queue index {} / end".format(queue[i]) + self.dut.send_expect(cmd, "testpmd> ") + self.dut.send_expect("start", "testpmd> ", 120) + global filters_index + filters_index = i + if (filters_index == 0): + self.sendpkt(pktstr='Ether(dst="%s")/IP(src="2.2.2.4",dst="2.2.2.5")/TCP(sport=1,dport=1,flags=0)' % self.pf_mac) + if (filters_index == 1): + self.sendpkt(pktstr='Ether(dst="%s")/Dot1Q(prio=3)/IP(src="2.2.2.4",dst="2.2.2.5")/TCP(sport=1,dport=2,flags=0)' % self.pf_mac) + time.sleep(1) + out = self.dut.send_expect("stop", "testpmd> ") + p = re.compile(r"Forward Stats for RX Port= \d+/Queue=(\s?\d+)") + res = p.findall(out) + queues = [int(i) for i in res] + if queues[0] != int(queue[i]): + packet_flag = 0 + break + self.dut.send_expect("quit", "#", timeout=30) + self.dut.send_expect("sed -i -e 's/#define IXGBE_NONE_MODE_TX_NB_QUEUES 128$/#define IXGBE_NONE_MODE_TX_NB_QUEUES 64/' drivers/net/ixgbe/ixgbe_ethdev.h", "# ",30) + self.dut.build_install_dpdk(self.target) + self.verify(set_filter_flag == 1, "set filters error") + self.verify(packet_flag == 1, "packet pass assert error") + else: + self.verify(False, "%s not support this test" % self.nic) + def tear_down(self): """ Run after each test case.