From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net] net/mlx4_core: Save the qpn from the input modifier in RST2INIT wrapper Date: Tue, 24 Jul 2018 16:31:18 -0700 (PDT) Message-ID: <20180724.163118.10373631042451328.davem@davemloft.net> References: <1532431675-13208-1-git-send-email-tariqt@mellanox.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, eranbe@mellanox.com, jackm@dev.mellanox.co.il To: tariqt@mellanox.com Return-path: Received: from shards.monkeyblade.net ([23.128.96.9]:39980 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388438AbeGYAkd (ORCPT ); Tue, 24 Jul 2018 20:40:33 -0400 In-Reply-To: <1532431675-13208-1-git-send-email-tariqt@mellanox.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Tariq Toukan Date: Tue, 24 Jul 2018 14:27:55 +0300 > From: Jack Morgenstein > > Function mlx4_RST2INIT_QP_wrapper saved the qp number passed in the qp > context, rather than the one passed in the input modifier. > > However, the qp number in the qp context is not defined as a > required parameter by the FW. Therefore, drivers may choose to not > specify the qp number in the qp context for the reset-to-init transition. > > Thus, we must save the qp number passed in the command input modifier -- > which is always present. (This saved qp number is used as the input > modifier for command 2RST_QP when a slave's qp's are destroyed). > > Fixes: c82e9aa0a8bc ("mlx4_core: resource tracking for HCA resources used by guests") > Signed-off-by: Jack Morgenstein > Signed-off-by: Tariq Toukan Applied and queued up for -stable, thank you.