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 1E832A0A0C; Wed, 24 Mar 2021 04:00:37 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9E53640689; Wed, 24 Mar 2021 04:00:36 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id 995C940151 for ; Wed, 24 Mar 2021 04:00:35 +0100 (CET) IronPort-SDR: 4nQBPDcUdfqSqwcA3nMpIKi8MpgMTCaTFV8fcxFQMCYTCSdixAhOXOF2Mqjtgxb6VlptD70iro u7GLj62bCF+A== X-IronPort-AV: E=McAfee;i="6000,8403,9932"; a="210708945" X-IronPort-AV: E=Sophos;i="5.81,272,1610438400"; d="scan'208";a="210708945" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Mar 2021 20:00:35 -0700 IronPort-SDR: CVCIvcnrL1jzSP54Z78JGtf8NPQ580I2HCAcefMuhu3ND4rOkXrcKtzSC44p5ijCYWVCGNAyRv Ct5Y7Du0sTHQ== X-IronPort-AV: E=Sophos;i="5.81,272,1610438400"; d="scan'208";a="607958927" Received: from unknown (HELO localhost.localdomain) ([10.240.183.103]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Mar 2021 20:00:33 -0700 From: xiewei To: dts@dpdk.org Cc: xiewei Date: Wed, 24 Mar 2021 19:24:42 +0800 Message-Id: <20210324112443.29319-2-weix.xie@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210324112443.29319-1-weix.xie@intel.com> References: <20210324112443.29319-1-weix.xie@intel.com> Subject: [dts] [PATCH 1/2] tests/rxtx_offload: adapt to CVL NIC 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 Sender: "dts" for CVL NIC, a.rxtx_offload/rxoffload_port: disable jumboframe per-queue will change the RSS key, then pkt can be distributed to queues by RSS. b.rxtx_offload/txoffload_queue: it failed to enable mbuf_fast_free per_queue. Signed-off-by: xiewei --- tests/TestSuite_rxtx_offload.py | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/tests/TestSuite_rxtx_offload.py b/tests/TestSuite_rxtx_offload.py index 0e70526f..f7481089 100644 --- a/tests/TestSuite_rxtx_offload.py +++ b/tests/TestSuite_rxtx_offload.py @@ -314,7 +314,10 @@ class TestRxTx_Offload(TestCase): scanner = re.compile(result_scanner, re.DOTALL) m = scanner.search(outstring) queue_id = m.group(1) - self.verify(int(expect_queue) == int(queue_id), "the offload setting doesn't take effect.") + if self.nic in ['columbiaville_25g', 'columbiaville_100g']: + self.verify(int(queue_id) in [0, 1, 2, 3], "the offload setting doesn't take effect.") + else: + self.verify(int(expect_queue) == int(queue_id), "the offload setting doesn't take effect.") def start_tcpdump(self, rxItf): @@ -346,10 +349,16 @@ class TestRxTx_Offload(TestCase): pkt2_queue = self.get_queue_number(self.jumbo_pkt2) # Failed to disable jumboframe per_queue, foxvillee 2.5g not support - if self.nic != 'foxville': + if self.nic in ['columbiaville_25g', 'columbiaville_100g']: self.dut.send_expect("port stop 0", "testpmd> ") - self.dut.send_expect("port 0 rxq %s rx_offload jumbo_frame off" % pkt1_queue, "testpmd> ") + for i in range(4): + self.dut.send_expect("port 0 rxq %s rx_offload jumbo_frame off" % i, "testpmd> ") self.verify_result(self.jumbo_pkt1, 1, pkt1_queue) + else: + if self.nic != 'foxville': + self.dut.send_expect("port stop 0", "testpmd> ") + self.dut.send_expect("port 0 rxq %s rx_offload jumbo_frame off" % pkt1_queue, "testpmd> ") + self.verify_result(self.jumbo_pkt1, 1, pkt1_queue) # Succeed to disable jumboframe per_port self.dut.send_expect("port stop 0", "testpmd> ") @@ -698,8 +707,12 @@ class TestRxTx_Offload(TestCase): self.dut.send_expect("port 0 txq 1 tx_offload mbuf_fast_free on", "testpmd> ") self.dut.send_expect("port 0 txq 2 tx_offload mbuf_fast_free on", "testpmd> ") self.dut.send_expect("port 0 txq 3 tx_offload mbuf_fast_free on", "testpmd> ") - offload = ["mbuf_fast_free", "mbuf_fast_free", "mbuf_fast_free", "mbuf_fast_free"] - self.check_queue_config("tx", offload) + if self.nic in ['columbiaville_25g', 'columbiaville_100g']: + out = self.dut.send_expect("port start 0", "testpmd> ") + self.verify("Fail to configure port 0 tx queues" in out, "mbuf_fast_free can be set by queue.") + else: + offload = ["mbuf_fast_free", "mbuf_fast_free", "mbuf_fast_free", "mbuf_fast_free"] + self.check_queue_config("tx", offload) # Disable mbuf_fast_free per_queue. self.dut.send_expect("port stop 0", "testpmd> ") -- 2.17.1