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 6BA7558C6 for ; Mon, 22 Jan 2018 10:34:50 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Jan 2018 01:34:49 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,396,1511856000"; d="scan'208";a="168068513" Received: from juan.sh.intel.com ([10.67.119.88]) by orsmga004.jf.intel.com with ESMTP; 22 Jan 2018 01:34:47 -0800 From: Lijuan Tu To: dts@dpdk.org Cc: Lijuan Tu Date: Tue, 23 Jan 2018 02:10:13 +0800 Message-Id: <1516644613-3125-1-git-send-email-lijuanx.a.tu@intel.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset=a Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH]tests: Remove vlan insert offload as default. 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: Mon, 22 Jan 2018 09:34:51 -0000 commit fbebce7d3b2b("tests: replace txqflags with txoffload") the patch enable all tx offloads. vlan insert offload will cause all transmit packets have vlan. Signed-off-by: Lijuan Tu --- framework/pmd_output.py | 2 +- test_plans/ddp_gtp_test_plan.rst | 2 +- test_plans/ddp_mpls_test_plan.rst | 2 +- test_plans/etag_test_plan.rst | 2 +- test_plans/external_mempool_handler_test_plan.rst | 10 +++++----- .../fortville_rss_granularity_config_test_plan.rst | 8 ++++---- test_plans/generic_flow_api_test_plan.rst | 10 +++++----- test_plans/ipgre_test_plan.rst | 8 ++++---- test_plans/macsec_for_ixgbe_test_plan.rst | 10 +++++----- test_plans/pmdrss_hash_test_plan.rst | 2 +- test_plans/qinq_filter_test_plan.rst | 8 ++++---- test_plans/tx_preparation_test_plan.rst | 4 ++-- test_plans/uni_pkt_test_plan.rst | 2 +- test_plans/vf_daemon_test_plan.rst | 2 +- test_plans/vf_jumboframe_test_plan.rst | 2 +- test_plans/vf_macfilter_test_plan.rst | 4 ++-- test_plans/vf_packet_rxtx_test_plan.rst | 2 +- test_plans/vf_pf_reset_test_plan.rst | 14 +++++++------- test_plans/vf_rss_test_plan.rst | 2 +- test_plans/vf_to_vf_nic_bridge_test_plan.rst | 4 ++-- test_plans/vf_vlan_test_plan.rst | 4 ++-- test_plans/vlan_ethertype_config_test_plan.rst | 12 ++++++------ test_plans/vxlan_test_plan.rst | 8 ++++---- tests/TestSuite_fortville_rss_granularity_config.py | 12 ++++++------ tests/TestSuite_ipgre.py | 4 ++-- tests/TestSuite_nvgre.py | 8 ++++---- tests/TestSuite_pmdrss_hash.py | 2 +- tests/TestSuite_qinq_filter.py | 16 ++++++++-------- tests/TestSuite_sriov_kvm.py | 2 +- tests/TestSuite_tso.py | 6 +++--- tests/TestSuite_uni_pkt.py | 2 +- tests/TestSuite_vf_jumboframe.py | 10 +++++----- tests/TestSuite_vf_offload.py | 4 ++-- tests/TestSuite_vxlan.py | 20 ++++++++++---------- 34 files changed, 105 insertions(+), 105 deletions(-) diff --git a/framework/pmd_output.py b/framework/pmd_output.py index 0c1dfc6..c46e88d 100644 --- a/framework/pmd_output.py +++ b/framework/pmd_output.py @@ -103,7 +103,7 @@ class PmdOutput(): def start_testpmd(self, cores, param='', eal_param='', socket=0): # in dpdk18.02 need used --tx-offloads param to open hardware features if "--tx-offloads" not in param: - param += " --tx-offloads=0x8fff" + param += " --tx-offloads=0x8ffe" if type(cores) == list: core_list = cores diff --git a/test_plans/ddp_gtp_test_plan.rst b/test_plans/ddp_gtp_test_plan.rst index aedf45f..e7dbead 100644 --- a/test_plans/ddp_gtp_test_plan.rst +++ b/test_plans/ddp_gtp_test_plan.rst @@ -82,7 +82,7 @@ Prerequisites port topology mode, add txq/rxq to enable multi-queues. In general, PF's max queue is 64, VF's max queue is 4:: - ./testpmd -c f -n 4 -- -i --pkt-filter-mode=perfect --port-topology=chained --tx-offloads=0x8fff --txq=64 --rxq=64 + ./testpmd -c f -n 4 -- -i --pkt-filter-mode=perfect --port-topology=chained --tx-offloads=0x8ffe --txq=64 --rxq=64 Test Case: Load dynamic device personalization diff --git a/test_plans/ddp_mpls_test_plan.rst b/test_plans/ddp_mpls_test_plan.rst index cce8efb..452c1a1 100644 --- a/test_plans/ddp_mpls_test_plan.rst +++ b/test_plans/ddp_mpls_test_plan.rst @@ -70,7 +70,7 @@ Prerequisites enable multi-queues. In general, PF's max queue is 64, VF's max queue is 4:: - ./testpmd -c f -n 4 -- -i --port-topology=chained --tx-offloads=0x8fff + ./testpmd -c f -n 4 -- -i --port-topology=chained --tx-offloads=0x8ffe --txq=4 --rxq=4 diff --git a/test_plans/etag_test_plan.rst b/test_plans/etag_test_plan.rst index 6350d64..4d2ea0d 100644 --- a/test_plans/etag_test_plan.rst +++ b/test_plans/etag_test_plan.rst @@ -87,7 +87,7 @@ Prerequisites 6. Start guest testpmd, set it in mac forward mode:: - testpmd -c 0x3 -n 1 -- -i --tx-offloads=0x8fff + testpmd -c 0x3 -n 1 -- -i --tx-offloads=0x8ffe testpmd> set fwd mac testpmd> start diff --git a/test_plans/external_mempool_handler_test_plan.rst b/test_plans/external_mempool_handler_test_plan.rst index be53272..004e931 100644 --- a/test_plans/external_mempool_handler_test_plan.rst +++ b/test_plans/external_mempool_handler_test_plan.rst @@ -50,7 +50,7 @@ Test Case 1: Multiple producers and multiple consumers 3. Start testpmd with two ports and start forwarding:: - testpmd -c 0x6 -n 4 -- -i --portmask=0x3 --tx-offloads=0x8fff + testpmd -c 0x6 -n 4 -- -i --portmask=0x3 --tx-offloads=0x8ffe testpmd> set fwd mac testpmd> start @@ -68,7 +68,7 @@ Test Case 2: Single producer and Single consumer 3. Start testpmd with two ports and start forwarding:: - testpmd -c 0x6 -n 4 -- -i --portmask=0x3 --tx-offloads=0x8fff + testpmd -c 0x6 -n 4 -- -i --portmask=0x3 --tx-offloads=0x8ffe testpmd> set fwd mac testpmd> start @@ -86,7 +86,7 @@ Test Case 3: Single producer and Multiple consumers 3. Start testpmd with two ports and start forwarding:: - testpmd -c 0x6 -n 4 -- -i --portmask=0x3 --tx-offloads=0x8fff + testpmd -c 0x6 -n 4 -- -i --portmask=0x3 --tx-offloads=0x8ffe testpmd> set fwd mac testpmd> start @@ -104,7 +104,7 @@ Test Case 4: Multiple producers and single consumer 3. Start testpmd with two ports and start forwarding:: - testpmd -c 0x6 -n 4 -- -i --portmask=0x3 --tx-offloads=0x8fff + testpmd -c 0x6 -n 4 -- -i --portmask=0x3 --tx-offloads=0x8ffe testpmd> set fwd mac testpmd> start @@ -122,7 +122,7 @@ Test Case 4: Stack mempool handler 3. Start testpmd with two ports and start forwarding:: - testpmd -c 0x6 -n 4 -- -i --portmask=0x3 --tx-offloads=0x8fff + testpmd -c 0x6 -n 4 -- -i --portmask=0x3 --tx-offloads=0x8ffe testpmd> set fwd mac testpmd> start diff --git a/test_plans/fortville_rss_granularity_config_test_plan.rst b/test_plans/fortville_rss_granularity_config_test_plan.rst index 4666d9c..6e12e8d 100644 --- a/test_plans/fortville_rss_granularity_config_test_plan.rst +++ b/test_plans/fortville_rss_granularity_config_test_plan.rst @@ -77,7 +77,7 @@ Test Case 1: test with flow type ipv4-tcp 1. set up testpmd with Fortville NICs:: - ./testpmd -c 0x1ffff -n 4 -- -i --coremask=0x1fffe --portmask=0x3 --rxq=16 --txq=16 --tx-offloads=0x8fff + ./testpmd -c 0x1ffff -n 4 -- -i --coremask=0x1fffe --portmask=0x3 --rxq=16 --txq=16 --tx-offloads=0x8ffe 2. Reta Configuration(optional, if not set, will use default):: @@ -152,7 +152,7 @@ Test Case 2: test with flow type ipv4-udp 1. set up testpmd with Fortville NICs:: - ./testpmd -c 0x1ffff -n 4 -- -i --coremask=0x1fffe --portmask=0x3 --rxq=16 --txq=16 --tx-offloads=0x8fff + ./testpmd -c 0x1ffff -n 4 -- -i --coremask=0x1fffe --portmask=0x3 --rxq=16 --txq=16 --tx-offloads=0x8ffe 2. Reta Configuration(optional, if not set, will use default):: @@ -248,7 +248,7 @@ Test Case 5: test dual vlan(QinQ) 1. set up testpmd with Fortville NICs:: - ./testpmd -c 0x1ffff -n 4 -- -i --coremask=0x1fffe --portmask=0x3 --rxq=16 --txq=16 --tx-offloads=0x8fff + ./testpmd -c 0x1ffff -n 4 -- -i --coremask=0x1fffe --portmask=0x3 --rxq=16 --txq=16 --tx-offloads=0x8ffe 2. set qinq on:: @@ -311,7 +311,7 @@ Test Case 6: 32-bit GRE keys and 24-bit GRE keys test 1. set up testpmd with Fortville NICs:: - ./testpmd -c 0x1ffff -n 4 -- -i --coremask=0x1fffe --portmask=0x3 --rxq=16 --txq=16 --tx-offloads=0x8fff + ./testpmd -c 0x1ffff -n 4 -- -i --coremask=0x1fffe --portmask=0x3 --rxq=16 --txq=16 --tx-offloads=0x8ffe 2. Reta Configuration(optional, if not set, will use default):: diff --git a/test_plans/generic_flow_api_test_plan.rst b/test_plans/generic_flow_api_test_plan.rst index f53e7c7..d5e9d76 100644 --- a/test_plans/generic_flow_api_test_plan.rst +++ b/test_plans/generic_flow_api_test_plan.rst @@ -450,7 +450,7 @@ Test case: Fortville tunnel vxlan 1. Launch the app ``testpmd`` with the following arguments:: - ./x86_64-native-linuxapp-gcc/app/testpmd -c 1ffff -n 4 -w 05:00.0 --file-prefix=pf --socket-mem=1024,1024 -- -i --rxq=16 --txq=16 --tx-offloads=0x8fff --disable-rss + ./x86_64-native-linuxapp-gcc/app/testpmd -c 1ffff -n 4 -w 05:00.0 --file-prefix=pf --socket-mem=1024,1024 -- -i --rxq=16 --txq=16 --tx-offloads=0x8ffe --disable-rss testpmd> rx_vxlan_port add 4789 0 testpmd> set fwd rxonly testpmd> set verbose 1 @@ -458,7 +458,7 @@ Test case: Fortville tunnel vxlan testpmd> start the pf's mac address is 00:00:00:00:01:00 - ./x86_64-native-linuxapp-gcc/app/testpmd -c 1e0000 -n 4 -w 05:02.0 --file-prefix=vf --socket-mem=1024,1024 -- -i --rxq=4 --txq=4 --tx-offloads=0x8fff --disable-rss + ./x86_64-native-linuxapp-gcc/app/testpmd -c 1e0000 -n 4 -w 05:02.0 --file-prefix=vf --socket-mem=1024,1024 -- -i --rxq=4 --txq=4 --tx-offloads=0x8ffe --disable-rss testpmd> set fwd rxonly testpmd> set verbose 1 testpmd> set promisc all off @@ -553,19 +553,19 @@ Test case: Fortville tunnel nvgre 1. Launch the app ``testpmd`` with the following arguments:: - ./x86_64-native-linuxapp-gcc/app/testpmd -c 1ffff -n 4 -w 05:00.0 --file-prefix=pf --socket-mem=1024,1024 -- -i --rxq=16 --txq=16 --tx-offloads=0x8fff + ./x86_64-native-linuxapp-gcc/app/testpmd -c 1ffff -n 4 -w 05:00.0 --file-prefix=pf --socket-mem=1024,1024 -- -i --rxq=16 --txq=16 --tx-offloads=0x8ffe testpmd> set fwd rxonly testpmd> set verbose 1 testpmd> set promisc all off testpmd> start - ./x86_64-native-linuxapp-gcc/app/testpmd -c 1e0000 -n 4 -w 05:02.0 --file-prefix=vf0 --socket-mem=1024,1024 -- -i --rxq=4 --txq=4 --tx-offloads=0x8fff + ./x86_64-native-linuxapp-gcc/app/testpmd -c 1e0000 -n 4 -w 05:02.0 --file-prefix=vf0 --socket-mem=1024,1024 -- -i --rxq=4 --txq=4 --tx-offloads=0x8ffe testpmd> set fwd rxonly testpmd> set verbose 1 testpmd> set promisc all off testpmd> start - ./x86_64-native-linuxapp-gcc/app/testpmd -c 1e00000 -n 4 -w 05:02.1 --file-prefix=vf1 --socket-mem=1024,1024 -- -i --rxq=4 --txq=4 --tx-offloads=0x8fff + ./x86_64-native-linuxapp-gcc/app/testpmd -c 1e00000 -n 4 -w 05:02.1 --file-prefix=vf1 --socket-mem=1024,1024 -- -i --rxq=4 --txq=4 --tx-offloads=0x8ffe testpmd> set fwd rxonly testpmd> set verbose 1 testpmd> set promisc all off diff --git a/test_plans/ipgre_test_plan.rst b/test_plans/ipgre_test_plan.rst index 3ca9af7..9fe7026 100644 --- a/test_plans/ipgre_test_plan.rst +++ b/test_plans/ipgre_test_plan.rst @@ -48,7 +48,7 @@ Test Case 1: GRE ipv4 packet detect Start testpmd and enable rxonly forwarding mode:: - testpmd -c ffff -n 4 -- -i --tx-offloads=0x8fff + testpmd -c ffff -n 4 -- -i --tx-offloads=0x8ffe testpmd> set fwd rxonly testpmd> set verbose 1 testpmd> start @@ -77,7 +77,7 @@ Test Case 2: GRE ipv6 packet detect Start testpmd and enable rxonly forwarding mode:: - testpmd -c ffff -n 4 -- -i --tx-offloads=0x8fff + testpmd -c ffff -n 4 -- -i --tx-offloads=0x8ffe testpmd> set fwd rxonly testpmd> set verbose 1 testpmd> start @@ -124,7 +124,7 @@ Test Case 3: GRE packet filter Start testpmd with multi queues:: - testpmd -c ff -n 3 -- -i --rxq=4 --txq=4 --tx-offloads=0x8fff + testpmd -c ff -n 3 -- -i --rxq=4 --txq=4 --tx-offloads=0x8ffe testpmd> set fwd rxonly testpmd> set nbcore 4 testpmd> set verbose 1 @@ -161,7 +161,7 @@ Test Case 4: GRE packet chksum offload Start testpmd with hardware checksum offload enabled:: - testpmd -c ff -n 3 -- -i --tx-offloads=0x8fff --enable-rx-cksum --port-topology=loop + testpmd -c ff -n 3 -- -i --tx-offloads=0x8ffe --enable-rx-cksum --port-topology=loop testpmd> set verbose 1 testpmd> set fwd csum testpmd> csum set ip hw 0 diff --git a/test_plans/macsec_for_ixgbe_test_plan.rst b/test_plans/macsec_for_ixgbe_test_plan.rst index 4b8a762..db347e7 100644 --- a/test_plans/macsec_for_ixgbe_test_plan.rst +++ b/test_plans/macsec_for_ixgbe_test_plan.rst @@ -135,7 +135,7 @@ Test Case 1: MACsec packets send and receive 1. Start the testpmd of tx port:: ./testpmd -c 0x30 --socket-mem 1024,1024 --file-prefix=tx -w 0000:07:00.0 \ - -- --port-topology=chained -i --crc-strip --tx-offloads=0x8fff + -- --port-topology=chained -i --crc-strip --tx-offloads=0x8ffe 2. Set MACsec offload on:: @@ -294,7 +294,7 @@ Test Case 4: normal packet send and MACsec receive Test Case 5: MACsec send and receive with wrong parameters ========================================================== -1. Don't add "--tx-offloads=0x8fff" in the tx_port command line. +1. Don't add "--tx-offloads=0x8ffe" in the tx_port command line. the MACsec offload can't work. The tx packets are normal packets. 2. Set different pn on rx and tx port, then start the data transfer. @@ -347,7 +347,7 @@ Test Case 6: performance test of MACsec offload packets MACsec offload on, set fwd mac:: ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xc -- -i \ - --port-topology=chained --crc-strip --tx-offloads=0x8fff + --port-topology=chained --crc-strip --tx-offloads=0x8ffe on IXIA side, start IXIA port6 transmit, start the IXIA capture. view the IXIA port5 captured packet, the protocol is MACsec, the EtherType @@ -363,7 +363,7 @@ Test Case 6: performance test of MACsec offload packets start two testpmd:: ./testpmd -c 0x3 --socket-mem 1024,1024 --file-prefix=rx -w 0000:07:00.1 \ - -- --port-topology=chained -i --crc-strip --tx-offloads=0x8fff + -- --port-topology=chained -i --crc-strip --tx-offloads=0x8ffe testpmd>set macsec offload 0 on encrypt on replay-protect on testpmd>set macsec sc rx 0 00:00:00:00:00:01 0 @@ -373,7 +373,7 @@ Test Case 6: performance test of MACsec offload packets testpmd>set fwd rxonly ./testpmd -c 0xc --socket-mem 1024,1024 --file-prefix=tx -b 0000:07:00.1 \ - -- --port-topology=chained -i --crc-strip --tx-offloads=0x8fff + -- --port-topology=chained -i --crc-strip --tx-offloads=0x8ffe testpmd>set macsec offload 1 on encrypt on replay-protect on testpmd>set macsec sc rx 1 00:00:00:00:00:02 0 diff --git a/test_plans/pmdrss_hash_test_plan.rst b/test_plans/pmdrss_hash_test_plan.rst index 0e6aa20..91d4c10 100644 --- a/test_plans/pmdrss_hash_test_plan.rst +++ b/test_plans/pmdrss_hash_test_plan.rst @@ -156,7 +156,7 @@ This case test bond slaves will auto sync rss hash config, it only support by fo #. set up testpmd with fortville NICs:: - ./testpmd -c f -n 4 -- -i --portmask 0x3 --tx-offloads=0x8fff + ./testpmd -c f -n 4 -- -i --portmask 0x3 --tx-offloads=0x8ffe #. create bond device with mode 3:: diff --git a/test_plans/qinq_filter_test_plan.rst b/test_plans/qinq_filter_test_plan.rst index 10f697c..37395f7 100644 --- a/test_plans/qinq_filter_test_plan.rst +++ b/test_plans/qinq_filter_test_plan.rst @@ -56,7 +56,7 @@ Testpmd configuration - 4 RX/TX queues per port #. set up testpmd with fortville NICs:: - ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x1f -n 4 -- -i --rxq=4 --txq=4 --tx-offloads=0x8fff --disable-rss + ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x1f -n 4 -- -i --rxq=4 --txq=4 --tx-offloads=0x8ffe --disable-rss #. enable qinq:: @@ -89,7 +89,7 @@ Testpmd configuration - 4 RX/TX queues per port #. set up testpmd with fortville NICs:: - ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x1f -n 4 -- -i --rxq=4 --txq=4 --tx-offloads=0x8fff --disable-rss + ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x1f -n 4 -- -i --rxq=4 --txq=4 --tx-offloads=0x8ffe --disable-rss #. enable qinq:: @@ -132,7 +132,7 @@ Test Case 3: qinq packet filter to VF queues #. set up testpmd with fortville PF NICs:: - ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x1f -n 4 --socket-mem=1024,1024 --file-prefix=pf -w 81:00.0 -- -i --rxq=4 --txq=4 --tx-offloads=0x8fff + ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x1f -n 4 --socket-mem=1024,1024 --file-prefix=pf -w 81:00.0 -- -i --rxq=4 --txq=4 --tx-offloads=0x8ffe #. enable qinq:: @@ -209,7 +209,7 @@ Test Case 4: qinq packet filter with diffierent tpid #. set up testpmd with fortville PF NICs:: - ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x1f -n 4 --socket-mem=1024,1024 --file-prefix=pf -w 81:00.0 -- -i --rxq=4 --txq=4 --tx-offloads=0x8fff + ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x1f -n 4 --socket-mem=1024,1024 --file-prefix=pf -w 81:00.0 -- -i --rxq=4 --txq=4 --tx-offloads=0x8ffe #. enable qinq:: diff --git a/test_plans/tx_preparation_test_plan.rst b/test_plans/tx_preparation_test_plan.rst index 978c7e6..2c36f0a 100644 --- a/test_plans/tx_preparation_test_plan.rst +++ b/test_plans/tx_preparation_test_plan.rst @@ -72,11 +72,11 @@ Change mtu for large packet:: ifconfig eth1 mtu 9000 -Launch the ``testpmd`` with the following arguments, set ``--tx-offloads=0x8fff`` to +Launch the ``testpmd`` with the following arguments, set ``--tx-offloads=0x8ffe`` to let TX checksum offloads, TSO mode in the “Full Featured” TX path, add --max-pkt-len for large packet:: - ./testpmd -c 0x6 -n 4 -- -i --tx-offloads=0x8fff --port-topology=chained + ./testpmd -c 0x6 -n 4 -- -i --tx-offloads=0x8ffe --port-topology=chained --max-pkt-len=9000 Set the ``csum`` forwarding mode:: diff --git a/test_plans/uni_pkt_test_plan.rst b/test_plans/uni_pkt_test_plan.rst index 6db91b0..caa7691 100644 --- a/test_plans/uni_pkt_test_plan.rst +++ b/test_plans/uni_pkt_test_plan.rst @@ -55,7 +55,7 @@ Plug in three different types of nic on the board. Start testpmd and then enable rxonly and verbose mode:: - ./x86_64-native-linuxapp-gcc/app/testpmd -c f -n 4 -- -i --tx-offloads=0x8fff + ./x86_64-native-linuxapp-gcc/app/testpmd -c f -n 4 -- -i --tx-offloads=0x8ffe set fwd rxonly set verbose 1 start diff --git a/test_plans/vf_daemon_test_plan.rst b/test_plans/vf_daemon_test_plan.rst index 5dd582b..c857c5c 100644 --- a/test_plans/vf_daemon_test_plan.rst +++ b/test_plans/vf_daemon_test_plan.rst @@ -87,7 +87,7 @@ Prerequisites 5. Start testpmd on host and vm0 in chained port topology:: - ./testpmd -c f -n 4 -- -i --port-topology=chained --tx-offloads=0x8fff + ./testpmd -c f -n 4 -- -i --port-topology=chained --tx-offloads=0x8ffe Test Case 1: Set VLAN insert for VF from PF diff --git a/test_plans/vf_jumboframe_test_plan.rst b/test_plans/vf_jumboframe_test_plan.rst index 2f4cae3..8f0c03a 100644 --- a/test_plans/vf_jumboframe_test_plan.rst +++ b/test_plans/vf_jumboframe_test_plan.rst @@ -86,7 +86,7 @@ Prerequisites 5. Start testpmd, set it in mac forward mode:: testpmd -c 0x0f-- -i --portmask=0x1 \ - --tx-offloads=0x8fff --max-pkt-len=9000--port-topology=loop + --tx-offloads=0x8ffe --max-pkt-len=9000--port-topology=loop testpmd> set fwd mac testpmd> start diff --git a/test_plans/vf_macfilter_test_plan.rst b/test_plans/vf_macfilter_test_plan.rst index 221c05e..d849634 100644 --- a/test_plans/vf_macfilter_test_plan.rst +++ b/test_plans/vf_macfilter_test_plan.rst @@ -97,7 +97,7 @@ Test Case 1: test_kernel_2pf_2vf_1vm_iplink_macfilter disable promisc mode,set it in mac forward mode:: ./tools/dpdk_nic_bind.py --bind=igb_uio 00:06.0 00:07.0 - ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x0f -n 4 -w 00:06.0 -w 00:07.0 -- -i --portmask=0x3 --tx-offloads=0x8fff + ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x0f -n 4 -w 00:06.0 -w 00:07.0 -- -i --portmask=0x3 --tx-offloads=0x8ffe testpmd> port stop all testpmd> port config all crc-strip on @@ -175,7 +175,7 @@ Test Case 2: test_kernel_2pf_2vf_1vm_mac_add_filter VF, disable promisc mode, add a new MAC to VF0 and then start:: ./tools/dpdk_nic_bind.py --bind=igb_uio 00:06.0 00:07.0 - ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x0f -n 4 -w 00:06.0 -w 00:07.0 -- -i --portmask=0x3 --tx-offloads=0x8fff + ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x0f -n 4 -w 00:06.0 -w 00:07.0 -- -i --portmask=0x3 --tx-offloads=0x8ffe testpmd> port stop all testpmd> port config all crc-strip on diff --git a/test_plans/vf_packet_rxtx_test_plan.rst b/test_plans/vf_packet_rxtx_test_plan.rst index 0df9984..56dadcd 100644 --- a/test_plans/vf_packet_rxtx_test_plan.rst +++ b/test_plans/vf_packet_rxtx_test_plan.rst @@ -97,7 +97,7 @@ Test Case 1: VF_packet_IO_kernel_PF_dpdk_VF ./tools/dpdk_nic_bind.py --bind=igb_uio 00:06.0 00:07.0 ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x0f -n 4 -w 00:06.0 -w 00:07.0 \ - -- -i --portmask=0x3 --tx-offloads=0x8fff + -- -i --portmask=0x3 --tx-offloads=0x8ffe testpmd> set fwd mac testpmd> start diff --git a/test_plans/vf_pf_reset_test_plan.rst b/test_plans/vf_pf_reset_test_plan.rst index 7d526c8..753aaf5 100644 --- a/test_plans/vf_pf_reset_test_plan.rst +++ b/test_plans/vf_pf_reset_test_plan.rst @@ -85,7 +85,7 @@ Test Case 1: vf reset -- create two vfs on one pf 5. Run testpmd:: ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x0f -n 4 -- -i \ - --portmask=0x3 --tx-offloads=0x8fff --crc-strip + --portmask=0x3 --tx-offloads=0x8ffe --crc-strip testpmd> set fwd mac testpmd> start testpmd> set allmulti all on @@ -203,7 +203,7 @@ Test Case 3: vf reset -- create one vf on each pf 3. Start one testpmd on two vf ports:: ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x0f -n 4 -- -i \ - --portmask=0x3 --tx-offloads=0x8fff --crc-strip + --portmask=0x3 --tx-offloads=0x8ffe --crc-strip 4. Start forwarding:: @@ -230,7 +230,7 @@ Test Case 4: vlan rx restore -- vf reset all ports 1. Execute the step1-step3 of test case 1, then start the testpmd:: ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x0f -n 4 -- -i \ - --portmask=0x3 --tx-offloads=0x8fff --crc-strip + --portmask=0x3 --tx-offloads=0x8ffe --crc-strip testpmd> set fwd mac 2. Add vlan on both ports:: @@ -283,7 +283,7 @@ test Case 5: vlan rx restore -- vf reset one port 1. Execute the step1-step3 of test case 1, then start the testpmd:: ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x0f -n 4 -- -i \ - --portmask=0x3 --tx-offloads=0x8fff --crc-strip + --portmask=0x3 --tx-offloads=0x8ffe --crc-strip testpmd> set fwd mac 2. Add vlan on both ports:: @@ -413,7 +413,7 @@ Test Case 7: vlan tx restore 2. Run testpmd:: ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x0f -n 4 -- -i \ - --portmask=0x3 --tx-offloads=0x8fff --crc-strip + --portmask=0x3 --tx-offloads=0x8ffe --crc-strip 2. Add tx vlan offload on VF1 port, take care the first param is port, start forwarding:: @@ -457,7 +457,7 @@ test Case 8: MAC address restore 3. Start testpmd on two vf ports:: ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x0f -n 4 \ - -- -i --portmask=0x3 --tx-offloads=0x8fff --crc-strip + -- -i --portmask=0x3 --tx-offloads=0x8ffe --crc-strip 4. Add MAC address to the vf0 ports:: @@ -527,7 +527,7 @@ test Case 9: vf reset (two vfs passed through to one VM) ./tools/dpdk_nic_bind.py --bind=igb_uio 00:05.0 00:05.1 ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x0f -n 4 \ - -w 00:05.0 -w 00:05.1 -- -i --portmask=0x3 --tx-offloads=0x8fff + -w 00:05.0 -w 00:05.1 -- -i --portmask=0x3 --tx-offloads=0x8ffe 5. Add MAC address to the vf0 ports, set it in mac forward mode:: diff --git a/test_plans/vf_rss_test_plan.rst b/test_plans/vf_rss_test_plan.rst index c425227..41feb0e 100644 --- a/test_plans/vf_rss_test_plan.rst +++ b/test_plans/vf_rss_test_plan.rst @@ -88,7 +88,7 @@ Testpmd configuration - 4 RX/TX queues per port :: - testpmd -c 1f -n 3 -- -i --rxq=4 --txq=4 --tx-offloads=0x8fff + testpmd -c 1f -n 3 -- -i --rxq=4 --txq=4 --tx-offloads=0x8ffe Testpmd Configuration Options ----------------------------- diff --git a/test_plans/vf_to_vf_nic_bridge_test_plan.rst b/test_plans/vf_to_vf_nic_bridge_test_plan.rst index 576c9d7..6e25df2 100644 --- a/test_plans/vf_to_vf_nic_bridge_test_plan.rst +++ b/test_plans/vf_to_vf_nic_bridge_test_plan.rst @@ -107,7 +107,7 @@ dpdk pktgen to vf in vm0, and verify the vf on vm0 can receive stream. Step 1: run testpmd on vm0:: - ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x7 -n 1 -- -i --tx-offloads=0x8fff + ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x7 -n 1 -- -i --tx-offloads=0x8ffe Step 2: set rxonly and start on vm0:: @@ -164,7 +164,7 @@ Test Case3: test_2vf_k2d_scapy_stream Step 1: run testpmd on vm0:: - ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x7 -n 1 -- -i --tx-offloads=0x8fff + ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x7 -n 1 -- -i --tx-offloads=0x8ffe Step 2: set rxonly and start on vm0:: diff --git a/test_plans/vf_vlan_test_plan.rst b/test_plans/vf_vlan_test_plan.rst index 49d7c37..d10b270 100644 --- a/test_plans/vf_vlan_test_plan.rst +++ b/test_plans/vf_vlan_test_plan.rst @@ -87,7 +87,7 @@ Prerequisites 5. Start testpmd, set it in rxonly mode and enable verbose output:: - testpmd -c 0x0f -n 4 -w 00:04.0 -w 00:05.0 -- -i --portmask=0x3 --tx-offloads=0x8fff + testpmd -c 0x0f -n 4 -w 00:04.0 -w 00:05.0 -- -i --portmask=0x3 --tx-offloads=0x8ffe testpmd> set fwd rxonly testpmd> set verbose 1 testpmd> start @@ -148,7 +148,7 @@ Test Case 3: VF tagged vlan tx 1. Start testpmd with full-featured tx code path and with mac forward mode:: - testpmd -c f -n 3 -- -i --tx-offloads=0x8fff + testpmd -c f -n 3 -- -i --tx-offloads=0x8ffe testpmd> set fwd mac testpmd> start diff --git a/test_plans/vlan_ethertype_config_test_plan.rst b/test_plans/vlan_ethertype_config_test_plan.rst index 9315e39..236a795 100644 --- a/test_plans/vlan_ethertype_config_test_plan.rst +++ b/test_plans/vlan_ethertype_config_test_plan.rst @@ -60,7 +60,7 @@ Test Case 1: change VLAN TPID 1. Start testpmd, start in rxonly mode:: - ./testpmd -c 0xff -n 4 -- -i --portmask=0x3 --tx-offloads=0x8fff + ./testpmd -c 0xff -n 4 -- -i --portmask=0x3 --tx-offloads=0x8ffe testpmd> set fwd rxonly testpmd> set verbose 1 testpmd> start @@ -76,7 +76,7 @@ Test Case 2: test VLAN filtering on/off 1. Start testpmd, setup vlan filter on, start in mac forwarding mode:: - ./testpmd -c 0xff -n 4 -- -i --portmask=0x3 --tx-offloads=0x8fff + ./testpmd -c 0xff -n 4 -- -i --portmask=0x3 --tx-offloads=0x8ffe testpmd> set fwd mac testpmd> vlan set filter on 0 testpmd> start @@ -96,7 +96,7 @@ Test Case 3: test adding VLAN Tag Identifier with changing VLAN TPID 1. start testpmd, setup vlan filter on, start in mac forwarding mode:: - ./testpmd -c 0xff -n 4 -- -i --portmask=0x3 --tx-offloads=0x8fff + ./testpmd -c 0xff -n 4 -- -i --portmask=0x3 --tx-offloads=0x8ffe testpmd> set fwd mac testpmd> vlan set filter on 0 testpmd> vlan set strip off 0 @@ -128,7 +128,7 @@ Test Case 4: test VLAN header striping with changing VLAN TPID 1. start testpmd, setup vlan filter off, vlan strip on, start in mac forwarding mode:: - ./testpmd -c 0xff -n 4 -- -i --portmask=0x3 --tx-offloads=0x8fff + ./testpmd -c 0xff -n 4 -- -i --portmask=0x3 --tx-offloads=0x8ffe testpmd> set fwd mac testpmd> vlan set filter off 0 testpmd> vlan set strip on 0 @@ -157,7 +157,7 @@ Test Case 5: test VLAN header inserting with changing VLAN TPID 1. start testpmd, enable vlan packet forwarding, start in mac forwarding mode:: - ./testpmd -c 0xff -n 4 -- -i --portmask=0x3 --tx-offloads=0x8fff + ./testpmd -c 0xff -n 4 -- -i --portmask=0x3 --tx-offloads=0x8ffe testpmd> set fwd mac testpmd> vlan set filter off 0 testpmd> vlan set strip off 0 @@ -192,7 +192,7 @@ Test Case 6: Change S-Tag and C-Tag within QinQ 1. Start testpmd, enable QinQ, start in rxonly mode:: - ./testpmd -c 0xff -n 4 -- -i --portmask=0x3 --tx-offloads=0x8fff + ./testpmd -c 0xff -n 4 -- -i --portmask=0x3 --tx-offloads=0x8ffe testpmd> vlan set qinq on 0 testpmd> set fwd rxonly testpmd> set verbose 1 diff --git a/test_plans/vxlan_test_plan.rst b/test_plans/vxlan_test_plan.rst index c058637..e01630a 100644 --- a/test_plans/vxlan_test_plan.rst +++ b/test_plans/vxlan_test_plan.rst @@ -58,7 +58,7 @@ Test Case: Vxlan ipv4 packet detect =================================== Start testpmd with tunneling packet type to vxlan:: - testpmd -c ffff -n 4 -- -i --rxq=4 --txq=4 --nb-cores=8 --nb-ports=2 --tx-offloads=0x8fff + testpmd -c ffff -n 4 -- -i --rxq=4 --txq=4 --nb-cores=8 --nb-ports=2 --tx-offloads=0x8ffe Set rxonly packet forwarding mode and enable verbose log:: @@ -91,7 +91,7 @@ Test Case: Vxlan ipv6 packet detect =================================== Start testpmd with tunneling packet type to vxlan:: - testpmd -c ffff -n 4 -- -i --disable-rss --rxq=4 --txq=4 --nb-cores=8 --nb-ports=2 --tx-offloads=0x8fff + testpmd -c ffff -n 4 -- -i --disable-rss --rxq=4 --txq=4 --nb-cores=8 --nb-ports=2 --tx-offloads=0x8ffe Set rxonly packet forwarding mode and enable verbose log:: @@ -124,7 +124,7 @@ Test Case: Vxlan ipv4 checksum offload Start testpmd with tunneling packet type to vxlan:: - testpmd -c ffff -n 4 -- -i --rxq=4 --txq=4 --nb-cores=8 --nb-ports=2 --tx-offloads=0x8fff + testpmd -c ffff -n 4 -- -i --rxq=4 --txq=4 --nb-cores=8 --nb-ports=2 --tx-offloads=0x8ffe Set csum packet forwarding mode and enable verbose log:: @@ -290,7 +290,7 @@ Test Case: Cloud Filter Start testpmd with tunneling packet type to vxlan and disable receive side scale for hardware limitation:: - testpmd -c ffff -n 4 -- -i --disable-rss --rxq=4 --txq=4 --nb-cores=8 --nb-ports=2 --tx-offloads=0x8fff + testpmd -c ffff -n 4 -- -i --disable-rss --rxq=4 --txq=4 --nb-cores=8 --nb-ports=2 --tx-offloads=0x8ffe Set rxonly packet forwarding mode and enable verbose log:: diff --git a/tests/TestSuite_fortville_rss_granularity_config.py b/tests/TestSuite_fortville_rss_granularity_config.py index c86a20f..5d2f17f 100644 --- a/tests/TestSuite_fortville_rss_granularity_config.py +++ b/tests/TestSuite_fortville_rss_granularity_config.py @@ -202,7 +202,7 @@ class TestFortvilleRssGranularityConfig(TestCase): # test with different rss queues for queue in testQueues: self.dut.send_expect( - "./%s/app/testpmd -c fffff -n %d -- -i --coremask=0xffffe --portmask=0x3 --rxq=%d --txq=%d --tx-offloads=0x8fff" % + "./%s/app/testpmd -c fffff -n %d -- -i --coremask=0xffffe --portmask=0x3 --rxq=%d --txq=%d --tx-offloads=0x8ffe" % (self.target, self.dut.get_memory_channels(), queue, queue), "testpmd> ", 120) self.dut.send_expect("set verbose 8", "testpmd> ") @@ -278,7 +278,7 @@ class TestFortvilleRssGranularityConfig(TestCase): # test with different rss queues for queue in testQueues: self.dut.send_expect( - "./%s/app/testpmd -c fffff -n %d -- -i --coremask=0xffffe --portmask=0x3 --rxq=%d --txq=%d --tx-offloads=0x8fff" % + "./%s/app/testpmd -c fffff -n %d -- -i --coremask=0xffffe --portmask=0x3 --rxq=%d --txq=%d --tx-offloads=0x8ffe" % (self.target, self.dut.get_memory_channels(), queue, queue), "testpmd> ", 120) self.dut.send_expect("set verbose 8", "testpmd> ") @@ -355,7 +355,7 @@ class TestFortvilleRssGranularityConfig(TestCase): # test with different rss queues for queue in testQueues: self.dut.send_expect( - "./%s/app/testpmd -c fffff -n %d -- -i --coremask=0xffffe --portmask=0x3 --rxq=%d --txq=%d --tx-offloads=0x8fff" % + "./%s/app/testpmd -c fffff -n %d -- -i --coremask=0xffffe --portmask=0x3 --rxq=%d --txq=%d --tx-offloads=0x8ffe" % (self.target, self.dut.get_memory_channels(), queue, queue), "testpmd> ", 120) self.dut.send_expect("set verbose 8", "testpmd> ") @@ -432,7 +432,7 @@ class TestFortvilleRssGranularityConfig(TestCase): # test with different rss queues for queue in testQueues: self.dut.send_expect( - "./%s/app/testpmd -c fffff -n %d -- -i --coremask=0xffffe --portmask=0x3 --rxq=%d --txq=%d --tx-offloads=0x8fff" % + "./%s/app/testpmd -c fffff -n %d -- -i --coremask=0xffffe --portmask=0x3 --rxq=%d --txq=%d --tx-offloads=0x8ffe" % (self.target, self.dut.get_memory_channels(), queue, queue), "testpmd> ", 120) self.dut.send_expect("set verbose 8", "testpmd> ") @@ -509,7 +509,7 @@ class TestFortvilleRssGranularityConfig(TestCase): # test with different rss queues for queue in testQueues: self.dut.send_expect( - "./%s/app/testpmd -c fffff -n %d -- -i --coremask=0xffffe --portmask=0x3 --rxq=%d --txq=%d --tx-offloads=0x8fff" % + "./%s/app/testpmd -c fffff -n %d -- -i --coremask=0xffffe --portmask=0x3 --rxq=%d --txq=%d --tx-offloads=0x8ffe" % (self.target, self.dut.get_memory_channels(), queue, queue), "testpmd> ", 120) self.dut.send_expect("set verbose 8", "testpmd> ") @@ -570,7 +570,7 @@ class TestFortvilleRssGranularityConfig(TestCase): # test with different rss queues for queue in testQueues: self.dut.send_expect( - "./%s/app/testpmd -c fffff -n %d -- -i --coremask=0xffffe --portmask=0x3 --rxq=%d --txq=%d --tx-offloads=0x8fff" % + "./%s/app/testpmd -c fffff -n %d -- -i --coremask=0xffffe --portmask=0x3 --rxq=%d --txq=%d --tx-offloads=0x8ffe" % (self.target, self.dut.get_memory_channels(), queue, queue), "testpmd> ", 120) self.dut.send_expect("set verbose 8", "testpmd> ") diff --git a/tests/TestSuite_ipgre.py b/tests/TestSuite_ipgre.py index c1d052e..118c655 100644 --- a/tests/TestSuite_ipgre.py +++ b/tests/TestSuite_ipgre.py @@ -263,7 +263,7 @@ class TestIpgre(TestCase): inner_mac = "10:00:00:00:00:00" # Start testpmd with multi queues - #testpmd_cmd = "./%s/app/testpmd -c ff -n 3 -- -i --rxq=4 --txq=4 --tx-offloads=0x8fff" % self.target + #testpmd_cmd = "./%s/app/testpmd -c ff -n 3 -- -i --rxq=4 --txq=4 --tx-offloads=0x8ffe" % self.target testpmd_cmd = "./%s/app/testpmd -c ff -n 3 -- -i --enable-rx-cksum --rxq=4 --txq=4" % self.target self.dut.send_expect(testpmd_cmd, "testpmd>", 20) self.dut.send_expect("set fwd rxonly", "testpmd>") @@ -307,7 +307,7 @@ class TestIpgre(TestCase): Send packet with wrong IP/TCP/UDP/SCTP checksum and check forwarded packet checksum """ # Start testpmd and enable rxonly forwarding mode - testpmd_cmd = "./%s/app/testpmd -c ff -n 3 -- -i --enable-rx-cksum --tx-offloads=0x8fff --port-topology=loop" % self.target + testpmd_cmd = "./%s/app/testpmd -c ff -n 3 -- -i --enable-rx-cksum --tx-offloads=0x8ffe --port-topology=loop" % self.target self.dut.send_expect(testpmd_cmd, "testpmd>", 20) self.dut.send_expect("set verbose 1", "testpmd>") self.dut.send_expect("set fwd csum", "testpmd>") diff --git a/tests/TestSuite_nvgre.py b/tests/TestSuite_nvgre.py index 4cb3e8f..f7d6315 100644 --- a/tests/TestSuite_nvgre.py +++ b/tests/TestSuite_nvgre.py @@ -438,7 +438,7 @@ class TestNvgre(TestCase): """ send nvgre packet and check whether testpmd detect the correct packet type """ - out = self.dut.send_expect("./%s/app/testpmd -c %s -n %d -- -i --disable-rss --rxq=4 --txq=4 --nb-cores=4 --portmask=%s --tx-offloads=0x8fff" + out = self.dut.send_expect("./%s/app/testpmd -c %s -n %d -- -i --disable-rss --rxq=4 --txq=4 --nb-cores=4 --portmask=%s --tx-offloads=0x8ffe" % (self.target, self.coremask, self.dut.get_memory_channels(), self.portmask), "testpmd>", 30) out = self.dut.send_expect("set fwd rxonly", "testpmd>", 10) self.dut.send_expect("set verbose 1", "testpmd>", 10) @@ -467,7 +467,7 @@ class TestNvgre(TestCase): """ send nvgre packet and check whether receive packet in assigned queue """ - self.dut.send_expect("./%s/app/testpmd -c %s -n %d -- -i --disable-rss --rxq=4 --txq=4 --nb-cores=4 --portmask=%s --tx-offloads=0x8fff" + self.dut.send_expect("./%s/app/testpmd -c %s -n %d -- -i --disable-rss --rxq=4 --txq=4 --nb-cores=4 --portmask=%s --tx-offloads=0x8ffe" % (self.target, self.coremask, self.dut.get_memory_channels(), self.portmask), "testpmd>", 30) self.dut.send_expect("set fwd rxonly", "testpmd>", 10) self.dut.send_expect("set verbose 1", "testpmd>", 10) @@ -543,7 +543,7 @@ class TestNvgre(TestCase): self.logger.info("chksums_ref:" + str(chksums_default)) # start testpmd with 2queue/1port - out = self.dut.send_expect("./%s/app/testpmd -c %s -n %d -- -i --disable-rss --rxq=4 --txq=4 --nb-cores=4 --portmask=%s --enable-rx-cksum --tx-offloads=0x8fff" + out = self.dut.send_expect("./%s/app/testpmd -c %s -n %d -- -i --disable-rss --rxq=4 --txq=4 --nb-cores=4 --portmask=%s --enable-rx-cksum --tx-offloads=0x8ffe" % (self.target, self.coremask, self.dut.get_memory_channels(), self.portmask), "testpmd>", 30) # disable vlan filter self.dut.send_expect('vlan set filter off %d' % self.dut_rx_port, "testpmd") @@ -664,7 +664,7 @@ class TestNvgre(TestCase): self.nvgre_filter(filter_type="imac", remove=True) config = NvgreTestConfig(self) # config.outer_mac_dst = self.dut_port_mac - self.dut.send_expect("./%s/app/testpmd -c %s -n %d -- -i --disable-rss --rxq=4 --txq=4 --nb-cores=4 --portmask=%s --tx-offloads=0x8fff" + self.dut.send_expect("./%s/app/testpmd -c %s -n %d -- -i --disable-rss --rxq=4 --txq=4 --nb-cores=4 --portmask=%s --tx-offloads=0x8ffe" % (self.target, self.coremask, self.dut.get_memory_channels(), self.portmask), "testpmd>", 30) out = self.dut.send_expect("tunnel_filter add %d %s %s %s %d nvgre %s %d %d" % (self.dut_rx_port, config.outer_mac_dst, self.invalid_mac, config.inner_ip_dst, vlan_id, diff --git a/tests/TestSuite_pmdrss_hash.py b/tests/TestSuite_pmdrss_hash.py index 227caaf..52c706b 100644 --- a/tests/TestSuite_pmdrss_hash.py +++ b/tests/TestSuite_pmdrss_hash.py @@ -655,7 +655,7 @@ class TestPmdrssHash(TestCase): def test_dynamic_rss_bond_config(self): # setup testpmd and finish bond config - self.dut.send_expect("./%s/app/testpmd -c f -n 4 -- -i --tx-offloads=0x8fff" % self.target, "testpmd> ", 120) + self.dut.send_expect("./%s/app/testpmd -c f -n 4 -- -i --tx-offloads=0x8ffe" % self.target, "testpmd> ", 120) out = self.dut.send_expect("create bonded device 3 0", "testpmd> ", 30) bond_device_id = int(re.search("port \d+", out).group().split(" ")[-1].strip()) diff --git a/tests/TestSuite_qinq_filter.py b/tests/TestSuite_qinq_filter.py index ad3e7ea..311ba07 100644 --- a/tests/TestSuite_qinq_filter.py +++ b/tests/TestSuite_qinq_filter.py @@ -147,7 +147,7 @@ class TestQinqFilter(TestCase): self.dut.send_expect(r'./%s/app/testpmd -c %s -n 4 -- -i \ --portmask=%s --port-topology=loop \ - --rxq=4 --txq=4 --tx-offloads=0x8fff --disable-rss' % (self.target, self.coreMask, self.portMask), + --rxq=4 --txq=4 --tx-offloads=0x8ffe --disable-rss' % (self.target, self.coreMask, self.portMask), "testpmd> ") self.dut.send_expect("vlan set qinq on %s" % dutRxPortId, "testpmd> ") self.dut.send_expect("set fwd rxonly", "testpmd> ") @@ -167,7 +167,7 @@ class TestQinqFilter(TestCase): """ self.dut.send_expect(r'./%s/app/testpmd -c %s -n 4 -- -i \ --portmask=%s --port-topology=loop \ - --rxq=4 --txq=4 --tx-offloads=0x8fff --disable-rss' % (self.target, self.coreMask, self.portMask), + --rxq=4 --txq=4 --tx-offloads=0x8ffe --disable-rss' % (self.target, self.coreMask, self.portMask), "testpmd> ") self.dut.send_expect("vlan set qinq on %s" % dutRxPortId, "testpmd> ") self.dut.send_expect("set fwd rxonly", "testpmd> ") @@ -203,7 +203,7 @@ class TestQinqFilter(TestCase): self.dut.send_expect(r'./%s/app/testpmd -c %s -n 4 \ --socket-mem=1024,1024 --file-prefix=pf -w %s -- -i --port-topology=loop \ - --rxq=4 --txq=4 --tx-offloads=0x8fff --disable-rss' + --rxq=4 --txq=4 --tx-offloads=0x8ffe --disable-rss' % (self.target, self.coreMask, self.dut.ports_info[dutRxPortId]['pci']), "testpmd> ") self.dut.send_expect("vlan set qinq on %s" % dutRxPortId, "testpmd> ") @@ -220,13 +220,13 @@ class TestQinqFilter(TestCase): vf0_session.send_expect(r'./%s/app/testpmd -c %s -n 4 \ --socket-mem=1024,1024 --file-prefix=vf0 -w %s -- -i --port-topology=loop \ - --rxq=4 --txq=4 --tx-offloads=0x8fff --disable-rss' + --rxq=4 --txq=4 --tx-offloads=0x8ffe --disable-rss' % (self.target, self.coreMask, vf_list[0]), "testpmd> ") vf1_session.send_expect(r'./%s/app/testpmd -c %s -n 4 \ --socket-mem=1024,1024 --file-prefix=vf1 -w %s -- -i --port-topology=loop \ - --rxq=4 --txq=4 --tx-offloads=0x8fff --disable-rss' + --rxq=4 --txq=4 --tx-offloads=0x8ffe --disable-rss' % (self.target, self.coreMask, vf_list[1]), "testpmd>") for session_name in [vf0_session, vf1_session]: @@ -272,7 +272,7 @@ class TestQinqFilter(TestCase): self.dut.send_expect(r'./%s/app/testpmd -c %s -n 4 \ --socket-mem=1024,1024 --file-prefix=pf -w %s -- -i --port-topology=loop \ - --rxq=4 --txq=4 --tx-offloads=0x8fff --disable-rss' + --rxq=4 --txq=4 --tx-offloads=0x8ffe --disable-rss' % (self.target, self.coreMask, self.dut.ports_info[dutRxPortId]['pci']), "testpmd> ") self.dut.send_expect("vlan set qinq on %s" % dutRxPortId, "testpmd> ") @@ -292,13 +292,13 @@ class TestQinqFilter(TestCase): vf0_session.send_expect(r'./%s/app/testpmd -c %s -n 4 \ --socket-mem=1024,1024 --file-prefix=vf0 -w %s -- -i --port-topology=loop \ - --rxq=4 --txq=4 --tx-offloads=0x8fff --disable-rss' + --rxq=4 --txq=4 --tx-offloads=0x8ffe --disable-rss' % (self.target, self.coreMask, vf_list[0]), "testpmd> ") vf1_session.send_expect(r'./%s/app/testpmd -c %s -n 4 \ --socket-mem=1024,1024 --file-prefix=vf1 -w %s -- -i --port-topology=loop \ - --rxq=4 --txq=4 --tx-offloads=0x8fff --disable-rss' + --rxq=4 --txq=4 --tx-offloads=0x8ffe --disable-rss' % (self.target, self.coreMask, vf_list[1]), "testpmd>") for session_name in [vf0_session, vf1_session]: diff --git a/tests/TestSuite_sriov_kvm.py b/tests/TestSuite_sriov_kvm.py index bcf4ed8..e90af38 100644 --- a/tests/TestSuite_sriov_kvm.py +++ b/tests/TestSuite_sriov_kvm.py @@ -350,7 +350,7 @@ class TestSriovKvm(TestCase): eal_param = '-b %(vf0)s -b %(vf1)s' % {'vf0': self.sriov_vfs_port[0].pci, 'vf1': self.sriov_vfs_port[1].pci} self.host_testpmd.start_testpmd( - "1S/2C/2T", "--rxq=4 --txq=4 --tx-offloads=0x8fff", eal_param=eal_param) + "1S/2C/2T", "--rxq=4 --txq=4 --tx-offloads=0x8ffe", eal_param=eal_param) self.host_testpmd.execute_cmd('set fwd rxonly') self.host_testpmd.execute_cmd('start') diff --git a/tests/TestSuite_tso.py b/tests/TestSuite_tso.py index 25b37a3..4a2188e 100644 --- a/tests/TestSuite_tso.py +++ b/tests/TestSuite_tso.py @@ -157,7 +157,7 @@ class TestTSO(TestCase): self.tester.send_expect("ethtool -K %s rx off tx off tso off gso off gro off lro off" % tx_interface, "# ") self.tester.send_expect("ip l set %s up" % tx_interface, "# ") - cmd = "./%s/app/testpmd -c %s -n %d %s -- -i --rxd=512 --txd=512 --burst=32 --rxfreet=64 --mbcache=128 --portmask=%s --txpt=36 --txht=0 --txwt=0 --txfreet=32 --txrst=32 --tx-offloads=0x8fff " % (self.target, self.coreMask, self.dut.get_memory_channels(), self.blacklist, self.portMask) + cmd = "./%s/app/testpmd -c %s -n %d %s -- -i --rxd=512 --txd=512 --burst=32 --rxfreet=64 --mbcache=128 --portmask=%s --txpt=36 --txht=0 --txwt=0 --txfreet=32 --txrst=32 --tx-offloads=0x8ffe " % (self.target, self.coreMask, self.dut.get_memory_channels(), self.blacklist, self.portMask) self.dut.send_expect(cmd, "testpmd> ", 120) self.dut.send_expect("set verbose 1", "testpmd> ", 120) self.dut.send_expect("csum set ip hw %d" % self.dut_ports[0], "testpmd> ", 120) @@ -223,7 +223,7 @@ class TestTSO(TestCase): self.tester.send_expect("ethtool -K %s rx off tx off tso off gso off gro off lro off" % tx_interface, "# ") self.tester.send_expect("ip l set %s up" % tx_interface, "# ") - cmd = "./%s/app/testpmd -c %s -n %d %s -- -i --rxd=512 --txd=512 --burst=32 --rxfreet=64 --mbcache=128 --portmask=%s --txpt=36 --txht=0 --txwt=0 --txfreet=32 --txrst=32 --tx-offloads=0x8fff " % (self.target, self.coreMask, self.dut.get_memory_channels(), self.blacklist, self.portMask) + cmd = "./%s/app/testpmd -c %s -n %d %s -- -i --rxd=512 --txd=512 --burst=32 --rxfreet=64 --mbcache=128 --portmask=%s --txpt=36 --txht=0 --txwt=0 --txfreet=32 --txrst=32 --tx-offloads=0x8ffe " % (self.target, self.coreMask, self.dut.get_memory_channels(), self.blacklist, self.portMask) self.dut.send_expect(cmd, "testpmd> ", 120) self.dut.send_expect("set verbose 1", "testpmd> ", 120) self.dut.send_expect("csum set ip hw %d" % self.dut_ports[0], "testpmd> ", 120) @@ -287,7 +287,7 @@ class TestTSO(TestCase): else: queues = 1 - command_line = "./%s/app/testpmd -c %s -n %d %s -- -i --coremask=%s --rxd=512 --txd=512 --burst=32 --rxfreet=64 --mbcache=128 --portmask=%s --txpt=36 --txht=0 --txwt=0 --txfreet=32 --txrst=32 --tx-offloads=0x8fff " % (self.target, self.all_cores_mask, self.dut.get_memory_channels(), self.blacklist, self.coreMask, self.portMask) + command_line = "./%s/app/testpmd -c %s -n %d %s -- -i --coremask=%s --rxd=512 --txd=512 --burst=32 --rxfreet=64 --mbcache=128 --portmask=%s --txpt=36 --txht=0 --txwt=0 --txfreet=32 --txrst=32 --tx-offloads=0x8ffe " % (self.target, self.all_cores_mask, self.dut.get_memory_channels(), self.blacklist, self.coreMask, self.portMask) info = "Executing PMD using %s\n" % test_cycle['cores'] self.logger.info(info) diff --git a/tests/TestSuite_uni_pkt.py b/tests/TestSuite_uni_pkt.py index 945a51e..7a97709 100644 --- a/tests/TestSuite_uni_pkt.py +++ b/tests/TestSuite_uni_pkt.py @@ -64,7 +64,7 @@ class TestUniPacket(TestCase): tester_port = self.tester.get_local_port(self.dut_port) self.tester_iface = self.tester.get_interface(tester_port) self.dut.send_expect( - "./%s/app/testpmd -c f -n 4 -- -i --tx-offloads=0x8fff" % self.target, "testpmd>", 20) + "./%s/app/testpmd -c f -n 4 -- -i --tx-offloads=0x8ffe" % self.target, "testpmd>", 20) self.dut.send_expect("set fwd rxonly", "testpmd>") self.dut.send_expect("set verbose 1", "testpmd>") self.dut.send_expect("start", "testpmd>") diff --git a/tests/TestSuite_vf_jumboframe.py b/tests/TestSuite_vf_jumboframe.py index b711751..f3a2764 100644 --- a/tests/TestSuite_vf_jumboframe.py +++ b/tests/TestSuite_vf_jumboframe.py @@ -209,7 +209,7 @@ class TestVfJumboFrame(TestCase): self.dutobj = self.dut.ports_info[self.port]['port'] self.dutobj.enable_jumbo(framesize=ETHER_STANDARD_MTU) - self.vm_testpmd.start_testpmd("Default", "--max-pkt-len=%d --port-topology=loop --tx-offloads=0x8fff" % (ETHER_STANDARD_MTU)) + self.vm_testpmd.start_testpmd("Default", "--max-pkt-len=%d --port-topology=loop --tx-offloads=0x8ffe" % (ETHER_STANDARD_MTU)) self.vm_testpmd.execute_cmd("set fwd mac") self.vm_testpmd.execute_cmd("start") @@ -229,7 +229,7 @@ class TestVfJumboFrame(TestCase): self.dutobj = self.dut.ports_info[self.port]['port'] self.dutobj.enable_jumbo(framesize=ETHER_JUMBO_FRAME_MTU) - self.vm_testpmd.start_testpmd("Default", "--max-pkt-len=%d --port-topology=loop --tx-offloads=0x8fff" % (ETHER_JUMBO_FRAME_MTU)) + self.vm_testpmd.start_testpmd("Default", "--max-pkt-len=%d --port-topology=loop --tx-offloads=0x8ffe" % (ETHER_JUMBO_FRAME_MTU)) self.vm_testpmd.execute_cmd("set fwd mac") self.vm_testpmd.execute_cmd("start") @@ -249,7 +249,7 @@ class TestVfJumboFrame(TestCase): self.dutobj = self.dut.ports_info[self.port]['port'] self.dutobj.enable_jumbo(framesize=ETHER_STANDARD_MTU) - self.vm_testpmd.start_testpmd("Default", "--port-topology=loop --tx-offloads=0x8fff" ) + self.vm_testpmd.start_testpmd("Default", "--port-topology=loop --tx-offloads=0x8ffe" ) self.vm_testpmd.execute_cmd("set fwd mac") self.vm_testpmd.execute_cmd("start") @@ -277,7 +277,7 @@ class TestVfJumboFrame(TestCase): self.dutobj = self.dut.ports_info[self.port]['port'] self.dutobj.enable_jumbo(framesize=ETHER_JUMBO_FRAME_MTU) - self.vm_testpmd.start_testpmd("Default", "--max-pkt-len=%d --port-topology=loop --tx-offloads=0x8fff" % (ETHER_JUMBO_FRAME_MTU)) + self.vm_testpmd.start_testpmd("Default", "--max-pkt-len=%d --port-topology=loop --tx-offloads=0x8ffe" % (ETHER_JUMBO_FRAME_MTU)) self.vm_testpmd.execute_cmd("set fwd mac") self.vm_testpmd.execute_cmd("start") @@ -298,7 +298,7 @@ class TestVfJumboFrame(TestCase): self.dutobj = self.dut.ports_info[self.port]['port'] self.dutobj.enable_jumbo(framesize=ETHER_JUMBO_FRAME_MTU) - self.vm_testpmd.start_testpmd("Default", "--max-pkt-len=%d --port-topology=loop --tx-offloads=0x8fff" % (ETHER_JUMBO_FRAME_MTU)) + self.vm_testpmd.start_testpmd("Default", "--max-pkt-len=%d --port-topology=loop --tx-offloads=0x8ffe" % (ETHER_JUMBO_FRAME_MTU)) self.vm_testpmd.execute_cmd("set fwd mac") self.vm_testpmd.execute_cmd("start") diff --git a/tests/TestSuite_vf_offload.py b/tests/TestSuite_vf_offload.py index 020207c..67cd403 100644 --- a/tests/TestSuite_vf_offload.py +++ b/tests/TestSuite_vf_offload.py @@ -206,7 +206,7 @@ class TestVfOffload(TestCase): verify forwarded packets have correct checksum """ self.vm0_testpmd.start_testpmd(VM_CORES_MASK, "--portmask=%s " % - (self.portMask) + "--disable-hw-vlan --enable-rx-cksum " + "--tx-offloads=0x8fff " + + (self.portMask) + "--disable-hw-vlan --enable-rx-cksum " + "--tx-offloads=0x8ffe " + "--port-topology=loop") self.vm0_testpmd.execute_cmd('set fwd csum') @@ -348,7 +348,7 @@ class TestVfOffload(TestCase): self.portMask = utils.create_mask([self.vm0_dut_ports[0]]) self.vm0_testpmd.start_testpmd(VM_CORES_MASK, "--portmask=%s " % (self.portMask) + "--enable-rx-cksum " + - "--tx-offloads=0x8fff " + + "--tx-offloads=0x8ffe " + "--port-topology=loop") mac = self.vm0_testpmd.get_port_mac(0) diff --git a/tests/TestSuite_vxlan.py b/tests/TestSuite_vxlan.py index fe24b7e..ba6627b 100644 --- a/tests/TestSuite_vxlan.py +++ b/tests/TestSuite_vxlan.py @@ -547,7 +547,7 @@ class TestVxlan(TestCase, IxiaPacketGenerator): pmd_temp = "./%(TARGET)s/app/testpmd -c %(COREMASK)s -n " + \ "%(CHANNEL)d -- -i --disable-rss --rxq=4 --txq=4" + \ - " --nb-cores=4 --portmask=%(PORT)s --tx-offloads=0x8fff" + " --nb-cores=4 --portmask=%(PORT)s --tx-offloads=0x8ffe" pmd_cmd = pmd_temp % {'TARGET': self.target, 'COREMASK': self.coremask, 'CHANNEL': self.dut.get_memory_channels(), @@ -597,7 +597,7 @@ class TestVxlan(TestCase, IxiaPacketGenerator): pmd_temp = "./%(TARGET)s/app/testpmd -c %(COREMASK)s -n " + \ "%(CHANNEL)d -- -i --disable-rss --rxq=4 --txq=4" + \ - " --nb-cores=4 --portmask=%(PORT)s --tx-offloads=0x8fff" + " --nb-cores=4 --portmask=%(PORT)s --tx-offloads=0x8ffe" pmd_cmd = pmd_temp % {'TARGET': self.target, 'COREMASK': self.coremask, 'CHANNEL': self.dut.get_memory_channels(), @@ -644,7 +644,7 @@ class TestVxlan(TestCase, IxiaPacketGenerator): # start testpmd with 2queue/1port pmd_temp = "./%(TARGET)s/app/testpmd -c %(COREMASK)s -n " + \ "%(CHANNEL)d -- -i --portmask=%(PORT)s " + \ - "--tx-offloads=0x8fff --enable-rx-cksum" + "--tx-offloads=0x8ffe --enable-rx-cksum" pmd_cmd = pmd_temp % {'TARGET': self.target, 'COREMASK': self.coremask, 'CHANNEL': self.dut.get_memory_channels(), @@ -717,7 +717,7 @@ class TestVxlan(TestCase, IxiaPacketGenerator): # start testpmd with 2queue/1port pmd_temp = "./%(TARGET)s/app/testpmd -c %(COREMASK)s -n " + \ "%(CHANNEL)d -- -i --portmask=%(PORT)s " + \ - "--tx-offloads=0x8fff --enable-rx-cksum" + "--tx-offloads=0x8ffe --enable-rx-cksum" pmd_cmd = pmd_temp % {'TARGET': self.target, 'COREMASK': self.coremask, 'CHANNEL': self.dut.get_memory_channels(), @@ -792,7 +792,7 @@ class TestVxlan(TestCase, IxiaPacketGenerator): """ pmd_temp = "./%(TARGET)s/app/testpmd -c %(COREMASK)s -n " + \ "%(CHANNEL)d -- -i --disable-rss --rxq=4 --txq=4" + \ - " --nb-cores=4 --portmask=%(PORT)s --tx-offloads=0x8fff" + " --nb-cores=4 --portmask=%(PORT)s --tx-offloads=0x8ffe" pmd_cmd = pmd_temp % {'TARGET': self.target, 'COREMASK': self.coremask, 'CHANNEL': self.dut.get_memory_channels(), @@ -833,7 +833,7 @@ class TestVxlan(TestCase, IxiaPacketGenerator): pmd_temp = "./%(TARGET)s/app/testpmd -c %(COREMASK)s -n " + \ "%(CHANNEL)d -- -i --disable-rss --rxq=4 --txq=4" + \ - " --nb-cores=4 --portmask=%(PORT)s --tx-offloads=0x8fff" + " --nb-cores=4 --portmask=%(PORT)s --tx-offloads=0x8ffe" pmd_cmd = pmd_temp % {'TARGET': self.target, 'COREMASK': self.coremask, 'CHANNEL': self.dut.get_memory_channels(), @@ -962,7 +962,7 @@ class TestVxlan(TestCase, IxiaPacketGenerator): pmd_temp = "./%(TARGET)s/app/testpmd -c %(COREMASK)s -n " + \ "%(CHANNEL)d -- -i --disable-rss --rxq=2 --txq=2" + \ - " --nb-cores=4 --portmask=%(PORT)s --tx-offloads=0x8fff" + " --nb-cores=4 --portmask=%(PORT)s --tx-offloads=0x8ffe" for perf_config in self.tunnel_perf: tun_filter = perf_config['tunnel_filter'] @@ -973,7 +973,7 @@ class TestVxlan(TestCase, IxiaPacketGenerator): if tun_filter == "None" and recv_queue == "Multi": pmd_temp = "./%(TARGET)s/app/testpmd -c %(COREMASK)s -n " + \ "%(CHANNEL)d -- -i --rss-udp --rxq=2 --txq=2" + \ - " --nb-cores=4 --portmask=%(PORT)s --tx-offloads=0x8fff" + " --nb-cores=4 --portmask=%(PORT)s --tx-offloads=0x8ffe" pmd_cmd = pmd_temp % {'TARGET': self.target, 'COREMASK': core_mask, @@ -1074,11 +1074,11 @@ class TestVxlan(TestCase, IxiaPacketGenerator): if recv_queue == 'Multi': pmd_temp = "./%(TARGET)s/app/testpmd -c %(COREMASK)s -n " + \ "%(CHANNEL)d -- -i --disable-rss --rxq=2 --txq=2" + \ - " --nb-cores=4 --portmask=%(PORT)s --tx-offloads=0x8fff" + " --nb-cores=4 --portmask=%(PORT)s --tx-offloads=0x8ffe" else: pmd_temp = "./%(TARGET)s/app/testpmd -c %(COREMASK)s -n " + \ "%(CHANNEL)d -- -i --nb-cores=2 --portmask=%(PORT)s" + \ - " --tx-offloads=0x8fff" + " --tx-offloads=0x8ffe" pmd_cmd = pmd_temp % {'TARGET': self.target, 'COREMASK': core_mask, -- 1.8.3.1