From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9EF4BC25B0E for ; Tue, 16 Aug 2022 13:15:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231181AbiHPNPD (ORCPT ); Tue, 16 Aug 2022 09:15:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230050AbiHPNPC (ORCPT ); Tue, 16 Aug 2022 09:15:02 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12DD352099 for ; Tue, 16 Aug 2022 06:15:02 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A1C7B61311 for ; Tue, 16 Aug 2022 13:15:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8D46DC433D7; Tue, 16 Aug 2022 13:14:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660655701; bh=lwuM3j+gxbvDh9E6IXReotaQdFL8dGDqRe0Ldyg6A60=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IO+I8XSIVkIQLxKKoWcQdf1SsOLnAmqN24IWuZkvH9mra+W7WS1NiIXrbDUbshZ72 sCLieg46wYshMsIzFGOgzVsF3RjdBH03Wsmx7YGhHKJEUjzg+HmYrR9ii44DLevQAE Bov/0D9RgN9gMBoH8HcV0AfPeZeZYj9boWhYvTSVbElC7s9gWZ0hfnDS4HP9M/W3W4 mXbnGb9nXTIYSCZyQIabSEL2loAxbAekmEUjOB1ddwc4LqrucnCWI741OP4SdVHHkX m17wbMSPH4ES3R8W+myDWy4mDgaXsLpvWrsca9lb5MpnJ59kmKeTlVg2h6kbczpo7+ FtdtAZVKoXaTQ== Date: Tue, 16 Aug 2022 16:14:47 +0300 From: Leon Romanovsky To: Jason Gunthorpe Cc: Mark Bloch , linux-rdma@vger.kernel.org, Maor Gottlieb Subject: Re: [PATCH rdma-rc] RDMA/mlx5: Use the proper number of ports Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org On Mon, Aug 08, 2022 at 10:48:06AM +0300, Leon Romanovsky wrote: > From: Mark Bloch > > The cited commit allowed the driver to operate over HCAs that have > 4 physical ports. Use the number of ports of the RDMA device in the for > loop instead of using the struct size. > > Fixes: 4cd14d44b11d ("net/mlx5: Support devices with more than 2 ports") > Signed-off-by: Mark Bloch > Signed-off-by: Leon Romanovsky > --- > drivers/infiniband/hw/mlx5/main.c | 34 +++++++++++++++---------------- > 1 file changed, 16 insertions(+), 18 deletions(-) > Thanks, applied.