From patchwork Sat Jan 30 13:59:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kurt Kanzenbach X-Patchwork-Id: 12057263 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=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,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 63F79C433E0 for ; Sat, 30 Jan 2021 16:36:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2AFEC64E10 for ; Sat, 30 Jan 2021 16:36:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231509AbhA3Qgg (ORCPT ); Sat, 30 Jan 2021 11:36:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230168AbhA3OVh (ORCPT ); Sat, 30 Jan 2021 09:21:37 -0500 Received: from wp003.webpack.hosteurope.de (wp003.webpack.hosteurope.de [IPv6:2a01:488:42:1000:50ed:840a::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6868C0613ED for ; Sat, 30 Jan 2021 06:20:24 -0800 (PST) Received: from p548daeed.dip0.t-ipconnect.de ([84.141.174.237] helo=kmk0.Speedport_W_724V_09011603_06_007); authenticated by wp003.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) id 1l5qnR-0001w1-F7; Sat, 30 Jan 2021 15:00:17 +0100 From: Kurt Kanzenbach To: Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean Cc: "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org, Kurt Kanzenbach Subject: [PATCH net-next 0/2] net: dsa: hellcreek: Report tables sizes Date: Sat, 30 Jan 2021 14:59:32 +0100 Message-Id: <20210130135934.22870-1-kurt@kmk-computers.de> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 X-bounce-key: webpack.hosteurope.de;kurt@kmk-computers.de;1612016424;0b1932c6; X-HE-SMSGID: 1l5qnR-0001w1-F7 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Hi, Florian, Andrew and Vladimir suggested at some point to use devlink for reporting tables, features and debugging counters instead of using debugfs and printk. So, start by reporting the VLAN and FDB table sizes. Thanks, Kurt Kurt Kanzenbach (2): net: dsa: hellcreek: Report VLAN table occupancy net: dsa: hellcreek: Report FDB table occupancy drivers/net/dsa/hirschmann/hellcreek.c | 99 ++++++++++++++++++++++++-- drivers/net/dsa/hirschmann/hellcreek.h | 6 ++ 2 files changed, 101 insertions(+), 4 deletions(-)