From patchwork Tue Sep 3 06:43:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kiran Kumar Kokkilagadda X-Patchwork-Id: 58442 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: 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 B50CE1E533; Tue, 3 Sep 2019 08:43:27 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 4B0CF1D444 for ; Tue, 3 Sep 2019 08:43:25 +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 x836dmKc024977; Mon, 2 Sep 2019 23:43:24 -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=1B100x8BMEsmYvGp3fsGgvM66CI48Ll78brsn/s3BV4=; b=ydFNIQ5BGAbAEpP6NWq/WPsLbEVFbvu3Sv9PduQ0uB7dUTZgCkHER2Xx/Qwg2265ymJ6 0ZTGVwpzrkoQd9g6VpoT2xXchnRSBfbexX0NOrygP5YhDcgkpyacG/JEtQSVXD8giFl4 ohs1lxuV1iSVJ3YfOFcrDlyXTlYtqjMuSofP2pNzK+fojg19pvClT0vdYwkdlbB2W4zK p5zUYtZCPlJp1BRcjWgvmByAQwxdGmbZ5YDCGRrjPo01No5NhISOvlCFDSEfquK7H8CD SX14i9oDd3X1Xpm52gv6GOn+U11DUNh5jYPwS9Keq+gORjYJPsH920twcsBNdThYaL3r Ag== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0a-0016f401.pphosted.com with ESMTP id 2uqp8p92he-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 02 Sep 2019 23:43:23 -0700 Received: from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Mon, 2 Sep 2019 23:43:22 -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; Mon, 2 Sep 2019 23:43:22 -0700 Received: from localhost.localdomain (unknown [10.28.34.15]) by maili.marvell.com (Postfix) with ESMTP id 3B4503F703F; Mon, 2 Sep 2019 23:43:19 -0700 (PDT) From: To: Thomas Monjalon , Ferruh Yigit , Andrew Rybchenko CC: , Kiran Kumar K Date: Tue, 3 Sep 2019 12:13:04 +0530 Message-ID: <20190903064305.14895-1-kirankumark@marvell.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.70,1.0.8 definitions=2019-09-03_01:2019-09-03,2019-09-02 signatures=0 Subject: [dpdk-dev] [PATCH 1/2] ethdev: enable support for GTPU eth flow type 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: Kiran Kumar K Adding support to enable GTPU eth flow type for RSS hash index calculation. Signed-off-by: Kiran Kumar K Reviewed-by: Ferruh Yigit --- lib/librte_ethdev/rte_ethdev.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/librte_ethdev/rte_ethdev.h b/lib/librte_ethdev/rte_ethdev.h index 8fa89bf76..774906d77 100644 --- a/lib/librte_ethdev/rte_ethdev.h +++ b/lib/librte_ethdev/rte_ethdev.h @@ -479,7 +479,8 @@ struct rte_eth_rss_conf { #define RTE_ETH_FLOW_GENEVE 20 /**< GENEVE protocol based flow */ #define RTE_ETH_FLOW_NVGRE 21 /**< NVGRE protocol based flow */ #define RTE_ETH_FLOW_VXLAN_GPE 22 /**< VXLAN-GPE protocol based flow */ -#define RTE_ETH_FLOW_MAX 23 +#define RTE_ETH_FLOW_GTPU 23 /**< GTPU protocol based flow */ +#define RTE_ETH_FLOW_MAX 24 /* * The RSS offload types are defined based on flow types. @@ -507,6 +508,7 @@ struct rte_eth_rss_conf { #define ETH_RSS_VXLAN (1ULL << RTE_ETH_FLOW_VXLAN) #define ETH_RSS_GENEVE (1ULL << RTE_ETH_FLOW_GENEVE) #define ETH_RSS_NVGRE (1ULL << RTE_ETH_FLOW_NVGRE) +#define ETH_RSS_GTPU (1ULL << RTE_ETH_FLOW_GTPU) #define ETH_RSS_IP ( \ ETH_RSS_IPV4 | \ From patchwork Tue Sep 3 06:43:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kiran Kumar Kokkilagadda X-Patchwork-Id: 58443 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: 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 E828C1E85D; Tue, 3 Sep 2019 08:43:30 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 84E4F1D444 for ; Tue, 3 Sep 2019 08:43:27 +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 x836dmKd024977 for ; Mon, 2 Sep 2019 23:43:26 -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=JCz164BTEA208wT8q6hwRaYtchKu/hZ/H7t+lW0Ni90=; b=EJ/Hk4R1ReH1NHdFj5bDr/reBScKUJUJtupJyDxwkw7uZdfYFWkVx40zaLzy+bJe62tF fhz5MN6aVbhIgvUORX/imVjMMIQkyHbri4E2RsKqVvuonRSAXbkrGSSbO2zKjCzq+4iu P3WYicOMR78fFzum+d5/MXK6U9fc0oP00qbJl5uRDVSPW9BySJe6m/EyL+r453zW5O0K xIeGkZzSdyhs6ew+n/ayFoH8/5mxfTjqHMJxQMD81zeKLf+1xt9p3WVfquamED2i0x+Q 6oHofk+iorjvL1sS/LjnGkWnjji6cZQzsqiW+5MFsGkA70Ao9rD9cIeT5ciLsbWc98JJ ig== Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0a-0016f401.pphosted.com with ESMTP id 2uqp8p92hn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Mon, 02 Sep 2019 23:43:26 -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; Mon, 2 Sep 2019 23:43:24 -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; Mon, 2 Sep 2019 23:43:24 -0700 Received: from localhost.localdomain (unknown [10.28.34.15]) by maili.marvell.com (Postfix) with ESMTP id B03F43F7041; Mon, 2 Sep 2019 23:43:22 -0700 (PDT) From: To: Jerin Jacob , Nithin Dabilpuram , Kiran Kumar K CC: Date: Tue, 3 Sep 2019 12:13:05 +0530 Message-ID: <20190903064305.14895-2-kirankumark@marvell.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190903064305.14895-1-kirankumark@marvell.com> References: <20190903064305.14895-1-kirankumark@marvell.com> MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.70,1.0.8 definitions=2019-09-03_01:2019-09-03,2019-09-02 signatures=0 Subject: [dpdk-dev] [PATCH 2/2] net/octeontx2: enable GTPU for RSS 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: Kiran Kumar K Adding support to parse GTPU flag for RSS hash index calculation in octeontx2. Signed-off-by: Kiran Kumar K --- drivers/net/octeontx2/otx2_rss.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/octeontx2/otx2_rss.c b/drivers/net/octeontx2/otx2_rss.c index 5afa21490..bc7b64387 100644 --- a/drivers/net/octeontx2/otx2_rss.c +++ b/drivers/net/octeontx2/otx2_rss.c @@ -243,6 +243,9 @@ otx2_rss_ethdev_to_nix(struct otx2_eth_dev *dev, uint64_t ethdev_rss, if (ethdev_rss & ETH_RSS_GENEVE) flowkey_cfg |= FLOW_KEY_TYPE_GENEVE; + if (ethdev_rss & ETH_RSS_GTPU) + flowkey_cfg |= FLOW_KEY_TYPE_GTPU; + return flowkey_cfg; }