From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40062.outbound.protection.outlook.com [40.107.4.62]) by dpdk.org (Postfix) with ESMTP id D63EB1B734; Fri, 13 Oct 2017 22:00:33 +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=PeEx8bqrNCuY4yHn39FCRhERBuNpTbE+c/PgGwP/Wj8=; b=DnwgBlvjBJSbFzWRgF8qXKqBDlTalz1ugT5yxf319jtNGVcYVI20mVFf8+s88OzbcwmYHitJjOenHcHV4Fzd4rU+K1Se/KmrDfaKCR8xInznFV43Lt0xVroC8RRArbmYkEtgR5nzRZQVmjceYzS6hRnmLyT7Zmdof3mF4fiVRyU= Received: from mellanox.com (209.116.155.178) by DB6PR0501MB2040.eurprd05.prod.outlook.com (2603:10a6:4:6::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Fri, 13 Oct 2017 20:00:30 +0000 From: Yongseok Koh To: adrien.mazarguil@6wind.com, nelio.laranjeiro@6wind.com Cc: dev@dpdk.org, Yongseok Koh , stable@dpdk.org Date: Fri, 13 Oct 2017 13:00:19 -0700 Message-Id: <20171013200019.8426-1-yskoh@mellanox.com> X-Mailer: git-send-email 2.13.5 (Apple Git-94) MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [209.116.155.178] X-ClientProxiedBy: SN4PR0501CA0002.namprd05.prod.outlook.com (2603:10b6:803:40::15) To DB6PR0501MB2040.eurprd05.prod.outlook.com (2603:10a6:4:6::22) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8f0e77c9-3387-4d2d-f620-08d512750edb X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(48565401081)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:DB6PR0501MB2040; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0501MB2040; 3:r3O3cWqL5dHEwUwbg4c8IQT/Xb5+WRbnNGZi+M7IvO95zkWeb0xn3olfq2IqwdcA3mBRR0/jyNIwFeehUCv74MXNCLTTAzW9heNij4llxcRBDEtYFMd1Tmg6suUgn2Nxt7Oz8gSNYyAt86U80DI03lrY2YPKtGiZW8jPo0Hfghm9J8hMwQoZwaNY/St3CpyxRl5gvc1hVQMUcT4rn0ivnfgYZpYx9qwUaS+39A4EYpuhFM7M+U5CdnIQaiD/N3Y9; 25:9A+jv4Q6nDcjKtH3/nKdF7Dv/08nI+8LCC5fSpPnZMAU5h0YWmxloi+OP64IEOcJiJE+3luIwWmit6lf4kggnxVaYFHJVqMAeYVp6oKan7AYkvbjevQUGRpf3sjhO4J/8Q0n7NlJwRiooOrmJPGT845EirsKrnClrv3UVreQkmFtWleMujB2dz22GZ1Q0L7m5p9lZOWLxOCLwsKukoCyDKgDSxqqRniEEcBv41zwjuhcEyg919az2sbve0Sz+TqXAtxVGq9sH6fUWPaNKAjqY8Za73ftELub9Xp1lwd/PSYyJGZiU9WM0oBt22XHzc37UAr7AsFEyTo/OgtByXy94Q==; 31:xjd3tKaDaXJc+A1wJczeMzGpYDS1KZB3YtGxp1h0xOVsdxhcOswiSyV99N6ijFljyKgHgf2T1wKxeOUB8DsQsgDIzLGzeHQSQNQoz0kdsiQA53sAFD4lt/APAb3D4gPhWr2T0yRgLnc1IOnfIG/Jd97cjRLBM4MXEBlcuJ8RgUkhD6mSBu0n7phTdVAiLhdkLzyf7hFcQaWW2Ow/jqC51bzbRkCQhaJhS7IQRlGBY2E= X-MS-TrafficTypeDiagnostic: DB6PR0501MB2040: Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=yskoh@mellanox.com; X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; DB6PR0501MB2040; 20:DpbaPtrQ8o8qx4bLMkkH+otZZhubwo645laIkHlf2SjfCLtrsZn0dcByB2A4HCco/ZgZ00qOzN4nvm4m94mDloup4Im5TgdppX3LktBc06rUie1/+pMBAn8BAiHZlFN5PzOvllezLp+8WiXqzIUnf3lrAwiVTb/Kg4h2P3ExmiKzUcYtsjhxlD91YABgQpZy41AASt0l3wYYDElapeGbOI8p1pQYIb1qi6Lyt0cWrNgAMlqWStaabQ2Dv95AWulT6K8B+aoE/hSEFzr5FdhF229fXUZrSjpdQmiGaW4kRsGs8tFhgcBZabywvwWmRfdjfChyBjpKIefYgH+y/rnkGnMvs7JmH2/KfFzq5tUv7wuJQUJdoR/4u5P4leat58mprIuNoKQQNaEFiYpHy6Zo9z4E9WnGiFZvdJnOYO31miBnPo6KgMnZNjpJIVT2qfluk/+zA9259yBaqF0FMi5CSKigPtuRd9rjMbBGAgxMLzVDFdECOHBgnLOwcoSFa/9d; 4:WU9Hzy1hz40HRf5RL3HH1UVxtuvAK+0hmFvYEVfVnkcjOSg2efnaaWufFlrgd25WpukBXwGfu4h268twrcwf2UQ5K5GtnClNWBDAzm4SqiU22aao1l/6txZ5Ddwq5H1fDaOl2TMPvgZ9oiIMfG0gx9vo/+pY4k3baMr4PV35ysI3tpNRg6raUUotbUU5tKA+85O1Gn2PrDhpvipaSLeKqQ1Z8ouUHudWqS+Nbohrr4kFrhZyP6QYk1erGQr5eYFB X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(10201501046)(3002001)(100000703101)(100105400095)(93006095)(93001095)(6055026)(6041248)(20161123564025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123560025)(20161123558100)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DB6PR0501MB2040; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DB6PR0501MB2040; X-Forefront-PRVS: 04599F3534 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(376002)(346002)(39860400002)(199003)(189002)(48376002)(21086003)(316002)(97736004)(5660300001)(189998001)(50466002)(6666003)(5003940100001)(36756003)(305945005)(7736002)(33646002)(105586002)(47776003)(25786009)(86362001)(16526018)(16586007)(106356001)(478600001)(6116002)(53936002)(2906002)(69596002)(3846002)(101416001)(55016002)(50226002)(8936002)(1076002)(66066001)(50986999)(8676002)(4326008)(68736007)(81156014)(81166006); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR0501MB2040; H:mellanox.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB6PR0501MB2040; 23:sgdF9H42xeAiBUz10vstWkFgxDS2RDl60eHjbow?= =?us-ascii?Q?4mLCNcOeSW6ybTkm56SG3jsh2hSPP5PHIgPa04rmVJTDYeC1ThTlpKKhBSv/?= =?us-ascii?Q?TZv5HVrvzphjMguVmrtwCNH+QDxgVuhH2sg3RH9CilAUJr/VpD01JC2NRMHs?= =?us-ascii?Q?WPDaYmX4Zrlrp9yesFzjUj+BhoWolF/Ju1nkpRGv0wtxjVm4wbgLJkoE+zS/?= =?us-ascii?Q?0ODrV0C7eHVBZt7CeI3EeO13n0z+n1dFaiWp/3/Q1sj1x1TalA1ap7MR+sS1?= =?us-ascii?Q?XQA8GeU/eflB1DboZs6PQ1OgXh2FTt/uiHH9ToS82s41/Rk3p03NXeXqWo+5?= =?us-ascii?Q?TPvEdxd8gUnr56jfeiJ8Z2/HgsuQSUTMMjztYe8434NcLI4r6Nvo5Vs7r1r/?= =?us-ascii?Q?+gYnqo65ptv5ZdYsfzn59nWbVcMbRK2UBCG52wWhISDQwgH19ddcwX4Ru6wE?= =?us-ascii?Q?IdmIsCxWKYMJtkPHfm4NexBmyIOOxUop85Wti9U7fAL45NF/vweOJyVzruW1?= =?us-ascii?Q?Yq5ksthAmznfTgdKoRvCTN9VR/1iIU6iM0xpr1/NRpr7VXpEfWt9DsGR3tjA?= =?us-ascii?Q?enCUq8f1i0h+7YO+tUk7sizbEsRkeb6qDNGRpDFJ2Iqn30uUVojdSoKFBqB6?= =?us-ascii?Q?hFfLNr2WELuk+8tYoOxehfqf9pjXMCzeKwd4CRSm5iKOPdCAasLQf2J2V7f6?= =?us-ascii?Q?teQwTZcO/BXhOi7tKS+u4VLbJPeGNyJLI+hh/b49xjX12BdQtFaRYv7g4JNO?= =?us-ascii?Q?bcMgU70BxkgH1cEeEXKKB03ziP7nTL/K15fjjUiDmWzqEjvgxb9D+YYxRHGx?= =?us-ascii?Q?UuahYrk97XejXwIgYJl2msVDbAGjY9+M64JCa1QlSJX58My2iNY8TgTWG8zX?= =?us-ascii?Q?KXTNEVdqhCryk0yetdUeieK9m8Va/3W4Pq8xGx+5jigLju1UIWcjSbPAYOJh?= =?us-ascii?Q?hwCPOF4resRFrzfpNYlKa29Mqo5LpYYGLg/AQBAWajrbpkTJyA9TYZoGUdHm?= =?us-ascii?Q?w8w/ACqVYa6luTDHEWDb1ue4ItmR3A8tOdobYF989r1UFxr4p6083tTJvd5/?= =?us-ascii?Q?v2qWypIo=3D?= X-Microsoft-Exchange-Diagnostics: 1; DB6PR0501MB2040; 6:Dyg9GLNGmaXvySweRX938yPZF1YoI6IUEAPubZ9vHUBEg25RPCkuwcXl88FCZqdWrU88svgt9uY6+avADWuxK6Gh6GBMxDtZxWvfX1v0iiJ2jsg+8rtaMDqAN+FkCtATZhGoZCMEwUTNnQ/6aGg6ovG12aFLjIvisJc3zX/SdshRKPkRRTck1djaSWuKLgu/DbVIvQJgw9+yyRND9px4CCJOVEeTJbUcL5C1VWsS7IG8nEtfzpSXyoFfcjwPK2vi4GiGZD/GwuHYQD7M2ummRxQ3GvCLtWPqoz4JlbOI9lYr6fPd2VF3YbjwqADJ670NFgODpQV4vbu/x+BIyRD0dA==; 5:x9S74zE4ZBQ8Id+ZB1zs8Fbjv7+/7CONfN7QipFHf5+j3on6QqWBX3AXp0gho1QqGjhLJaxTx1X9ONc8kBvk7lQ0JKZkLfW3rGeO1tPRiaIhMlw6kLdTJLrEQqJV2Khxj2iRw3xze6QJor31d04fBwLX7XwlLODqZaItfUMgxk0=; 24:ZOQlCyiRwlJuEX2Hfh/+Qt3M9WNeBePIV6hfu3Lm2MJvKXZ6RLOtsnU+dyn2jvCumQjEeM97TyEGmA4ujETMOOzds15SZO0IRgL6X4QHo+Q=; 7:X9qSAw4AM3XtQtOVWlgEKLQ6MjOaROndKM8dXprYyfBpkBS32TDyLYl9XWxBf1OihE7LfyLn7XBYyHMdI/c++G5hXsYvmuXyaL1fOlKu8dLDkuja2MhNH19scU2eUMDXnukSTbMb3U82DVFGMsj64mnv0g1W3bQpAgH33AoPhWoKo5jANvmOzb53IfTnpu03xanoGlVETmmoiRGNfpYzN5WxT8L4Nab5RHGKEVX6Tzw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Oct 2017 20:00:30.0844 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0501MB2040 Subject: [dpdk-stable] [PATCH] net/mlx5: fix creation of compressed Rx completion queue 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: Fri, 13 Oct 2017 20:00:34 -0000 The size of Rx completion queue should be doubled if compression is enabled in case of non-vectorized Rx. Fixes: 523f5a742102 ("net/mlx5: fix configuration of Rx CQE compression") Cc: stable@dpdk.org Signed-off-by: Yongseok Koh Acked-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_rxq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/mlx5/mlx5_rxq.c b/drivers/net/mlx5/mlx5_rxq.c index 632d45103..ad741ef44 100644 --- a/drivers/net/mlx5/mlx5_rxq.c +++ b/drivers/net/mlx5/mlx5_rxq.c @@ -617,7 +617,7 @@ mlx5_priv_rxq_ibv_new(struct priv *priv, uint16_t idx) * make cq_ci and rq_ci aligned. */ if (rxq_check_vec_support(rxq_data) < 0) - cqe_n *= 2; + attr.cq.ibv.cqe *= 2; } else if (priv->cqe_comp && rxq_data->hw_timestamp) { DEBUG("Rx CQE compression is disabled for HW timestamp"); } -- 2.13.5 (Apple Git-94)