From patchwork Tue Jun 23 20:06:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ido Schimmel X-Patchwork-Id: 217265 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=-10.0 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,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 CA647C433E0 for ; Tue, 23 Jun 2020 21:40:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 909A2206E2 for ; Tue, 23 Jun 2020 21:40:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="H+8wDnKb" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388510AbgFWUGk (ORCPT ); Tue, 23 Jun 2020 16:06:40 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:51345 "EHLO out2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388496AbgFWUGi (ORCPT ); Tue, 23 Jun 2020 16:06:38 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id B49A25C0105; Tue, 23 Jun 2020 16:06:36 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 23 Jun 2020 16:06:36 -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=3Gpu7I8LI/ryapUWb zXgaIzYX5lKGPDrkGqRSl41XRE=; b=H+8wDnKbOJuE8OMHf1Uop55brAsu9vszk iUp8fDSK8PqBef4eD1+ep8ErC//4wcRSpSI3NegSylCUTz0c+TFdd9U8Fg/4KpSl /9lTxOY5D8rcRTj5KbeDvejQAarHD+XeQhQyyZsISqCrL1WcP9pDHCL2KORUP4ld x0KEnmPV4Dgt3XZOWXbKv/GejXnNy8EzpjgnPjXKIIamBvog9Rl5ij+qMHbWNJ6Q p1O6+oLyerzBlotkxF0LHND3+SM1bq13rHJcjSJbEbABL3m0sTJ4AzcqFUZyEdp2 3TotABu/kBdUWfsoJDLpiFM28EBvBMDmoSIfE8OPfaaiURyayIMNg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudekhedguddukecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffoggfgsedtkeertd ertddtnecuhfhrohhmpefkughoucfutghhihhmmhgvlhcuoehiughoshgthhesihguohhs tghhrdhorhhgqeenucggtffrrghtthgvrhhnpeetveeghfevgffgffekueffuedvhfeuhe ehteffieekgeehveefvdegledvffduhfenucfkphepjeelrddukeefrdeihedrkeejnecu vehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepihguohhstg hhsehiughoshgthhdrohhrgh X-ME-Proxy: Received: from shredder.mtl.com (bzq-79-183-65-87.red.bezeqint.net [79.183.65.87]) by mail.messagingengine.com (Postfix) with ESMTPA id 32F8030674E6; Tue, 23 Jun 2020 16:06:35 -0400 (EDT) From: Ido Schimmel To: netdev@vger.kernel.org Cc: stephen@networkplumber.org, dsahern@gmail.com, alexanderk@mellanox.com, mlxsw@mellanox.com, Ido Schimmel Subject: [iproute2 master] devlink: Document zero policer identifier Date: Tue, 23 Jun 2020 23:06:09 +0300 Message-Id: <20200623200609.77470-1-idosch@idosch.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Ido Schimmel When setting a policer to a trap group, a value of "0" will unbind the currently bound policer from the group. The behavior is intentional and tested in kernel selftests, so document it. Signed-off-by: Ido Schimmel Suggested-by: Alex Kushnarov --- man/man8/devlink-trap.8 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/man/man8/devlink-trap.8 b/man/man8/devlink-trap.8 index 1e69342758d5..f5e66412f1b7 100644 --- a/man/man8/devlink-trap.8 +++ b/man/man8/devlink-trap.8 @@ -118,7 +118,8 @@ skipped. .TP .BI policer " POLICER" -packet trap policer. The policer to bind to the packet trap group. +packet trap policer. The policer to bind to the packet trap group. A value of +"0" will unbind the currently bound policer. .TP .B nopolicer