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 D58D6A2E1B for ; Tue, 3 Sep 2019 08:43:28 +0200 (CEST) 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 Content-Type: text/plain 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 --- 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 | \ -- 2.17.1