From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 5FDD11B01D for ; Wed, 10 Jan 2018 03:15:19 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Jan 2018 18:15:19 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,337,1511856000"; d="scan'208";a="20350281" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga001.fm.intel.com with ESMTP; 09 Jan 2018 18:15:19 -0800 Received: from fmsmsx125.amr.corp.intel.com (10.18.125.40) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 9 Jan 2018 18:15:18 -0800 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by FMSMSX125.amr.corp.intel.com (10.18.125.40) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 9 Jan 2018 18:15:18 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.159]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.213]) with mapi id 14.03.0319.002; Wed, 10 Jan 2018 10:15:16 +0800 From: "Yang, Qiming" To: Thomas Monjalon CC: Shahaf Shuler , Andrew Rybchenko , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [DPDK] lib/librte_ether: add comments RSS flags Thread-Index: AQHThUeGQEd8s4LmXkeFJfOwteLVJqNmH6sAgAFSYACAAOqcAIAEBzUQ Date: Wed, 10 Jan 2018 02:15:16 +0000 Message-ID: References: <20180104181506.153697-1-qiming.yang@intel.com> <3cf12026-efe5-6090-0bb1-4f9cba721ed9@solarflare.com> <1569196.tzFYU9QD0F@xps> In-Reply-To: <1569196.tzFYU9QD0F@xps> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYTYxNmQ0NmYtN2U5Yy00Y2FhLTg1YmMtMzMxMWE2YWNlMTJmIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6IjJFd29laEpxbjgyZ0ZVU2RFRnJcL1NWN29tSEdlSG4rcUtyblRlS3NoTVRjPSJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.0.116 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] [DPDK] lib/librte_ether: add comments RSS flags 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: , X-List-Received-Date: Wed, 10 Jan 2018 02:15:20 -0000 > -----Original Message----- > From: Thomas Monjalon [mailto:thomas@monjalon.net] > Sent: Monday, January 8, 2018 4:33 AM > To: Yang, Qiming > Cc: Shahaf Shuler ; Andrew Rybchenko > ; dev@dpdk.org > Subject: Re: [dpdk-dev] [DPDK] lib/librte_ether: add comments RSS flags >=20 > 07/01/2018 07:32, Shahaf Shuler: > > Saturday, January 6, 2018 12:22 PM, Andrew Rybchenko: > > > > [..] > > > > > > #define ETH_RSS_PORT (1ULL << RTE_ETH_FLOW_PORT) > > > > +/** Enable RSS offload on VXLAN packets */ > > > > #define ETH_RSS_VXLAN (1ULL << RTE_ETH_FLOW_VXLAN) > > > > +/** Enable RSS offload on GENEVE packets */ > > > > #define ETH_RSS_GENEVE (1ULL << RTE_ETH_FLOW_GENEVE) > > > > +/** Enable RSS offload on NVGRE packets */ > > > > #define ETH_RSS_NVGRE (1ULL << RTE_ETH_FLOW_NVGRE) > > > > > > > > #define ETH_RSS_IP ( \ > > > > > > These comments just decode the define name and not that useful. What > > > would be really useful here is specification of which fields of the > > > packet headers are used to calculate hash especially in the case of t= unnels. > > > > +1. > > > > Also maybe some more clarifications, for example: > > 1. What is the expected behavior when, for example, setting the > ETH_RSS_IPV6_EX and regular IPv6 packet arrives? is RSS apply on it? > > 2. What is the expected behavior from the PMD when not supporting one o= f > the RSS types? > > For example most of the DPDK examples uses ETH_RSS_IP [1], however > very few devices actually supports each and every RSS type. > > Assuming such configuration returns with no error, what should app= lication > expect when unsupported packet type arrives. > > > > #define ETH_RSS_IP ( \ > > ETH_RSS_IPV4 | \ > > ETH_RSS_FRAG_IPV4 | \ > > ETH_RSS_NONFRAG_IPV4_OTHER | \ > > ETH_RSS_IPV6 | \ > > ETH_RSS_FRAG_IPV6 | \ > > ETH_RSS_NONFRAG_IPV6_OTHER | \ > > ETH_RSS_IPV6_EX) >=20 > +1 > We really need a detailed documentation of the. >=20 I agree with your comments, but the same RSS configuration may have differe= nt behavior(RSS offload and input set) in different driver. Adding driver s= pecific information in rte_ethdev.h is not suitable. So I think the best scheme is to update driver's document to detail the exa= ct behavior and add reference doc here. > It must be at least as detailed as lib/librte_mbuf/rte_mbuf_ptype.h. > Thanks