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 79B18A00C5; Mon, 6 Jul 2020 14:00:05 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 257421DA7B; Mon, 6 Jul 2020 14:00:05 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 78E061DA69 for ; Mon, 6 Jul 2020 14:00:03 +0200 (CEST) IronPort-SDR: m8CrKLBmNOwh/L3x37rvlq+z+/9rkEEYlLm8GN2383Z4tQHodtTUCxcPy5omikR3bQsDJpDmNd qInfRaVADYug== X-IronPort-AV: E=McAfee;i="6000,8403,9673"; a="126993469" X-IronPort-AV: E=Sophos;i="5.75,318,1589266800"; d="scan'208";a="126993469" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jul 2020 05:00:02 -0700 IronPort-SDR: 0OpuiiRm881N/48Mex7bStwoEG9PA/eMarPzzTEMCCtaHkNxWOn6cdY2/0fBJ7gzDq/OO+gX6H buquiqpe/HSA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,318,1589266800"; d="scan'208";a="267905263" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga008.fm.intel.com with ESMTP; 06 Jul 2020 05:00:01 -0700 Received: from fmsmsx113.amr.corp.intel.com (10.18.116.7) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 6 Jul 2020 05:00:01 -0700 Received: from shsmsx107.ccr.corp.intel.com (10.239.4.96) by FMSMSX113.amr.corp.intel.com (10.18.116.7) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 6 Jul 2020 05:00:01 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.22]) by SHSMSX107.ccr.corp.intel.com ([169.254.9.32]) with mapi id 14.03.0439.000; Mon, 6 Jul 2020 19:59:57 +0800 From: "Zhang, Qi Z" To: "Guo, Junfeng" , "Xing, Beilei" CC: "dev@dpdk.org" , "Guo, Jia" , "Su, Simei" Thread-Topic: [PATCH v2 1/3] ethdev: add new RSS types for IPv6 prefix Thread-Index: AQHWQ7a011zWOy0smEWiQz0KNMS5A6j6jv4Q Date: Mon, 6 Jul 2020 11:59:56 +0000 Message-ID: <039ED4275CED7440929022BC67E7061154854455@SHSMSX103.ccr.corp.intel.com> References: <20200612080711.39774-1-junfeng.guo@intel.com> <20200616081644.23887-1-junfeng.guo@intel.com> <20200616081644.23887-2-junfeng.guo@intel.com> In-Reply-To: <20200616081644.23887-2-junfeng.guo@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v2 1/3] ethdev: add new RSS types for IPv6 prefix 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" > -----Original Message----- > From: Guo, Junfeng > Sent: Tuesday, June 16, 2020 4:17 PM > To: Zhang, Qi Z ; Ye, Xiaolong > ; Xing, Beilei > Cc: dev@dpdk.org; Guo, Jia ; Guo, Junfeng > ; Su, Simei > Subject: [PATCH v2 1/3] ethdev: add new RSS types for IPv6 prefix >=20 > This patch defines new RSS offload types for IPv6 prefix with 32, 48, > 64 bits of both SRC and DST IPv6 address. >=20 > Signed-off-by: Junfeng Guo Reviewed-by: Qi Zhang > --- > lib/librte_ethdev/rte_ethdev.h | 51 > ++++++++++++++++++++++++++++++++++ > 1 file changed, 51 insertions(+) >=20 > diff --git a/lib/librte_ethdev/rte_ethdev.h b/lib/librte_ethdev/rte_ethde= v.h > index 631b146bd..5a7ba36d8 100644 > --- a/lib/librte_ethdev/rte_ethdev.h > +++ b/lib/librte_ethdev/rte_ethdev.h > @@ -538,6 +538,9 @@ struct rte_eth_rss_conf { > #define ETH_RSS_L4_DST_ONLY (1ULL << 60) > #define ETH_RSS_L2_SRC_ONLY (1ULL << 59) > #define ETH_RSS_L2_DST_ONLY (1ULL << 58) > +#define ETH_RSS_L3_PRE32 (1ULL << 57) > +#define ETH_RSS_L3_PRE48 (1ULL << 56) > +#define ETH_RSS_L3_PRE64 (1ULL << 55) >=20 > /** > * For input set change of hash filter, if SRC_ONLY and DST_ONLY of @@ > -561,6 +564,54 @@ rte_eth_rss_hf_refine(uint64_t rss_hf) > return rss_hf; > } >=20 > +#define ETH_RSS_IPV6_PRE32 ( \ > + ETH_RSS_IPV6 | \ > + ETH_RSS_L3_PRE32) > + > +#define ETH_RSS_IPV6_PRE48 ( \ > + ETH_RSS_IPV6 | \ > + ETH_RSS_L3_PRE48) > + > +#define ETH_RSS_IPV6_PRE64 ( \ > + ETH_RSS_IPV6 | \ > + ETH_RSS_L3_PRE64) > + > +#define ETH_RSS_IPV6_PRE32_UDP ( \ > + ETH_RSS_NONFRAG_IPV6_UDP | \ > + ETH_RSS_L3_PRE32) > + > +#define ETH_RSS_IPV6_PRE48_UDP ( \ > + ETH_RSS_NONFRAG_IPV6_UDP | \ > + ETH_RSS_L3_PRE48) > + > +#define ETH_RSS_IPV6_PRE64_UDP ( \ > + ETH_RSS_NONFRAG_IPV6_UDP | \ > + ETH_RSS_L3_PRE64) > + > +#define ETH_RSS_IPV6_PRE32_TCP ( \ > + ETH_RSS_NONFRAG_IPV6_TCP | \ > + ETH_RSS_L3_PRE32) > + > +#define ETH_RSS_IPV6_PRE48_TCP ( \ > + ETH_RSS_NONFRAG_IPV6_TCP | \ > + ETH_RSS_L3_PRE48) > + > +#define ETH_RSS_IPV6_PRE64_TCP ( \ > + ETH_RSS_NONFRAG_IPV6_TCP | \ > + ETH_RSS_L3_PRE64) > + > +#define ETH_RSS_IPV6_PRE32_SCTP ( \ > + ETH_RSS_NONFRAG_IPV6_SCTP | \ > + ETH_RSS_L3_PRE32) > + > +#define ETH_RSS_IPV6_PRE48_SCTP ( \ > + ETH_RSS_NONFRAG_IPV6_SCTP | \ > + ETH_RSS_L3_PRE48) > + > +#define ETH_RSS_IPV6_PRE64_SCTP ( \ > + ETH_RSS_NONFRAG_IPV6_SCTP | \ > + ETH_RSS_L3_PRE64) > + > #define ETH_RSS_IP ( \ > ETH_RSS_IPV4 | \ > ETH_RSS_FRAG_IPV4 | \ > -- > 2.17.1