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 X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C40D5C433DF for ; Sun, 19 Jul 2020 21:21:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AA4D6208DB for ; Sun, 19 Jul 2020 21:21:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726715AbgGSVVO (ORCPT ); Sun, 19 Jul 2020 17:21:14 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:43800 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726073AbgGSVVO (ORCPT ); Sun, 19 Jul 2020 17:21:14 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1jxGk0-005vjt-Pu; Sun, 19 Jul 2020 23:21:00 +0200 Date: Sun, 19 Jul 2020 23:21:00 +0200 From: Andrew Lunn To: Alexander Lobakin Cc: "David S. Miller" , Jakub Kicinski , Igor Russkikh , Michal Kalderon , Ariel Elior , Denis Bolotin , "James E.J. Bottomley" , "Martin K. Petersen" , GR-everest-linux-l2@marvell.com, QLogic-Storage-Upstream@marvell.com, netdev@vger.kernel.org, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 net-next 01/14] qed: convert link mode from u32 to bitmap Message-ID: <20200719212100.GM1383417@lunn.ch> References: <20200719201453.3648-1-alobakin@marvell.com> <20200719201453.3648-2-alobakin@marvell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200719201453.3648-2-alobakin@marvell.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jul 19, 2020 at 11:14:40PM +0300, Alexander Lobakin wrote: > Currently qed driver already ran out of 32 bits to store link modes, > and this doesn't allow to add and support more speeds. > Convert link mode to bitmap that will always have enough space for > any number of speeds and modes. Hi Alexander Why not just throw away all these QED_LM_ defines and use the kernel link modes? The fact you are changing the u32 to a bitmap suggests the hardware does not use them. Andrew