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 06933A2EEB for ; Sat, 14 Sep 2019 07:53:13 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E5C1F1EB15; Sat, 14 Sep 2019 07:53:12 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 4687B1EB09 for ; Sat, 14 Sep 2019 07:53:10 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x8E5klCY022500; Fri, 13 Sep 2019 22:53:09 -0700 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=pfpt0818; bh=oQlsjR9RAn3nAsbwrXKHVGfU3Xb3y6q9uShAA9jIqZs=; b=pGURaJOVKKwTHDCAfJFOsnhUp4lGEpvpO0Oh206l94nT7nOIgwcOEEkNVHph9iTAHJ2/ Lbdw2uRgD+cMkuuX5+X7hSVutn9C7HfSqOBZgrfbiRcrfQuPklmYcps3YPvz24vdlwio V7cMkmM3QOG2FacI0G+z508przte56ZLSeLUK9/rApWsoGKm7EhE8CzJ6CNbaqg7WQV8 q1YY6ACrNIqOBnPWaoElVaMEe+D1DxokF8NY+NxkT/aB6oJapNK3fNLNtmWRBm1rI7pD hEyuDHIFDGfGzUYHaqhBUJPuJqCBrm31NIyuzOaFV2hCbB5rfKLcFG2taJHrDMkOuYL5 2w== Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0a-0016f401.pphosted.com with ESMTP id 2uytdh7dsj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Fri, 13 Sep 2019 22:53:09 -0700 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Fri, 13 Sep 2019 22:53:07 -0700 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Fri, 13 Sep 2019 22:53:07 -0700 Received: from hyd1vattunuru-dt.caveonetworks.com (unknown [10.29.52.72]) by maili.marvell.com (Postfix) with ESMTP id 7821E3F703F; Fri, 13 Sep 2019 22:53:05 -0700 (PDT) From: To: CC: , , , , Vamsi Attunuru Date: Sat, 14 Sep 2019 11:22:44 +0530 Message-ID: <20190914055247.3841-1-vattunuru@marvell.com> X-Mailer: git-send-email 2.8.4 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.70,1.0.8 definitions=2019-09-14_02:2019-09-11,2019-09-14 signatures=0 Subject: [dpdk-dev] [PATCH v1 0/3] add ethdev op to get hash index X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Vamsi Attunuru *** Following patch set adds ethdev op to fetch hash index from ethdev pmd for a given hash value. It enables pmds to compute hash index using HW supported custom algos. Patch set also adds autotest for these API to verify whether packet distribution is as per computed hash index or not. Vamsi Attunuru (3): lib/ethdev: add ethdev op to get hash index app/test: add hash index verify autotest net/octeontx2: add eth dev op callback to get hash index app/test/Makefile | 1 + app/test/autotest_data.py | 6 + app/test/meson.build | 1 + app/test/test_hash_index.c | 347 +++++++++++++++++++++++++++++++ drivers/net/octeontx2/otx2_ethdev.c | 1 + drivers/net/octeontx2/otx2_ethdev.h | 3 + drivers/net/octeontx2/otx2_rss.c | 18 ++ lib/librte_ethdev/rte_ethdev.c | 13 ++ lib/librte_ethdev/rte_ethdev.h | 20 ++ lib/librte_ethdev/rte_ethdev_core.h | 5 + lib/librte_ethdev/rte_ethdev_version.map | 3 + 11 files changed, 418 insertions(+) create mode 100644 app/test/test_hash_index.c -- 2.8.4