From mboxrd@z Thu Jan 1 00:00:00 1970 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=-4.0 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,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 93AF9C47404 for ; Thu, 12 Sep 2019 13:08:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 01D552084D for ; Thu, 12 Sep 2019 13:08:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="YugOCJ7b" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731914AbfILNIU (ORCPT ); Thu, 12 Sep 2019 09:08:20 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:32777 "EHLO out5-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731283AbfILNIU (ORCPT ); Thu, 12 Sep 2019 09:08:20 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 5F1F42203C; Thu, 12 Sep 2019 09:08:19 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Thu, 12 Sep 2019 09:08:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=428icVynjX18fd7pc dTlPp8XAaL3+PvR9gKY7K6r9qY=; b=YugOCJ7bdapC8f6MPGmQFryIshRXnVdZv p9ZxlHtn5UQOfC/Htb+9bk4+GMZtgOJwyxPgWs8cOYL5J/Y8BLtBNkoBZnopddYl JvmIGp6UaFRlAdVFb2aJcfespkGROYpuhy0bEgNJkmmAxRRLoEN2zPE08TNisUWB UKMSrJMYHLetOWq3i4fVqBAT3Khmw5qB+2SPigTjy92V1tKuJSGSSPXfYzSLbHCA T+wCullmu4wYrSLjfllJFX3QotyxnZHxZ5e/oMvMsHbVkiq8rE7EhSuW/V3wi1fk H2U/IIC2Y0iwKGPBLUw2Gd3EeEpQjUUTS5kCyIoAku0GF310kb1dQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrtdehgdehlecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffoggfgsedtkeertdertd dtnecuhfhrohhmpefkughoucfutghhihhmmhgvlhcuoehiughoshgthhesihguohhstghh rdhorhhgqeenucfkphepudelfedrgeejrdduieehrddvhedunecurfgrrhgrmhepmhgrih hlfhhrohhmpehiughoshgthhesihguohhstghhrdhorhhgnecuvehluhhsthgvrhfuihii vgeptd X-ME-Proxy: Received: from splinter.mtl.com (unknown [193.47.165.251]) by mail.messagingengine.com (Postfix) with ESMTPA id 2B707D6005A; Thu, 12 Sep 2019 09:08:16 -0400 (EDT) From: Ido Schimmel To: netdev@vger.kernel.org Cc: davem@davemloft.net, jiri@mellanox.com, shalomt@mellanox.com, mlxsw@mellanox.com, Ido Schimmel Subject: [PATCH net-next 0/2] mlxsw: spectrum_buffers: Add the ability to query the CPU port's shared buffer Date: Thu, 12 Sep 2019 16:07:38 +0300 Message-Id: <20190912130740.22061-1-idosch@idosch.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Ido Schimmel Shalom says: While debugging packet loss towards the CPU, it is useful to be able to query the CPU port's shared buffer quotas and occupancy. Patch #1 registers the CPU port with devlink. Patch #2 adds the ability to query the CPU port's shared buffer quotas and occupancy. Shalom Toledo (2): mlxsw: spectrum: Register CPU port with devlink mlxsw: spectrum_buffers: Add the ability to query the CPU port's shared buffer drivers/net/ethernet/mellanox/mlxsw/core.c | 33 ++++++++++++ drivers/net/ethernet/mellanox/mlxsw/core.h | 5 ++ .../net/ethernet/mellanox/mlxsw/spectrum.c | 47 +++++++++++++++++ .../mellanox/mlxsw/spectrum_buffers.c | 51 ++++++++++++++++--- 4 files changed, 128 insertions(+), 8 deletions(-) -- 2.21.0