From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id C6158A0524; Thu, 26 Nov 2020 05:58:34 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 97922C93E; Thu, 26 Nov 2020 05:58:33 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 3F246C93C for ; Thu, 26 Nov 2020 05:58:32 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 0AQ4uN5J029029 for ; Wed, 25 Nov 2020 20:58:30 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=pfpt0220; bh=2YujCtp7j2aregbFXYwhK3h/+kjj6E4ATga3YKh46N4=; b=X7l22Q1CiYgvnk7aJxDQJyLjot2scgPMqhk3RHZX5a9NVfD6NKAebV7wKjNczV58hOei VhYhTFiFb811YGqqoEYPRzEjWqNUCIyYov475Z9aEqRcIf9dXBE64Qrr2YJOvzQzgdYg 8jI5KhWdsSyo1hsgcEFV5JYKpNBTkPJ0iMbYTNdaXSKxMw47SKZZECxXKNe1liNjLCbB QFnjcR7S7ZVurDbdi41PKCiPfDHOGRkkio5VnXsHQ1i6ajwGKVJBni2oPalFpfOq7sjB zGUTkfDz5LM8DxigPO4So4TanaZDYAR56crXY30EdehcEIMIFk77wzy/7Nth6rVFqHQj GQ== Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0a-0016f401.pphosted.com with ESMTP id 351muf3gg7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Wed, 25 Nov 2020 20:58:30 -0800 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 25 Nov 2020 20:58:29 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 25 Nov 2020 20:58:29 -0800 Received: from cavium.marvell.com (unknown [10.28.8.64]) by maili.marvell.com (Postfix) with ESMTP id F02FE3F703F; Wed, 25 Nov 2020 20:58:27 -0800 (PST) From: To: CC: , , usurekha Date: Thu, 26 Nov 2020 10:23:24 +0530 Message-ID: <1606366404-30711-1-git-send-email-usurekha@marvell.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.312, 18.0.737 definitions=2020-11-26_01:2020-11-25, 2020-11-26 signatures=0 Subject: [dts] [PATCH] tests/TestSuite_pmdrssreta.py: Enable the rss_hash by specifying the rx_offload type 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: , Errors-To: dts-bounces@dpdk.org Sender: "dts" From: usurekha Signed-off-by: usurekha --- tests/TestSuite_pmdrssreta.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_pmdrssreta.py b/tests/TestSuite_pmdrssreta.py index 168119f..4f7c791 100644 --- a/tests/TestSuite_pmdrssreta.py +++ b/tests/TestSuite_pmdrssreta.py @@ -153,6 +153,7 @@ class TestPmdrssreta(TestCase): # compute the hash result using simple XOR. hash_index_tmp = 0 index_tmp = tmp_reta_line["RSS hash"].strip("0x") + index_tmp = index_tmp.zfill(8) index_tmp = textwrap.wrap(index_tmp,2) index_tmp = [hex(int(index,16)) for index in index_tmp] for index in index_tmp: @@ -219,10 +220,10 @@ class TestPmdrssreta(TestCase): for queue in testQueues: if(queue == 16): self.pmdout.start_testpmd( - "all", "--rxq=%d --txq=%d" % (queue, queue), socket=self.ports_socket) + "all", "--rxq=%d --txq=%d --rx-offloads=0x00080000 " % (queue, queue), socket=self.ports_socket) else: self.pmdout.start_testpmd( - "all", "--mbcache=128 --rxq=%d --txq=%d" % (queue, queue), socket=self.ports_socket) + "all", "--mbcache=128 --rxq=%d --txq=%d --rx-offloads=0x00080000" % (queue, queue), socket=self.ports_socket) for iptype, rsstype in list(iptypes.items()): self.dut.send_expect("set verbose 8", "testpmd> ") -- 2.7.4