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 8F64C4237E; Mon, 9 Jan 2023 12:09:38 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8ADA640693; Mon, 9 Jan 2023 12:09:38 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id 7B1BE4067C for ; Mon, 9 Jan 2023 12:09:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673262576; x=1704798576; h=from:to:cc:subject:date:message-id; bh=FdcQ/90iAZ8/Mor8UbNaZD2weXOLeq3MuLb/WvKpijo=; b=TUQfN6LZmG1Cb/lC3u7j7/S1MAC3didtmWuALCl5RCrobfRP/HD4GKYx tce9x6fXrckozqbWIoe/4Xpk1ck9unnoHhcbQgzUI1gFVuJwOK3F/d3SY 9Dbir4Qm7PNLp6vNcMKquo0vrrXKmipyrf+Ut6mjEJu5QZgCWrj8I0Tr+ DgSqYaUbvQjR4yYiYZWzp7mOEBR00DnSh5ObDaigzmrs5kDXOhFv0tLKS egoLgyDaVY0oufwTywpmGa0Rp0P/+XDQLrf4xgxvhAVf6EZxsY0xqJt8I jIvHDl/cSwBhb4a4D78W1MRbHr0o5/E45kk8fSmyRxKKnn33sytNHOehL A==; X-IronPort-AV: E=McAfee;i="6500,9779,10584"; a="320549515" X-IronPort-AV: E=Sophos;i="5.96,311,1665471600"; d="scan'208";a="320549515" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jan 2023 03:09:35 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10584"; a="901963119" X-IronPort-AV: E=Sophos;i="5.96,311,1665471600"; d="scan'208";a="901963119" Received: from unknown (HELO localhost.localdomain) ([10.239.252.99]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jan 2023 03:09:34 -0800 From: Lingli Chen To: dts@dpdk.org Cc: zhiminx.huang@intel.com, Lingli Chen Subject: [dts][PATCH V1 1/2] test_plans/vf_rss: add new case to test rxq not equal to txq Date: Mon, 9 Jan 2023 05:09:42 -0500 Message-Id: <20230109100943.33128-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 rxq number not equal to txq number Signed-off-by: Lingli Chen --- test_plans/vf_rss_test_plan.rst | 56 +++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/test_plans/vf_rss_test_plan.rst b/test_plans/vf_rss_test_plan.rst index 987f71f8..20fc5609 100644 --- a/test_plans/vf_rss_test_plan.rst +++ b/test_plans/vf_rss_test_plan.rst @@ -168,3 +168,59 @@ 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. + rxq=6 txq=8 + rxq=3 txq=9 + rxq=6 txq=9 + +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 + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -- 2.17.1