From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 40C45C4360C for ; Sun, 29 Sep 2019 09:15:49 +0000 (UTC) Received: from dpdk.org (dpdk.org [92.243.14.124]) by mail.kernel.org (Postfix) with ESMTP id CAD592082F for ; Sun, 29 Sep 2019 09:15:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CAD592082F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dev-bounces@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B585F316B; Sun, 29 Sep 2019 11:15:47 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 1D6972D13 for ; Sun, 29 Sep 2019 11:15:45 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Sep 2019 02:15:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,562,1559545200"; d="scan'208";a="391707074" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga006.fm.intel.com with ESMTP; 29 Sep 2019 02:15:44 -0700 Received: from fmsmsx604.amr.corp.intel.com (10.18.126.84) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 29 Sep 2019 02:15:44 -0700 Received: from fmsmsx604.amr.corp.intel.com (10.18.126.84) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Sun, 29 Sep 2019 02:15:38 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Sun, 29 Sep 2019 02:15:38 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.166]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.69]) with mapi id 14.03.0439.000; Sun, 29 Sep 2019 17:15:36 +0800 From: "Su, Simei" To: "Su, Simei" , "Zhang, Qi Z" , "Wu, Jingjing" , "Ye, Xiaolong" , "Yigit, Ferruh" CC: "dev@dpdk.org" Thread-Topic: [PATCH v7 2/3] ethdev: extend RSS offload types Thread-Index: AQHVdpTYXO8P58DCf0uoQJVM7Socx6dCWW9QgAAFmAA= Date: Sun, 29 Sep 2019 09:15:35 +0000 Message-ID: <65F28F834D25B54B9EC1999B623071B30C45F429@SHSMSX104.ccr.corp.intel.com> References: <1569733870-333768-1-git-send-email-simei.su@intel.com> <1569740956-69634-1-git-send-email-simei.su@intel.com> <1569740956-69634-3-git-send-email-simei.su@intel.com> <65F28F834D25B54B9EC1999B623071B30C45F3EE@SHSMSX104.ccr.corp.intel.com> In-Reply-To: <65F28F834D25B54B9EC1999B623071B30C45F3EE@SHSMSX104.ccr.corp.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-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZjE0NDUyYWYtYzI0YS00Y2JjLWE3ODYtYWY1ZDQ1NDIxODc2IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoia29kQ0tDVkF0OTNreHAzU0hUUDIzSXpYVGtcLzUwVHdFWUJMZWYrZHVcLzcyUUxsR3F6b1lNVmhha29KdkUxbXFrIn0= x-ctpclassification: CTP_NT 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 v7 2/3] ethdev: extend RSS offload types 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" Sorry to miss to add the Ori's ack to this patch and sorry to add to wrong = location. I re-add ack this time. > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Su, Simei > Sent: Sunday, September 29, 2019 4:56 PM > To: Zhang, Qi Z ; Wu, Jingjing ; > Ye, Xiaolong ; Yigit, Ferruh > Cc: dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v7 2/3] ethdev: extend RSS offload types >=20 >=20 >=20 > > -----Original Message----- > > From: Su, Simei > > Sent: Sunday, September 29, 2019 3:09 PM > > To: Zhang, Qi Z ; Wu, Jingjing > > ; Ye, Xiaolong ; Yigit, > > Ferruh > > Cc: dev@dpdk.org; Su, Simei > > Subject: [PATCH v7 2/3] ethdev: extend RSS offload types > > > > This patch reserves several bits as input set selection from the high > > end of the 64 bits. It is combined with exisiting ETH_RSS_* to represen= t rss > types. > > > > for example: > > ETH_RSS_IPV4 | ETH_RSS_L3_SRC_ONLY: hash on src ip address only > > ETH_RSS_IPV4_UDP | ETH_RSS_L4_DST_ONLY: hash on src/dst IP and > > dst UDP port > > > > Signed-off-by: Simei Su > Acked-by: Ori Kam > > --- Acked-by: Ori Kam > > lib/librte_ethdev/rte_ethdev.h | 13 +++++++++++++ > > 1 file changed, 13 insertions(+) > > > > diff --git a/lib/librte_ethdev/rte_ethdev.h > > b/lib/librte_ethdev/rte_ethdev.h index > > 7722f70..e68bca8 100644 > > --- a/lib/librte_ethdev/rte_ethdev.h > > +++ b/lib/librte_ethdev/rte_ethdev.h > > @@ -505,6 +505,19 @@ struct rte_eth_rss_conf { > > #define ETH_RSS_GENEVE (1ULL << 20) > > #define ETH_RSS_NVGRE (1ULL << 21) > > > > +/* > > + * We use the following macros to combine with above ETH_RSS_* for > > + * more specific input set selection. These bits are defined starting > > + * from the high end of the 64 bits. > > + * Note: If we use above ETH_RSS_* without SRC/DST_ONLY, it > > +represents > > + * both SRC and DST are taken into account. SRC_ONLY and DST_ONLY of > > + * the same level can't be used simultaneously. > > + */ > > +#define ETH_RSS_L3_SRC_ONLY (1ULL << 63) > > +#define ETH_RSS_L3_DST_ONLY (1ULL << 62) > > +#define ETH_RSS_L4_SRC_ONLY (1ULL << 61) > > +#define ETH_RSS_L4_DST_ONLY (1ULL << 60) > > + > > #define ETH_RSS_IP ( \ > > ETH_RSS_IPV4 | \ > > ETH_RSS_FRAG_IPV4 | \ > > -- > > 1.8.3.1