From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0048.outbound.protection.outlook.com [104.47.0.48]) by dpdk.org (Postfix) with ESMTP id 6E25023A for ; Sun, 6 May 2018 08:06:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=R4zPMrq1kRNHmqWCErguiCc2Bkw1q2EKd4X5dxDP61Y=; b=ZQk2/6rZ4ysLx9TcSzgZiYXDxb7t6g7HMLcuyJ1aRglof08JrneKtqgKefidUYeXFD5QSIjYukHcrGmKVuL5nzgo9fDHqyt5j9MKAbzjwfpwlZAPfJkkpOy26MboPYOatKSQ9adX9O/AHfpl5nzzaNNjszNXKHmI6333BGKtbNI= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=shahafs@mellanox.com; Received: from mellanox.com (141.226.120.58) by AM6PR05MB4422.eurprd05.prod.outlook.com (2603:10a6:209:43::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.735.16; Sun, 6 May 2018 06:06:53 +0000 From: Shahaf Shuler To: bluca@debian.org Cc: stable@dpdk.org, nelio.laranjeiro@6wind.com, yskoh@mellanox.com, adrien.mazarguil@6wind.com Date: Sun, 6 May 2018 09:05:52 +0300 Message-Id: X-Mailer: git-send-email 2.12.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [141.226.120.58] X-ClientProxiedBy: LO2P265CA0008.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:62::20) To AM6PR05MB4422.eurprd05.prod.outlook.com (2603:10a6:209:43::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:AM6PR05MB4422; X-Microsoft-Exchange-Diagnostics: 1; AM6PR05MB4422; 3:Ep8WtwswrZ6egcfcUfPYC76d2anKRgrbADCS9/iDkcyq/gl0y+73VVmuPWArL0DLKVvKBLy0zymPejt8ZLHcnT2/AcfBCW6ULhaYcTjgRxzWtkjwp55+HP5ybjwMHmhJarGv2t2ng7khXqB48AiqYg4rhT3uRYfSEahsuUF1Rc/8VDJNPXQQIw9WH8GHdr/OrfJBd74dOcJ//PfgO+dMjH9e2LeW/Bmds3liwJtAh+/PxB5uU0BeOoXPcIwQKcOh; 25:nJvBAbqXe0qHjxaPxL19jsRamknUXJBgEnl1A1k3SyUd5dP8fqlzuR4v4eWLx7/IwJCBqyuzu72Brrn03sWF+43KPT7gCKD4nSSHfx8okY91gGHKCL4YhjG7BeUKeYOVs7H7dgkDxyowoKCyA4ZBzn9BRLHGYkK2/fodSyiA3ZpP8wTfrXmGsJ4O47tJNadHIlv/JX8d5mo/wdfKEG0cwcYAEwTYEsPthSStFErCv4cqt6Eho0J/xlptWHxnigf3+nh/XptTkBRNkl66eioL0S03/v3scPYZZQpkahAg/PkiajCG+00Ee/3jhk8BU0/F6Uvt0izF4TehEjR+66kfbg==; 31:QRafs8KaSjFBOH7b6P23rwUkeqTKfBmXJlCZC/4C7lGaxzuWvIWKP0xAeNhjsH9P2FBK86YnDkG6jX2UMwJ6UECObQmG1U0cpMCtF4U7xPgh/re9oE3Y5AS7c7eJqpQLlsy5kvNt7bSHq/cMypwiDgYqywv3z9lePgj9E82MdNMlZMRsmNLhKdUuCVv8Di0WlkNq01W8Z82m3Uih9OhqnFFiREu1fLjErg68oV6us/s= X-MS-TrafficTypeDiagnostic: AM6PR05MB4422: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; AM6PR05MB4422; 20:J14bmuH9evNgUB1DjW4nVd+qhxGIDIMhUKfprT2oKD1p4eZQ+Fec/g9GW3lC8NrEBK1W+/7V0hspxDGS1777ugIfnTau8qHKaZl66xmIM60/SChWxGeVIywJ/Sb2Gy0bNxB31SLmVGuIcVrFN1z2fpRXryZKoZNrslmK90ga0djxK9fQgblRqp2wxMVIXwYlsrfmuiL999BAJ9buYEtyplVjHGZWuc3CF2FbAGoZJvL7GWvmyiWC2cuoMEiz31Anp+z89NKvbIMJrmKeOrHX4cgA3XqVN8FfDooGxptULxsODLqWF4xvTyoBz/GTlspjtRQQdtJuzPfheOo0xUrUkr+M8IvyenRLvcL++kwhjsHj/6hrSAlrOzOT+n2DDsvUElvLJbwZaEK5UCpz48QmdpAp4mf6t8K2Cdmf/UxE3KoSOFdPPYYCBIeGtakPbOtFlKM9QKsCQmkzd3Vfdtr2XBfGC/qzozPf6CB3t8vUKHxOjwYgfwPSSPduO2HzfZ34; 4:py6TeTSxwy7r4mZpLKW2OARCOfVYUfpmDa8GBiO8C1Z9kFqt9pcUoecR3eUU9I/LmNwEkSjaMMpS64/0fLSk2mzL9GCbMWiYg1lMSXkoeq0oza7CCFzZxBtFLHU4YlqtUHWJ7/tmBH8v2Y2Z7oDpOKa7Go/SVfv5cxhAqUH0jF7aThMWkOZGOVg2dQ1xjATW5pxVw7ZJrDnHmDcbqMf1xLis0bgowFyVkGdY3kxQzQ0x6QEO+YpFXf7UL3o4+M22+jplpIzYlNaTfsTLMGjDY6nDA8OzwXxUaD1gTI8je4ZlZRh1WqtDYs9ORmse+2mR X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(211171220733660); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(3002001)(3231254)(944501410)(52105095)(93006095)(93001095)(6055026)(6041310)(20161123564045)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(6072148)(201708071742011); SRVR:AM6PR05MB4422; BCL:0; PCL:0; RULEID:; SRVR:AM6PR05MB4422; X-Forefront-PRVS: 06640999CA X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(376002)(39380400002)(396003)(346002)(39860400002)(189003)(199004)(105586002)(8676002)(16586007)(8936002)(316002)(2351001)(53936002)(86362001)(2361001)(6116002)(3846002)(106356001)(118296001)(66066001)(36756003)(47776003)(81156014)(55016002)(2906002)(50226002)(4326008)(68736007)(305945005)(7736002)(81166006)(50466002)(25786009)(486006)(5660300001)(476003)(2616005)(48376002)(69596002)(16526019)(26005)(59450400001)(386003)(97736004)(956004)(186003)(478600001)(7696005)(52116002)(6916009)(21086003)(51416003)(446003)(11346002)(76176011); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR05MB4422; H:mellanox.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM6PR05MB4422; 23:6TNTDT5TK02EV7x06lF4wFCttmrO9StcfcoYypbh1?= =?us-ascii?Q?chGdw/YWFChKUJfFkBGy3G09slTGPr40eQlSX8Inwopb2/pstMz0WkokE7ol?= =?us-ascii?Q?R27af0urA1FNkg05cLFbIWoMa0zIMY0gI0ewc91XKn9i14V8RuGHmX7ObCak?= =?us-ascii?Q?g8x2Ol6e+j+pFrxJ7b9wu/IUAAxQWOlRjOjZ2J68F9t6lc5WINnhRgoPLvGx?= =?us-ascii?Q?JGr9nTlXniKl0j2D2O089zsvTvj1D77SX6y2n/JAO4MOs2X63g4U+/a6VuVT?= =?us-ascii?Q?vqXCzg410GZvnOHvIx+L4TBf6Ks+Wt1EpaySBQrq/+oCi7PuonfuP4Um9EiX?= =?us-ascii?Q?MqUq6IgAoAy5AZOu2x2TEkFuCWXUCGWGMXam3QS4ZdhJewHwQZdKDs7IJpol?= =?us-ascii?Q?E/n6996uJiCrRufk5QyUJ50q77DRG6330kWyjTVQ1pxMVyjNClnl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XzedEFkgC4ksyewcPgkSX9hiw8Sq+Pj3ehbJK1n/vXtUtpl5Ynkr2jI8uxn6MTLtOhY+dgJhGMe8M8FelN/0TbWwemwwgZA0sJs7btbz0c6o7Hvsb3s3g6uqoLgC2MMuRA3rhAz+lJk4Hjs70Pw4jrduzhqTZWcDxBrT2VR X-Microsoft-Exchange-Diagnostics: 1; AM6PR05MB4422; 6:qYDOUgy82jHsA+p59+Bps/fTleTfPQgoiXK7cgAcYaKoMf+NhDkCgEzmg0CsJlePShCRsGUw1YkoGmxIHJ0wttf/Qz+ASST8eV6OSy4ljBKlU9mX44msKXI809rSsg01ihEEg6uEKd0qOjufiCj2rrWcVvGlKG+CpP6YqpFTgb/mvJK3gOrQa7yZAQ5taUwKBR9Gt72vLgkBhtoW19cdQ0SSjrYjY7Vz8bPZkDzBPCt934akTAIBJM/TOUWKWxsEE53x4OSng8MRRUn9p6BeJ/yDdQwAteWRpZQi4ebnquX+nyWoMQk14sRp9ny+mD4665oDE4z1ABaBetMKnGlfjkDzHv1W0MjMWN/bZ9pwpfMWrVTEc/Hy5/Xy9Rta0wkcjOJg82iCvkgYqjSmh88wsj5PgRvxgapCBJPyR57akPFdFo7g+M4MLpMRl35keAYdvNWc9Bx/K9xxmHhqDNBpNQ==; 5:G3VRDMTZJ5QTszUKLXuISIlIuEBrYIKZKlVUyulfNLRlDziuz/CB/u18eybh+VfNL8+eN550o3hFVyVHw4yRNydnyyXIm17mUs4PKHh9n6XZ70qUe74tylKlbwJitwueyJHK9xViMO7bm0eymonA6rgmO5efMbVfLNlUI5nKEXo=; 24:Gz24AScVKusuqJ4Ow8lw3w6o46Qpka541B50X3ZtnZuWOcN8pBVaOQyvSPda9fnR3oxnaEejW3d8iYy8vB0ATnNpJw8xSTcIVqp9pRA8/ao= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM6PR05MB4422; 7:k/sjxHeWhYlExHGHPGqKlzperYV+w2HJE77YwafqXTW6PC2xPJXLPUqRtMz1NwwsLxsh/1qekyPej3Hkgc9bGWU2nFsHvRGBaoCTwQT/KqEXuYiJ6bf75vsUfClQlSh6Z7Uw76VZLDTQ2aYeMOfvhpf/q8HUbsG31zQuB2s8FdUYjM2NpzlUvMK6342516sA3Lw+VFF3mPR6vhLchYC2OdBKvf+LsrkunRQH3biz/vf/0ursMNTkfHytiovWaduK X-MS-Office365-Filtering-Correlation-Id: 90471e56-0ea3-4da3-6050-08d5b31790f9 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 May 2018 06:06:53.5362 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 90471e56-0ea3-4da3-6050-08d5b31790f9 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR05MB4422 Subject: [dpdk-stable] [PATCH 23/33] net/mlx5: fix RSS key length query X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 May 2018 06:06:55 -0000 [ upstream commit e7041f5529d129eef57d6ac9405a510b1df69ae4 ] The RSS key length returned by rte_eth_dev_info_get command was taken from the PMD private structure. This structure initialization was done only after the port configuration. Considering Mellanox device supports only 40B long RSS key, reporting the fixed number instead. Fixes: 29c1d8bb3e79 ("net/mlx5: handle a single RSS hash key for all protocols") Cc: stable@dpdk.org Signed-off-by: Shahaf Shuler Acked-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/mlx5/mlx5_ethdev.c b/drivers/net/mlx5/mlx5_ethdev.c index 81820214bc..1b6d3c80ae 100644 --- a/drivers/net/mlx5/mlx5_ethdev.c +++ b/drivers/net/mlx5/mlx5_ethdev.c @@ -423,7 +423,7 @@ mlx5_dev_infos_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *info) info->if_index = if_nametoindex(ifname); info->reta_size = priv->reta_idx_n ? priv->reta_idx_n : config->ind_table_max_size; - info->hash_key_size = priv->rss_conf.rss_key_len; + info->hash_key_size = rss_hash_default_key_len; info->speed_capa = priv->link_speed_capa; info->flow_type_rss_offloads = ~MLX5_RSS_HF_MASK; } -- 2.12.0