From patchwork Thu Jan 12 04:36:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lingli Chen X-Patchwork-Id: 121873 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 E3AFA423B1; Thu, 12 Jan 2023 06:37:08 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BAF0B40A7D; Thu, 12 Jan 2023 06:37:08 +0100 (CET) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id DA743400EF for ; Thu, 12 Jan 2023 06:37:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673501827; x=1705037827; h=from:to:cc:subject:date:message-id; bh=6y7ERMpxLCXzyR1Y2VWUql89N7ZmTzGlbvVUAo9EUYY=; b=De20cG9yMReZYCuEFIygl6EB2lsVYh8V4NOF1JAhpkuL1b0IT4NAel3f KqawK3C42FeL5rQhaTvVwLtVHlTqfOHmyQ8NeBJE/w2jEZ4/pvP0dKBKv i3rD87u8NGdRyyb+wQCbrTGmiP2PVd2Hv5M7xCX3vY1KXtSYsGpda5sfV K0PlcIJCxRv7Kw7uW426Mwf14VkoXzGThS4QUgG03Ziz050UD9B7UG/d+ rt9sE6y+P1y9snSr6ik/pl9c2E52AA2ljZKW6MwO1cQTYd+WmkDjcYuCY xHVeY9VW9/vrE5eeH+aKJLsu7jeXZlO6IHlmBeK35Cdhcbayx+cG02kQs w==; X-IronPort-AV: E=McAfee;i="6500,9779,10586"; a="388087259" X-IronPort-AV: E=Sophos;i="5.96,319,1665471600"; d="scan'208";a="388087259" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jan 2023 21:37:03 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10586"; a="903051453" X-IronPort-AV: E=Sophos;i="5.96,319,1665471600"; d="scan'208";a="903051453" Received: from unknown (HELO localhost.localdomain) ([10.239.252.99]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jan 2023 21:37:01 -0800 From: Lingli Chen To: dts@dpdk.org Cc: yuan.peng@intel.com, Lingli Chen Subject: [dts][PATCH V2 1/2] test_plans/vf_rss: add new case to test Tx queue number is more than Rx queue number Date: Wed, 11 Jan 2023 23:36:53 -0500 Message-Id: <20230112043654.53944-1-linglix.chen@intel.com> X-Mailer: git-send-email 2.17.1 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 new case to cover test Tx queue number is more than Rx queue number Signed-off-by: Lingli Chen --- test_plans/vf_rss_test_plan.rst | 54 +++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/test_plans/vf_rss_test_plan.rst b/test_plans/vf_rss_test_plan.rst index 987f71f8..dc3b1da3 100644 --- a/test_plans/vf_rss_test_plan.rst +++ b/test_plans/vf_rss_test_plan.rst @@ -168,3 +168,57 @@ Before send packet, config hash reta,512(NICS with kernel driver i40e has 64 ret after send packet, based on the testpmd output RSS hash value to calculate hash_index, then check whether the actual receive queue is the queue configured in the reta. + +Test case: test rxq txq number inconsistent +=========================================== +1. Create one VF from kernel PF:: + + echo 1 > /sys/bus/pci/devices/0000\:18\:00.0/sriov_numvfs + +2. Bind VFs to vfio-pci:: + + ./usertools/dpdk-devbind.py -b vfio-pci 18:01.0 + +3. Start the testpmd with rxq not equal to txq:: + + .//app/dpdk-testpmd -l 1-9 -n 2 -- -i --rxq=4 --txq=8 --nb-core=8 + +.. note:: + queue pairs in number of 1, 2, 4, 8, 16, 32, 64, etc. + For vf of ixgbe, the maximum number of rxq and txq supported is 4. + +4. Set rxonly fwd, enable print, start testpmd:: + + testpmd> set fwd rxonly + testpmd> set verbose 1 + testpmd> start + +5. Send different hash types' packets with different keywords, then check rx port + could receive packets by different queues:: + + sendp([Ether(dst="00:01:23:45:67:89")/IP(src="192.168.0.4", dst=RandIP())], iface="eth3") + +6. Check the total Rx packets in all the RxQ should be equal to the total HW Rx packets:: + + testpmd> show fwd stats all + ------- Forward Stats for RX Port= 0/Queue= 0 -> TX Port= 0/Queue= 0 ------- + RX-packets: 252 TX-packets: 0 TX-dropped: 0 + + ------- Forward Stats for RX Port= 0/Queue= 1 -> TX Port= 0/Queue= 1 ------- + RX-packets: 257 TX-packets: 0 TX-dropped: 0 + + ------- Forward Stats for RX Port= 0/Queue= 2 -> TX Port= 0/Queue= 2 ------- + RX-packets: 259 TX-packets: 0 TX-dropped: 0 + + ------- Forward Stats for RX Port= 0/Queue= 3 -> TX Port= 0/Queue= 3 ------- + RX-packets: 256 TX-packets: 0 TX-dropped: 0 + + ---------------------- Forward statistics for port 0 ---------------------- + RX-packets: 1024 RX-dropped: 0 RX-total: 1024 + TX-packets: 0 TX-dropped: 0 TX-total: 0 + ---------------------------------------------------------------------------- + + +++++++++++++++ Accumulated forward statistics for all ports+++++++++++++++ + RX-packets: 1024 RX-dropped: 0 RX-total: 1024 + TX-packets: 0 TX-dropped: 0 TX-total: 0 + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++