From patchwork Mon Dec 7 05:35:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Moshe Shemesh X-Patchwork-Id: 11954833 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.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,UNPARSEABLE_RELAY,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 336CCC4167B for ; Mon, 7 Dec 2020 05:37:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0AD71229C5 for ; Mon, 7 Dec 2020 05:37:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726650AbgLGFhh (ORCPT ); Mon, 7 Dec 2020 00:37:37 -0500 Received: from mail-il-dmz.mellanox.com ([193.47.165.129]:54574 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726601AbgLGFhg (ORCPT ); Mon, 7 Dec 2020 00:37:36 -0500 Received: from Internal Mail-Server by MTLPINE1 (envelope-from moshe@mellanox.com) with SMTP; 7 Dec 2020 07:36:39 +0200 Received: from vnc1.mtl.labs.mlnx (vnc1.mtl.labs.mlnx [10.7.2.1]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 0B75adlZ016149; Mon, 7 Dec 2020 07:36:39 +0200 Received: from vnc1.mtl.labs.mlnx (localhost [127.0.0.1]) by vnc1.mtl.labs.mlnx (8.14.4/8.14.4) with ESMTP id 0B75acVO021238; Mon, 7 Dec 2020 07:36:38 +0200 Received: (from moshe@localhost) by vnc1.mtl.labs.mlnx (8.14.4/8.14.4/Submit) id 0B75aOTK021196; Mon, 7 Dec 2020 07:36:24 +0200 From: Moshe Shemesh To: Stephen Hemminger , David Ahern , Jakub Kicinski , Jiri Pirko , netdev@vger.kernel.org Cc: Moshe Shemesh Subject: [PATCH iproute2-net v2 0/3] devlink: Add devlink reload action limit and stats Date: Mon, 7 Dec 2020 07:35:19 +0200 Message-Id: <1607319322-20970-1-git-send-email-moshe@mellanox.com> X-Mailer: git-send-email 1.8.4.3 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Introduce new options on devlink reload API to enable the user to select the reload action required and constrains limits on these actions that he may want to ensure. Add reload stats to show the history per reload action per limit. Patch 1 adds the new API reload action and reload limit options to devlink reload command. Patch 2 adds pr_out_dev() helper function and modify monitor function to use it. Patch 3 adds reload stats and remote reload stats to devlink dev show. Moshe Shemesh (3): devlink: Add devlink reload action and limit options devlink: Add pr_out_dev() helper function devlink: Add reload stats to dev show devlink/devlink.c | 268 +++++++++++++++++++++++++++++++++++++++-- man/man8/devlink-dev.8 | 34 ++++++ 2 files changed, 291 insertions(+), 11 deletions(-)