From patchwork Tue Aug 3 16:57:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ioana Ciornei X-Patchwork-Id: 12416847 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=-9.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HK_RANDOM_FROM,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,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 C3E66C4338F for ; Tue, 3 Aug 2021 17:01:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 967D961029 for ; Tue, 3 Aug 2021 17:01:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237521AbhHCQ7X (ORCPT ); Tue, 3 Aug 2021 12:59:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237533AbhHCQ4J (ORCPT ); Tue, 3 Aug 2021 12:56:09 -0400 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DB32C061757 for ; Tue, 3 Aug 2021 09:55:53 -0700 (PDT) Received: by mail-ed1-x535.google.com with SMTP id y7so27595534eda.5 for ; Tue, 03 Aug 2021 09:55:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=OFRG30nP87HIzrsm/WdzGEWJLKsidV86cFqhRIxvJXQ=; b=rB1Smrv4s8r41z1CPmoW1w2wollWIoP+lPJkBRNH4/8F1GISQSmt7tbRwEEGneXdWA p/BKClFUnHDUczbDkQxJdz0FfdDGrshnPXmauJoXp2/7atKZujnTWCLSKtKD7b6kD8/a 2X/FLOoblIYPhjLDDr6IKnrWDXnl25WcLh5syQs5f73FSGtrFtjAXx0a2wujIZGkh/cv QrDCVKcDeykF9oQXmta+iW1fQejLu/eN8yteNF4h+3B31z3bY3I1WRUDzvv9EgpXwfN3 W87oA5D7AFtgfQERcB93yD0cwoRsUnDcbe+2QiUhy7ab6wgmauj7qPQ2ju04GxEXiKxD bvTQ== 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:mime-version :content-transfer-encoding; bh=OFRG30nP87HIzrsm/WdzGEWJLKsidV86cFqhRIxvJXQ=; b=DwYTIFSNwjBCMZkKeI2swuGo7oa/PvrJIljf/b9c0X3iYOg5IGAzQZ4rjHCQPlzjmp r7TmVhdTJ+INx8NCoKaKgymjXFZ1fpsWLdLMRBRZjj5kocBlekyzrNNIrVL1r4/WbnaI 8vyygHhNUBNtE/CHySC6ZWeqS6oQ4Jo66wHfIHMYYdqPZbIDJzFnUmduFJbHdz0c4X/A SwcjrmUeWksutFVYLgUjCptt/d/6iyuk+oViWoktQwi8cQyyKMAk0zFrtCeTXPfRMciM klG3PYpJ15GRYicmduEIMK78Q7zDcPt5ExWfwpU7agb2N9Nmp0RLuLFWATUaJ5nMDrgY Iscg== X-Gm-Message-State: AOAM531k1qFK4h1+uueGmwY1BNKtuylrJeUwRvsE/B/nt7kpFk51wpzc WWmkpRrgh8nXNN537Mh7YpI= X-Google-Smtp-Source: ABdhPJyDH34fxZiweQLUciii6cyzBAflYzf8eK8QObRGeu/yJGPyo/9D+K8bLl8ry6bkABV++ImF8g== X-Received: by 2002:a05:6402:1d90:: with SMTP id dk16mr16225891edb.94.1628009752233; Tue, 03 Aug 2021 09:55:52 -0700 (PDT) Received: from yoga-910.localhost ([188.25.144.60]) by smtp.gmail.com with ESMTPSA id e7sm8754630edk.3.2021.08.03.09.55.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Aug 2021 09:55:51 -0700 (PDT) From: Ioana Ciornei To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: laurentiu.tudor@nxp.com, Ioana Ciornei Subject: [PATCH net-next 0/8] dpaa2-switch: integrate the MAC endpoint support Date: Tue, 3 Aug 2021 19:57:37 +0300 Message-Id: <20210803165745.138175-1-ciorneiioana@gmail.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org From: Ioana Ciornei This patch set integrates the already available MAC support into the dpaa2-switch driver as well. The first 4 patches are fixing up some minor problems or optimizing the code, while the remaining ones are actually integrating the dpaa2-mac support into the switch driver by calling the dpaa2_mac_* provided functions. While at it, we also export the MAC statistics in ethtool like we do for dpaa2-eth. Ioana Ciornei (8): dpaa2-switch: request all interrupts sources on the DPSW dpaa2-switch: use the port index in the IRQ handler dpaa2-switch: do not enable the DPSW at probe time dpaa2-switch: no need to check link state right after ndo_open bus: fsl-mc: extend fsl_mc_get_endpoint() to pass interface ID dpaa2-switch: integrate the MAC endpoint support dpaa2-switch: add a prefix to HW ethtool stats dpaa2-switch: export MAC statistics in ethtool drivers/bus/fsl-mc/fsl-mc-bus.c | 4 +- drivers/net/ethernet/freescale/dpaa2/Makefile | 2 +- .../net/ethernet/freescale/dpaa2/dpaa2-eth.c | 2 +- .../freescale/dpaa2/dpaa2-switch-ethtool.c | 56 +++++-- .../ethernet/freescale/dpaa2/dpaa2-switch.c | 151 +++++++++++++----- .../ethernet/freescale/dpaa2/dpaa2-switch.h | 18 +++ drivers/net/ethernet/freescale/dpaa2/dpsw.h | 5 + include/linux/fsl/mc.h | 3 +- 8 files changed, 177 insertions(+), 64 deletions(-)