From patchwork Sun Sep 27 17:42:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Chan X-Patchwork-Id: 260084 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=-6.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, MIME_HEADER_CTYPE_ONLY, MIME_NO_TEXT, SPF_HELO_NONE, SPF_PASS, T_TVD_MIME_NO_HEADERS, USER_AGENT_GIT 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 09AACC4346E for ; Sun, 27 Sep 2020 17:42:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A184923718 for ; Sun, 27 Sep 2020 17:42:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="UCYqxVnl" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726314AbgI0Rmp (ORCPT ); Sun, 27 Sep 2020 13:42:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726239AbgI0Rmp (ORCPT ); Sun, 27 Sep 2020 13:42:45 -0400 Received: from mail-pl1-x641.google.com (mail-pl1-x641.google.com [IPv6:2607:f8b0:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 487B7C0613CE for ; Sun, 27 Sep 2020 10:42:45 -0700 (PDT) Received: by mail-pl1-x641.google.com with SMTP id u4so2122480plr.4 for ; Sun, 27 Sep 2020 10:42:45 -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=HAvJ4c/1VdDCrAsWk0lxLoePCyVWvhnST/YBFt3Y2A8=; b=UCYqxVnlLwwY9RD1qtNtwcyB9L/hV8jOu6CFNJyQEktWLAOeOeN6bkZrIrpSuQ4s4n CewTRuO6CqsCsFmF8pP3rNwNjWtKk1M3XtS/d4PbfRgRowLhkJK7+av4YoZAfVKgboJ8 fIPCIdB9ndllEzIX9ayebeVwjdTtktdtdFkys= 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=HAvJ4c/1VdDCrAsWk0lxLoePCyVWvhnST/YBFt3Y2A8=; b=PlSJ7bX3stbs+tD5kQPUH/0ABOWOcs9zqSmjcsNTPdUcUFvmQ7LOmj7cwMlGCP5+CE ktRfY/JRFDsMvHHjsq7KjRFXNQ4ivdNmHyCx67CLRO8mH0yIOnpXbU6L1ah5aSjaKoSc X3lnlOpcK2XKdXi8+1N9oJuBIgR31ZJ2t7JfLdrHjOpK9jx2dHHIrv48xsYUaoPoHgf2 qF86KHILhMOjfbRbDQ2XvEIYBGTnlGu6YeTmdfVB0LhMMKo2C1rH4khAlpydVaq5apLF yV6/K7ed+L68EZ0uFXLgJdEKpatb0kjbRVRe4yQ6C+HASYzxJx1EteAv7mrYQXWVoHTc n+VQ== X-Gm-Message-State: AOAM532XOzY6udIaIsfKjIgkxF32SyxVv12bmqixqdmHTWBUR4O513iq jhIxoAJU70cf5+acQv/qz1NFxp73Om6qpg== X-Google-Smtp-Source: ABdhPJwycl5UzCDvX5DmTPukWjc9iAL4p5ltw+0yNOWdhYo1t9qrugCTGhv1juj9/OjL/2WHRlEqQw== X-Received: by 2002:a17:902:d684:b029:d2:8086:1dd4 with SMTP id v4-20020a170902d684b02900d280861dd4mr6114996ply.68.1601228564467; Sun, 27 Sep 2020 10:42:44 -0700 (PDT) Received: from localhost.swdvt.lab.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id o19sm8765570pfp.64.2020.09.27.10.42.43 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 27 Sep 2020 10:42:43 -0700 (PDT) From: Michael Chan To: davem@davemloft.net Cc: netdev@vger.kernel.org, kuba@kernel.org Subject: [PATCH net-next 00/11] bnxt_en: Update for net-next. Date: Sun, 27 Sep 2020 13:42:09 -0400 Message-Id: <1601228540-20852-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 This patch series adds 2 main features to the bnxt_en driver: 200G link speed support and FEC support with some refactoring of the link speed logic. The firmware interface is updated to have proper support for these 2 features. The ethtool preset max channel value is also adjusted properly to account for XDP and TCs. Edwin Peer (5): bnxt_en: refactor code to limit speed advertising bnxt_en: refactor bnxt_get_fw_speed() bnxt_en: add basic infrastructure to support PAM4 link speeds bnxt_en: ethtool: support PAM4 link speeds up to 200G bnxt_en: avoid link reset if speed is not changed Michael Chan (6): bnxt_en: Update firmware interface spec to 1.10.1.65. bnxt_en: Handle ethernet link being disabled by firmware. bnxt_en: Report FEC settings to ethtool. bnxt_en: Report Active FEC encoding during link up. bnxt_en: Implement ethtool set_fec_param() method. bnxt_en: Improve preset max value for ethtool -l. drivers/net/ethernet/broadcom/bnxt/bnxt.c | 168 ++++++-- drivers/net/ethernet/broadcom/bnxt/bnxt.h | 155 +++++--- .../net/ethernet/broadcom/bnxt/bnxt_ethtool.c | 294 ++++++++++++-- drivers/net/ethernet/broadcom/bnxt/bnxt_hsi.h | 375 +++++++++++++++--- .../net/ethernet/broadcom/bnxt/bnxt_sriov.c | 2 +- 5 files changed, 810 insertions(+), 184 deletions(-)