Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1470510ybj; Tue, 5 May 2020 22:09:30 -0700 (PDT) X-Google-Smtp-Source: APiQypLSzkbTnCrpugCve1lHYRzR1hUoTMJS9RNuEl+B0VUTg13VzwcIulSqboWK8w5a3rg6aN47 X-Received: by 2002:a17:907:7210:: with SMTP id dr16mr5591509ejc.197.1588741770716; Tue, 05 May 2020 22:09:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588741770; cv=none; d=google.com; s=arc-20160816; b=HO4Q38/ofB9w/Z+iFxrHX3cfwZG24w9TqzNU9GEAd1rSpV9GWczfAzBO/mEzjLTDdY 5CBsIcSLWbJ2bqPSRcAHuNeVFmA+3v7qFWKGny5AXDMoVqcpkwhLr+6qyVd0FdIdWFOH K/pCNDU4SHaRGsuGvyCcEfMPKnLZB7nN4QfSjhoRlhyckiMnYg0HXKAhZ414CBhCPJ0E vwUMDi3wUMXZiPAdHsvu3eGvWxfTHcM/n42dNamaZJvgYB/olObApP5J5pHnHBP2q6Em eEDAiLmlfL1azU7okujGhZ2666HBI/jQ/QobDemGWk8IpDIWe4KNljZKa56RuykYNwmD QGyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=KpOKeTMlwPUqZw3AKWDidisP5BlFEm8fe5D0lqvFmu4=; b=TxvwAmCIurbLSokVOaRfqxEj9VDWg9KO4COV4MxC1ccfSaTI74dyBiFYSJxDNoZFQK WrQWrVcSEzSrWGM1l7sT9DJPDA2Ryn/ZtgSHZ0la6XK0yCU3SD9ViOCvmoBYuI75zWBU V1tG26rheIgM2b0k9gDuQ6iRvGIauHqM6EC2/TAlg7myDOno13DrLggbv5+tO/gmi3Ao mHNJaXKPdB7pTYBenGqztdXQIvYsAK3tTJp7B3Vjl/ElKjfBtjQ3qigK5Csh3tpX9Usn l9rlHRBdF8PO/ItNlYzMqLzWNA+Tg0ad99pJ5LIUw/VbitNTH54gGiWuE52+kwaToWZn YUxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="jBGMTfJ/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y21si528062eju.232.2020.05.05.22.09.07; Tue, 05 May 2020 22:09:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="jBGMTfJ/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726689AbgEFFEo (ORCPT + 99 others); Wed, 6 May 2020 01:04:44 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:31524 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725782AbgEFFEn (ORCPT ); Wed, 6 May 2020 01:04:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1588741482; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=KpOKeTMlwPUqZw3AKWDidisP5BlFEm8fe5D0lqvFmu4=; b=jBGMTfJ/M+jJ0AA5iDC7rSc5aM30aXMomjTwFIZqHfop9eVh6Qe5f8uAeBDbzj+igmcrKm MJA9qks51W1MYXjoloqQbzo8h8eL571Ph1vjOgrEjWIXvmG5k3ZCWTEJi6tlGDv+nV78QT +3KLvaPpAI61qe8xR2msdITW02tvXKA= Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-102-wTHTyUZBMNSqdr6nLbx6ig-1; Wed, 06 May 2020 01:04:40 -0400 X-MC-Unique: wTHTyUZBMNSqdr6nLbx6ig-1 Received: by mail-qt1-f198.google.com with SMTP id g55so1012139qtk.14 for ; Tue, 05 May 2020 22:04:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KpOKeTMlwPUqZw3AKWDidisP5BlFEm8fe5D0lqvFmu4=; b=rG3XTbhP2cvEwmgQRH+BvpoSTCuNKSZ65qd83QvlGLccjGk/MqCeNPopWN5ZFrZaA3 b2QOhDa1S1KkuvcUkS5uOFw9udrgW5jtqbC9NGUKi69xppNXe36Dg1RFt4zjSs5ZOstu Crp70KqIYuVQItRK/IZ3bTKR68zjh83CMwgY8xScdgjFTnTJn4QSq+GHBZ5GeEJWF/zc aUejVhrEUUvPDhUwuTKffnZm+Vf0t5N6xrHNwnbdvwJZ1M6nUt5w92rRyvZajoSrCtJC AzYLV20kMmrQgWu1abTBOAX/+5S/5L/yht1tJLsmIIFjzNl96Iim7ORMOFv9To15jCeC Yn2w== X-Gm-Message-State: AGi0PuaOLEbAqiZRuVPn12A0YQGuQbWz0bkpqEDi7e9nVyQiSoFa4PGA xjm6gbfuWfk4v+Dewbg9gFElJAOF4Kp+Oj8TFQL/r52M3WZdqGRb7vnoB/6KD5bE13bo5uPzfIA Yae14XUTAl2MGOCKHqDoijgo9ayDOeUs44Q9cZvVX X-Received: by 2002:a05:6214:1242:: with SMTP id q2mr6188940qvv.198.1588741480448; Tue, 05 May 2020 22:04:40 -0700 (PDT) X-Received: by 2002:a05:6214:1242:: with SMTP id q2mr6188915qvv.198.1588741480169; Tue, 05 May 2020 22:04:40 -0700 (PDT) MIME-Version: 1.0 References: <1588705481-18385-1-git-send-email-bhsharma@redhat.com> <1588705481-18385-2-git-send-email-bhsharma@redhat.com> <20200505.142439.1075452616982863931.davem@davemloft.net> In-Reply-To: <20200505.142439.1075452616982863931.davem@davemloft.net> From: Bhupesh Sharma Date: Wed, 6 May 2020 10:34:28 +0530 Message-ID: Subject: Re: [PATCH 1/2] net: qed*: Reduce RX and TX default ring count when running inside kdump kernel To: David Miller Cc: netdev@vger.kernel.org, Bhupesh SHARMA , kexec mailing list , Linux Kernel Mailing List , aelior@marvell.com, GR-everest-linux-l2@marvell.com, manishc@marvell.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi David, On Wed, May 6, 2020 at 2:54 AM David Miller wrote: > > From: Bhupesh Sharma > Date: Wed, 6 May 2020 00:34:40 +0530 > > > -#define NUM_RX_BDS_DEF ((u16)BIT(10) - 1) > > +#define NUM_RX_BDS_DEF ((is_kdump_kernel()) ? ((u16)BIT(6) - 1) : ((u16)BIT(10) - 1)) > > These parenthesis are very excessive and unnecessary. At the > very least remove the parenthesis around is_kdump_kernel(). Thanks a lot for the review. Sure, will fix this in the v2. Regards, Bhupesh