From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 715A4326D for ; Thu, 28 Feb 2019 17:54:21 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Feb 2019 08:54:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,423,1544515200"; d="scan'208";a="324228488" Received: from orsmsx101.amr.corp.intel.com ([10.22.225.128]) by fmsmga005.fm.intel.com with ESMTP; 28 Feb 2019 08:54:20 -0800 Received: from orsmsx122.amr.corp.intel.com (10.22.225.227) by ORSMSX101.amr.corp.intel.com (10.22.225.128) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 28 Feb 2019 08:54:19 -0800 Received: from orsmsx121.amr.corp.intel.com ([169.254.10.201]) by ORSMSX122.amr.corp.intel.com ([169.254.11.48]) with mapi id 14.03.0415.000; Thu, 28 Feb 2019 08:54:19 -0800 From: "Greenwalt, Paul" To: "Zhang, Qi Z" , "Lu, Wenzhuo" , "Yang, Qiming" CC: "Stillwell Jr, Paul M" , "dev@dpdk.org" , "Yigit, Ferruh" Thread-Topic: [PATCH 22/37] net/ice/base: add RSS key related macro and structures Thread-Index: AQHUzyo/UBenEm1zxkSspmSc192S9KX1biKw Date: Thu, 28 Feb 2019 16:54:19 +0000 Message-ID: <9A83C569D64F2541B0B591F2CBA3CC01E5274812@ORSMSX121.amr.corp.intel.com> References: <20190228055650.25237-1-qi.z.zhang@intel.com> <20190228055650.25237-23-qi.z.zhang@intel.com> In-Reply-To: <20190228055650.25237-23-qi.z.zhang@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZTNjMDA3MWEtYjMzMC00NTcyLWE2ZDUtN2RmMGNhN2M4YmM3IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiTHdnaGtSbWlKS0VKNkpRelNcL25xWldOa0JrQ3h1azFxNTJCU2xnaXBcL0o2UDVFbFRqSU14RkN2dWJPWkw2N2NIIn0= x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.0.400.15 x-originating-ip: [10.22.254.139] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailman-Approved-At: Fri, 01 Mar 2019 10:25:12 +0100 Subject: Re: [dpdk-dev] [PATCH 22/37] net/ice/base: add RSS key related macro and structures 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: Thu, 28 Feb 2019 16:54:22 -0000 ACK -----Original Message----- From: Zhang, Qi Z=20 Sent: Wednesday, February 27, 2019 9:57 PM To: Lu, Wenzhuo ; Yang, Qiming Cc: Stillwell Jr, Paul M ; dev@dpdk.org; Yig= it, Ferruh ; Zhang, Qi Z ; Gr= eenwalt, Paul Subject: [PATCH 22/37] net/ice/base: add RSS key related macro and structur= es Add define for 52 byte RSS hash key size, and add struct ice_aqc_get_set_rs= s_keys comments regarding setting 40 bytes and 52 byte hash key. Signed-off-by: Paul Greenwalt Signed-off-by: Paul M Stillwell Jr Signed-off-by: Qi Zhang --- drivers/net/ice/base/ice_adminq_cmd.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/net/ice/base/ice_adminq_cmd.h b/drivers/net/ice/base/i= ce_adminq_cmd.h index cb1e1ca1a..ed7dfae8c 100644 --- a/drivers/net/ice/base/ice_adminq_cmd.h +++ b/drivers/net/ice/base/ice_adminq_cmd.h @@ -1593,7 +1593,20 @@ struct ice_aqc_get_set_rss_key { =20 #define ICE_AQC_GET_SET_RSS_KEY_DATA_RSS_KEY_SIZE 0x28 #define ICE_AQC_GET_SET_RSS_KEY_DATA_HASH_KEY_SIZE 0xC +#define ICE_GET_SET_RSS_KEY_EXTEND_KEY_SIZE \ + (ICE_AQC_GET_SET_RSS_KEY_DATA_RSS_KEY_SIZE + \ + ICE_AQC_GET_SET_RSS_KEY_DATA_HASH_KEY_SIZE) =20 +/** + * struct ice_aqc_get_set_rss_keys - Get/Set RSS hash key command=20 +buffer + * @standard_rss_key: 40 most significant bytes of hash key + * @extended_hash_key: 12 least significant bytes of hash key + * + * Set/Get 40 byte hash key using standard_rss_key field, and set + * extended_hash_key field to zero. Set/Get 52 byte hash key using + * standard_rss_key field for 40 most significant bytes and the + * extended_hash_key field for the 12 least significant bytes of hash key. + */ struct ice_aqc_get_set_rss_keys { u8 standard_rss_key[ICE_AQC_GET_SET_RSS_KEY_DATA_RSS_KEY_SIZE]; u8 extended_hash_key[ICE_AQC_GET_SET_RSS_KEY_DATA_HASH_KEY_SIZE]; -- 2.13.6