[v2,0/3] add ethdev op to get hash index
Message ID | 20191015095207.13249-1-vattunuru@marvell.com (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8B0601E901; Tue, 15 Oct 2019 11:52:38 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 8257D1E8BD for <dev@dpdk.org>; Tue, 15 Oct 2019 11:52:37 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x9F9j8po013807; Tue, 15 Oct 2019 02:52:36 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=pfpt0818; bh=Wn+lW3m5Z82Tas3UUlbzkWM5WOMupkLj6z9HvToNO8Q=; b=d0k1oiK5sv9II057rCJToFvZpHmhjRrgirGppicbg8BXwiaqqsTirt7HrzZHJrsEV3fE Gt8Wi2wsg7e90385PeTsYyF0zsFgdkAe7IWgyzHJcB9PeV4e6C/ki1fIkWPG5B36/KKp 7QrtF2ZRvFYs0uODeWcQKMpiyhrNQqZWVd2ONGc61OPZcKFaj6kjeUfSGRI3pNpLGHcV lLNAUkHq1MlKtqecxm2tianT8XM14BsAa2gBUIoFWr72VxCwAZvtcNJoCebLjRLgl1RA jJ3mLarVkxFC75/Q5Yqj1w3yuhCtkU3csacIsVc/pTdn2ustUXy5rkm2+QgfmM+VRusj aw== Received: from sc-exch01.marvell.com ([199.233.58.181]) by mx0b-0016f401.pphosted.com with ESMTP id 2vkebp1673-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 15 Oct 2019 02:52:36 -0700 Received: from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Tue, 15 Oct 2019 02:52:34 -0700 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Tue, 15 Oct 2019 02:52:34 -0700 Received: from hyd1vattunuru-dt.caveonetworks.com (unknown [10.29.52.72]) by maili.marvell.com (Postfix) with ESMTP id 207523F703F; Tue, 15 Oct 2019 02:52:31 -0700 (PDT) From: <vattunuru@marvell.com> To: <dev@dpdk.org> CC: <arybchenko@solarflare.com>, <jerinj@marvell.com>, <ferruh.yigit@intel.com>, <thomas@monjalon.net>, Vamsi Attunuru <vattunuru@marvell.com> Date: Tue, 15 Oct 2019 15:22:04 +0530 Message-ID: <20191015095207.13249-1-vattunuru@marvell.com> X-Mailer: git-send-email 2.8.4 In-Reply-To: <20190914055247.3841-2-vattunuru@marvell.com> References: <20190914055247.3841-2-vattunuru@marvell.com> MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,1.0.8 definitions=2019-10-15_04:2019-10-15,2019-10-15 signatures=0 Subject: [dpdk-dev] [PATCH v2 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 <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Message
Vamsi Krishna Attunuru
Oct. 15, 2019, 9:52 a.m. UTC
From: Vamsi Attunuru <vattunuru@marvell.com>
---
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.
V2 Change:
* Updated description in the commit message.
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