[dts] [PATCH V1] tests/fdir: fix fdir case on sagepond

Liu, Yong yong.liu at intel.com
Thu Jan 25 09:51:45 CET 2018


Peipei,
Please modify your commit log for make it clear. Like which case not support on sagepond and which case is supported.

Thanks,
Marvin

> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of lu,peipei
> Sent: Thursday, January 25, 2018 4:44 PM
> To: dts at dpdk.org
> Cc: Lu, PeipeiX <peipeix.lu at intel.com>
> Subject: [dts] [PATCH V1] tests/fdir: fix fdir case on sagepond
> 
>  Add sagepond nic to test fdir, fix fdir case on sagepind.
> 
> Signed-off-by: lu,peipei <peipeix.lu at intel.com>
> ---
>  conf/test_case_checklist.json | 9 ++++++---
>  tests/TestSuite_fdir.py       | 6 +++---
>  2 files changed, 9 insertions(+), 6 deletions(-)
> 
> diff --git a/conf/test_case_checklist.json b/conf/test_case_checklist.json
> index 38cca5a..860485f 100644
> --- a/conf/test_case_checklist.json
> +++ b/conf/test_case_checklist.json
> @@ -1754,7 +1754,8 @@
>                  "ALL"
>              ],
>              "NIC": [
> -                "niantic"
> +                "niantic",
> +                "sagepond"
>              ],
>              "Target": [
>                  "ALL"
> @@ -1769,7 +1770,8 @@
>                  "ALL"
>              ],
>              "NIC": [
> -                "niantic"
> +                "niantic",
> +                "sagepond"
>              ],
>              "Target": [
>                  "ALL"
> @@ -1784,7 +1786,8 @@
>                  "ALL"
>              ],
>              "NIC": [
> -                "niantic"
> +                "niantic",
> +                "sagepond"
>              ],
>              "Target": [
>                  "ALL"
> diff --git a/tests/TestSuite_fdir.py b/tests/TestSuite_fdir.py
> index 44f1e96..80593e3 100644
> --- a/tests/TestSuite_fdir.py
> +++ b/tests/TestSuite_fdir.py
> @@ -223,7 +223,7 @@ class TestFdir(TestCase, IxiaPacketGenerator):
>          Fdir get flexbytes and payload according NIC
>          """
> 
> -        if(self.nic in ["fortville_eagle", "fortville_spirit",
> "fortville_spirit_single", "fortpark_TLV", "fortville_25g"]):
> +        if(self.nic in ["fortville_eagle", "fortville_spirit",
> "fortville_spirit_single", "fortpark_TLV", "fortville_25g", "sagepond"]):
>              if not sctp:
>                  self.flexbytes =
> "0x11,0x11,0x22,0x22,0x33,0x33,0x44,0x44,0x55,0x55,0x66,0x66,0x77,0x77,0x8
> 8,0x88"
>              else:
> @@ -318,7 +318,7 @@ class TestFdir(TestCase, IxiaPacketGenerator):
>          if self.nic in ["niantic"]:
>              # Niantic ipv6 only support signature mode
>              self.dut.send_expect("./%s/app/testpmd -c %s -n 4 -- -i --
> portmask=%s --disable-rss  --rxq=4 --txq=4 --nb-cores=4  --nb-ports=1 --
> pkt-filter-mode=signature" % (self.target, self.coreMask,
> utils.create_mask([self.dut_ports[0]])), "testpmd>", 120)
> -        elif self.nic in ["fortville_eagle", "fortville_spirit",
> "fortville_spirit_single", "fortpark_TLV", "fortville_25g"]:
> +        elif self.nic in ["fortville_eagle", "fortville_spirit",
> "fortville_spirit_single", "fortpark_TLV", "fortville_25g", "sagepond"]:
>              # Fortville ipv6 support perfect mode
>              self.dut.send_expect("./%s/app/testpmd -c %s -n 4 -- -i --
> portmask=%s --disable-rss  --rxq=4 --txq=4 --nb-cores=4  --nb-ports=1 --
> pkt-filter-mode=perfect" % (self.target, self.coreMask,
> utils.create_mask([self.dut_ports[0]])), "testpmd>", 120)
>          self.dut.send_expect("set verbose 1", "testpmd>")
> @@ -603,7 +603,7 @@ class TestFdir(TestCase, IxiaPacketGenerator):
>          if self.nic in ["niantic"]:
>              # Niantic ipv6 only support signature mode
>              self.dut.send_expect("./%s/app/testpmd -c %s -n 4 -- -i --
> portmask=%s --disable-rss  --rxq=4 --txq=4 --nb-cores=4  --nb-ports=1 --
> pkt-filter-mode=signature" % (self.target, self.coreMask,
> utils.create_mask([self.dut_ports[0]])), "testpmd>", 120)
> -        elif self.nic in ["fortville_eagle", "fortville_spirit",
> "fortville_spirit_single", "fortpark_TLV", "fortville_25g"]:
> +        elif self.nic in ["fortville_eagle", "fortville_spirit",
> "fortville_spirit_single", "fortpark_TLV", "fortville_25g", "sagepond"]:
>              # fortville ipv6 support perfect mode
>              self.dut.send_expect("./%s/app/testpmd -c %s -n 4 -- -i --
> portmask=%s --disable-rss --rxq=4 --txq=4 --nb-cores=4 --nb-ports=1 --pkt-
> filter-mode=perfect" % (self.target, self.coreMask,
> utils.create_mask([self.dut_ports[0]])), "testpmd>", 120)
>          self.dut.send_expect("set verbose 1", "testpmd>")
> --
> 1.9.3



More information about the dts mailing list