From patchwork Mon Aug 2 14:52:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Chan X-Patchwork-Id: 12414187 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=-13.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,MIME_HEADER_CTYPE_ONLY,MIME_NO_TEXT, SPF_HELO_NONE,SPF_PASS,T_TVD_MIME_NO_HEADERS,USER_AGENT_GIT autolearn=ham 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 BDB9FC4338F for ; Mon, 2 Aug 2021 14:53:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A11EC60FC1 for ; Mon, 2 Aug 2021 14:53:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234518AbhHBOxM (ORCPT ); Mon, 2 Aug 2021 10:53:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233925AbhHBOxK (ORCPT ); Mon, 2 Aug 2021 10:53:10 -0400 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE31EC06175F for ; Mon, 2 Aug 2021 07:53:00 -0700 (PDT) Received: by mail-pj1-x102b.google.com with SMTP id s22-20020a17090a1c16b0290177caeba067so6286853pjs.0 for ; Mon, 02 Aug 2021 07:53:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id; bh=UNklaVCjDlloXAvAwjCqYEGwqhMtuXDa6W996lS922E=; b=MyJW8QL1O4qOjiRjVnqJfPTqH3PgiMARhYTzwz8gEf/FdjJltLlwhPpILHUhm+8Ivt msIWyt6X/ECppM6EnfL1TYe2petm6NH5EAMiRvPw1l4D/pIne9k6u7iixvklx8X3/y99 YQ552xTqeDuuo+LIeQ2qWBxunpRUf1Nu22MK4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=UNklaVCjDlloXAvAwjCqYEGwqhMtuXDa6W996lS922E=; b=t2Ok9J4schK7rCF/kNIg+MTqaGPHhpXbj5EkZ3RZrGsfNtT1uCd2aDx5h2HWwJ+h0c gPllVmbPjhff8AZ4nRXMJwczy6zvj9NJ6n1rsUMuF797dL8PeHPNjADhJBQCNBa00ajO 8D5nYN+ECaj7ngfzewFgnBoAILS5g2iyp1rlp3HlcKWkSGzJLERiHRV3dT66kuZwGMYe OLIp6CF52iMATYzwovsyKFCKygXww7o1EKO8vkgaKGgGENX7RDrM8ZFCjJISp65cQCaC viwLnvE3CpazXv6eC7FVFQ1dnaYlWAMjI+NzJxfPEFgGfHHEp4yb9q3reZPF+fklKZLK 3jww== X-Gm-Message-State: AOAM530mUJ4L61fw/uRuFOtaC57KTlAsR3al0eGyq6SQBo/qU6jpdN+O 8XPih1dfkjuFRltaS4Xl9WVD2g== X-Google-Smtp-Source: ABdhPJxg0bXjJyJQmNdq3VP/hVeT5f0/+EHnDtmkGw1jTOFyoRFRiZfbbAHbm+AZGZEGEU1+ldQJaw== X-Received: by 2002:a62:3896:0:b029:33a:f41a:11a4 with SMTP id f144-20020a6238960000b029033af41a11a4mr17571937pfa.9.1627915980028; Mon, 02 Aug 2021 07:53:00 -0700 (PDT) Received: from localhost.swdvt.lab.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id j5sm13201832pgg.41.2021.08.02.07.52.57 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Aug 2021 07:52:59 -0700 (PDT) From: Michael Chan To: davem@davemloft.net Cc: netdev@vger.kernel.org, kuba@kernel.org, gospo@broadcom.com Subject: [PATCH net-next 0/2] bnxt_en: Increase maximum RX ring size when jumbo ring is unused Date: Mon, 2 Aug 2021 10:52:37 -0400 Message-Id: <1627915959-1648-1-git-send-email-michael.chan@broadcom.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org The RX jumbo ring is automatically enabled when HW GRO/LRO is enabled or when the MTU exceeds the page size. The RX jumbo ring provides a lot more RX buffer space when it is in use. When the RX jumbo ring is not in use, some users report that the current maximum of 2K buffers is too limiting. This patchset increases the maximum to 8K buffers when the RX jumbo ring is not used. The default RX ring size is unchanged at 511. Michael Chan (2): bnxt_en: Don't use static arrays for completion ring pages. bnxt_en: Increase maximum RX ring size if jumbo ring is not used. drivers/net/ethernet/broadcom/bnxt/bnxt.c | 75 ++++++++++++++++++- drivers/net/ethernet/broadcom/bnxt/bnxt.h | 17 +++-- .../net/ethernet/broadcom/bnxt/bnxt_ethtool.c | 9 ++- 3 files changed, 90 insertions(+), 11 deletions(-)