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 6FEA242A0F; Thu, 27 Apr 2023 12:23:57 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4735942D3C; Thu, 27 Apr 2023 12:23:57 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id E653042B8C for ; Thu, 27 Apr 2023 12:23:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1682591036; x=1714127036; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Ct+o87sNlLlXQ50QVC6vx9pyjqstaNMfkFNdsCRDqYo=; b=RXVUsJxyOAe60Mkuje1xTUyCdkli4miXPSU0RStyOlfADKiKXn1og2kP mQ0hZ8AaXhudYdM+8MrQNaARZaLLajo3jcjo45LprxyW49e+owwGUYdJL sxmxL0u5m1HIcjzcwxnbKq9hI9gzqfTMp72tuuFhl64xYXD4+r5P66PWr bLNM9gSATKups194cUP9um2V7GesFi8Mc2xdMetRaqffw9UCVmLiA8yHu SkQ8dc8L3wzsOAckB2MlM/1GHWtUKtdepBm/Vrw9yN3dke01ezc6rQKeC n+22uwO68E/wC/zgi7uoUaWIJl0nYuknPntMEf9efDc8HjSb9y2UkP7oo A==; X-IronPort-AV: E=McAfee;i="6600,9927,10692"; a="375374750" X-IronPort-AV: E=Sophos;i="5.99,230,1677571200"; d="scan'208";a="375374750" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Apr 2023 03:23:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10692"; a="688372976" X-IronPort-AV: E=Sophos;i="5.99,230,1677571200"; d="scan'208";a="688372976" Received: from unknown (HELO localhost.localdomain) ([10.239.252.248]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Apr 2023 03:23:53 -0700 From: Lingli Chen To: dts@dpdk.org Cc: yuan.peng@intel.com, Lingli Chen Subject: [dts][PATCH V1 1/2] test_plans/kernelpf_iavf: add vf_queue_start_stop test plan Date: Thu, 27 Apr 2023 18:24:10 +0800 Message-Id: <20230427102411.5444-1-linglix.chen@intel.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Type: text/plain; charset=y Content-Transfer-Encoding: 8bit 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 add vf_queue_start_stop test plan Signed-off-by: Lingli Chen --- test_plans/kernelpf_iavf_test_plan.rst | 56 ++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/test_plans/kernelpf_iavf_test_plan.rst b/test_plans/kernelpf_iavf_test_plan.rst index ed6d9488..4cbe8389 100644 --- a/test_plans/kernelpf_iavf_test_plan.rst +++ b/test_plans/kernelpf_iavf_test_plan.rst @@ -950,3 +950,59 @@ Test case: IAVF CRC strip and Vlan strip co-exists 10:29:19.995424 00:11:22:33:44:11 > 02:00:00:00:00:00, ethertype 802.1Q (0x8100), length 522: vlan 1, p 0, ethertype 802.1Q, vlan 2, p 0, ethertype IPv4, (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto Options (0), length 500) 196.222.232.221 > 127.0.0.1: ip-proto-0 480 +Test Case: vf queue start/stop +============================== + +This case support VF (IntelĀ® Ethernet 700 Series/IntelĀ® Ethernet 800 Series) + +#. Launch testpmd:: + x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1-2 -n 4 -a 0000:af:01.0 -- -i --portmask=0x1 --port-topology=loop + +#. Run "set verbose 1" to set verbose +#. Run "set fwd mac" to set fwd type +#. Run "start" to start fwd package + +#. Start a packet capture on the tester in the background:: + tcpdump -i ens7 'ether[12:2] != 0x88cc' -Q in -w /tmp/tester/sniff_ens7.pcap + +#. Start packet generator to transmit packets:: + sendp([Ether(dst='3c:fd:fe:c1:0f:4c', src='00:00:20:00:00:00')/IP()/UDP()/Raw(load=b'XXXXXXXXXXXXXXXXXX')],iface="ens7",count=4,inter=0,verbose=False) + +#. Stop testpmd:: + + --------------------- Forward statistics for port 0 ---------------------- + RX-packets: 4 RX-dropped: 0 RX-total: 4 + TX-packets: 4 TX-dropped: 0 TX-total: 4 + ---------------------------------------------------------------------------- + +#. Quit tcpdump and check tester port receive 4 packets + +#. Run "port 0 rxq 0 stop" to stop rxq 0 in port 0 +#. Start packet generator to transmit and check tester port not receive packets +#. Stop testpmd:: + + ---------------------- Forward statistics for port 0 ---------------------- + RX-packets: 0 RX-dropped: 4 RX-total: 4 + TX-packets: 0 TX-dropped: 0 TX-total: 0 + ---------------------------------------------------------------------------- + +#. Run "port 0 rxq 0 start" to start rxq 0 in port 0 +#. Run "port 0 txq 0 stop" to stop txq 0 in port 0 +#. Start packet generator to transmit and check tester port not receive packets + and in testpmd it not has "port 0/queue 0: received 1 packets" print +#. Stop testpmd:: + + ---------------------- Forward statistics for port 0 ---------------------- + RX-packets: 4 RX-dropped: 0 RX-total: 4 + TX-packets: 0 TX-dropped: 0 TX-total: 0 + ---------------------------------------------------------------------------- + +#. Run "port 0 txq 0 start" to start txq 0 in port 0 +#. Start packet generator to transmit and check tester port receive 4 packets + and in testpmd it has "port 0/queue 0: received 1 packets" print +#. Stop testpmd:: + + ---------------------- Forward statistics for port 0 ---------------------- + RX-packets: 4 RX-dropped: 0 RX-total: 4 + TX-packets: 4 TX-dropped: 0 TX-total: 4 + ---------------------------------------------------------------------------- \ No newline at end of file -- 2.27.0