From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 31D98A0561; Mon, 20 Apr 2020 11:27:29 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id F2AE81D517; Mon, 20 Apr 2020 11:27:28 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id DCB3A1D510 for ; Mon, 20 Apr 2020 11:27:27 +0200 (CEST) IronPort-SDR: rarmGLdVkOdlANtZcxBtMTUkFI9xnRw1M5yuSwKm2VkhTNGp4IDFGsy96maDI9H9KdiStg3vEr cgskxIk87f1A== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Apr 2020 02:27:27 -0700 IronPort-SDR: mkZeUUA2JQZtcucK+y2peT2+ajNQTuQ5sxELgGWZYK+jqvcZatdMoth3WdQj70aaCACNRrLZEs wectEZhu8Pkg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,406,1580803200"; d="scan'208";a="290023939" Received: from unknown (HELO dpdk-zhaohy-t.localdomain) ([10.240.183.68]) by fmsmga002.fm.intel.com with ESMTP; 20 Apr 2020 02:27:25 -0700 From: "Jiang, YuX" To: dts@dpdk.org Cc: "Jiang,yu" Date: Mon, 20 Apr 2020 17:19:20 +0800 Message-Id: <1587374360-120870-1-git-send-email-yux.jiang@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dts] [PATCH V1] tests/TestSuite_generic_filter: add sagepond nic 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: , Errors-To: dts-bounces@dpdk.org Sender: "dts" From: "Jiang,yu" Add support sagepond nic, and sagepond does not support test_128_queues Signed-off-by: Jiang,yu --- conf/test_case_checklist.json | 1 + tests/TestSuite_generic_filter.py | 26 +++++++++++++------------- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/conf/test_case_checklist.json b/conf/test_case_checklist.json index 44bf8af..f1c3ac0 100644 --- a/conf/test_case_checklist.json +++ b/conf/test_case_checklist.json @@ -15,6 +15,7 @@ "ironpond", "springfountain", "twinpond", + "sagepond", "kawela_4", "cavium_a034", "cavium_a011", diff --git a/tests/TestSuite_generic_filter.py b/tests/TestSuite_generic_filter.py index ddc5eb8..59d7372 100644 --- a/tests/TestSuite_generic_filter.py +++ b/tests/TestSuite_generic_filter.py @@ -204,7 +204,7 @@ class TestGeneric_filter(TestCase): """ Enable receipt of SYN packets """ - self.verify(self.nic in ["niantic", "kawela_4", "bartonhills", "powerville"], "%s nic not support syn filter" % self.nic) + self.verify(self.nic in ["niantic", "kawela_4", "bartonhills", "powerville", "sagepond"], "%s nic not support syn filter" % self.nic) self.pmdout.start_testpmd( "%s" % self.cores, "--disable-rss --rxq=4 --txq=4 --portmask=%s --nb-cores=4 --nb-ports=1" % portMask) self.port_config() @@ -247,7 +247,7 @@ class TestGeneric_filter(TestCase): "%s" % self.cores, "--disable-rss --rxq=4 --txq=4 --portmask=%s --nb-cores=4 --nb-ports=1" % portMask) self.port_config() - if self.nic == "niantic": + if self.nic in ["niantic", "sagepond"]: cmd = "5tuple_filter %s add dst_ip 2.2.2.5 src_ip 2.2.2.4 dst_port 1 src_port 1 protocol 0x06 mask 0x1f tcp_flags 0x0 priority 3 queue 3 " % ( valports[0]) self.dut.send_expect("%s" % cmd, "testpmd> ") @@ -307,7 +307,7 @@ class TestGeneric_filter(TestCase): """ five tuple filter """ - if self.nic in ["niantic", "kawela_4"]: + if self.nic in ["niantic", "kawela_4", "sagepond"]: self.pmdout.start_testpmd( "%s" % self.cores, "--disable-rss --rxq=4 --txq=4 --portmask=%s --nb-cores=4 --nb-ports=1" % portMask) self.port_config() @@ -315,14 +315,14 @@ class TestGeneric_filter(TestCase): mask = ['0x1f', '0x0'] for case in mask: if case == "0x1f": - if self.nic == "niantic": + if self.nic in ["niantic", "sagepond"]: cmd = "5tuple_filter %s add dst_ip 2.2.2.5 src_ip 2.2.2.4 dst_port 1 src_port 1 protocol 0x06 mask %s tcp_flags 0x0 priority 3 queue 3" % ( valports[0], case) if self.nic == "kawela_4": cmd = "5tuple_filter %s add dst_ip 2.2.2.5 src_ip 2.2.2.4 dst_port 1 src_port 1 protocol 0x06 mask %s tcp_flags 0x02 priority 3 queue 3" % ( valports[0], case) else: - if self.nic == "niantic": + if self.nic in ["niantic", "sagepond"]: cmd = "5tuple_filter %s add dst_ip 2.2.2.5 src_ip 2.2.2.4 dst_port 1 src_port 1 protocol 0x06 mask %s tcp_flags 0x0 priority 3 queue 3" % ( valports[0], case) if self.nic == "kawela_4": @@ -345,14 +345,14 @@ class TestGeneric_filter(TestCase): out = self.dut.send_expect("stop", "testpmd> ") self.verify_result(out, tx_pkts="1", expect_queue="0") if case == "0x1f": - if self.nic == "niantic": + if self.nic in ["niantic", "sagepond"]: cmd = "5tuple_filter %s del dst_ip 2.2.2.5 src_ip 2.2.2.4 dst_port 1 src_port 1 protocol 0x06 mask %s tcp_flags 0x0 priority 3 queue 3" % ( valports[0], case) if self.nic == "kawela_4": cmd = "5tuple_filter %s del dst_ip 2.2.2.5 src_ip 2.2.2.4 dst_port 1 src_port 1 protocol 0x06 mask %s tcp_flags 0x02 priority 3 queue 3" % ( valports[0], case) else: - if self.nic == "niantic": + if self.nic in ["niantic", "sagepond"]: cmd = "5tuple_filter %s del dst_ip 2.2.2.5 src_ip 2.2.2.4 dst_port 1 src_port 1 protocol 0x06 mask %s tcp_flags 0x0 priority 3 queue 3" % ( valports[0], case) if self.nic == "kawela_4": @@ -370,7 +370,7 @@ class TestGeneric_filter(TestCase): def test_ethertype_filter(self): - self.verify(self.nic in ["niantic", "kawela_4", "bartonhills", + self.verify(self.nic in ["niantic", "kawela_4", "bartonhills", "sagepond", "powerville", "fortville_eagle", "fortville_spirit", "fortville_spirit_single", "fortpark_TLV","fortpark_BASE-T", "fortville_25g","cavium_a063", "carlsville"], "%s nic not support syn filter" % self.nic) self.pmdout.start_testpmd( @@ -395,7 +395,7 @@ class TestGeneric_filter(TestCase): self.dut.send_expect("clear port stats all", "testpmd> ") self.verify_result(out, tx_pkts="1", expect_queue="2") - if self.nic == "niantic": + if self.nic in ["niantic", "sagepond"]: self.dut.send_expect("start", "testpmd> ") self.filter_send_packet("arp_prio") time.sleep(2) @@ -417,7 +417,7 @@ class TestGeneric_filter(TestCase): self.verify_result(out, tx_pkts="1", expect_queue="0") def test_multiple_filters_10GB(self): - if self.nic == "niantic": + if self.nic in ["niantic", "sagepond"]: self.pmdout.start_testpmd( "%s" % self.cores, "--disable-rss --rxq=4 --txq=4 --portmask=%s --nb-cores=4 --nb-ports=1" % portMask) self.port_config() @@ -501,7 +501,7 @@ class TestGeneric_filter(TestCase): def test_twotuple_filter(self): - if self.nic in ["powerville", "bartonhills", "cavium_a063"]: + if self.nic in ["powerville", "bartonhills", "cavium_a063", "sagepond"]: self.pmdout.start_testpmd( "%s" % self.cores, "--disable-rss --rxq=4 --txq=4 --portmask=%s --nb-cores=4 --nb-ports=1" % portMask) self.port_config() @@ -534,7 +534,7 @@ class TestGeneric_filter(TestCase): self.verify(False, "%s nic not support two tuple filter" % self.nic) def test_flex_filter(self): - self.verify(self.nic in ["powerville", "bartonhills", "cavium_a063"], '%s not support flex filter' % self.nic) + self.verify(self.nic in ["powerville", "bartonhills", "cavium_a063", "sagepond"], '%s not support flex filter' % self.nic) masks = ['000C', '000C'] self.pmdout.start_testpmd( @@ -589,7 +589,7 @@ class TestGeneric_filter(TestCase): def test_multiple_filters_1GB(self): - if self.nic in ["powerville", "kawela_4", "bartonhills"]: + if self.nic in ["powerville", "kawela_4", "bartonhills", "sagepond"]: self.pmdout.start_testpmd( "%s" % self.cores, "--disable-rss --rxq=4 --txq=4 --portmask=%s --nb-cores=4 --nb-ports=1" % portMask) self.port_config() -- 2.17.2