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 C8AA9C32796 for ; Wed, 24 Aug 2022 12:34:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236576AbiHXMeA (ORCPT ); Wed, 24 Aug 2022 08:34:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232039AbiHXMd6 (ORCPT ); Wed, 24 Aug 2022 08:33:58 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 701888E453; Wed, 24 Aug 2022 05:33:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=QRXGG0IhUNzmWwnv6Cim5HepItxfwCJgBqcKIXNvnPc=; b=I1JkA6Zr3qxfrFvsOtxbGjw42G KxFGgeLCzkf9s1Efcma1CZSJx6VEa1q7jlFgJ8Q9DTy8ZFHyAacwDXQPYotBTlvWOzQrslDDI5mEa QJj7W1eS8li8mdDsVFvr6SeBdVu8P9EEPoMzS9TY2IxWFJu7eSBA+02ltHWpwJ4jBhTQ=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1oQpZi-00ERd6-PF; Wed, 24 Aug 2022 14:33:38 +0200 Date: Wed, 24 Aug 2022 14:33:38 +0200 From: Andrew Lunn To: Suman Ghosh Cc: Sunil Kovvuri Goutham , Linu Cherian , Geethasowjanya Akula , Jerin Jacob Kollanukkaran , Hariprasad Kelam , Subbaraya Sundeep Bhatta , "davem@davemloft.net" , "edumazet@google.com" , "kuba@kernel.org" , "pabeni@redhat.com" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [EXT] Re: [PATCH] octeontx2-pf: Add egress PFC support Message-ID: References: <20220823065829.1060339-1-sumang@marvell.com> 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-kernel@vger.kernel.org > >> - schq = hw->txschq_list[lvl][0]; > >> +#ifdef CONFIG_DCB > >> + if (txschq_for_pfc) > >> + schq = pfvf->pfc_schq_list[lvl][prio]; > >> + else > >> +#endif > > > >Please could you try to remove as many of these #ifdef CONFIG_DCB as > >possible. It makes build testing less efficient at finding build > >problems. Can you do: > > > >> + if (IS_ENABLED(CONFIG_DCB) && txschq_for_pfc) > >> + schq = pfvf->pfc_schq_list[lvl][prio]; > > > [Suman] I will restructured the code. But we cannot use pfvf->pfc_schq_list outside #ifdef CONFIG_DCB as these are defined under the > macro in otx2_common.h So maybe add a getter and setter in otx2_common.h, which returns -EOPNOTSUPP or similar when CONFIG_DCB is disabled? Andrew