From patchwork Tue Aug 13 08:31:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ido Schimmel X-Patchwork-Id: 1146097 Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=idosch.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="ro5b7Y7+"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 4675YS0yqqz9sNm for ; Tue, 13 Aug 2019 18:32:12 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728081AbfHMIcL (ORCPT ); Tue, 13 Aug 2019 04:32:11 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:42143 "EHLO out1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727429AbfHMIcK (ORCPT ); Tue, 13 Aug 2019 04:32:10 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id D7E2120D89; Tue, 13 Aug 2019 04:32:09 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Tue, 13 Aug 2019 04:32:09 -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=CXa4nktwbiW0EDDoP /L7DY0J9BULuigle86AxBzWCUo=; b=ro5b7Y7+L+YZQUSvpLoh5N2dM946kuZ95 5m8phQXx1NZYXGguf7avKMbCaKvqFbtpyVaj0nYCUqyjvLSsCCE7E9qvxf8Zz6Cv Fx3kyPc0PtwXG8942aJkVKPHbhvJl96x4g/ZXXNoRKqgbFib3K4CW1meWV9XUT4W 3rQxU7LhTWEZqoJZBdrRcfPtcbSEuMzp7q92nW36cpVgw699yXsJi39Hunwu3KAa fVt95UxTwaU+f16V0dX41mps4Yv50JWw9b7Ck+YMD4Yaeb0TJ7wlgpwnaOMmVRzE QzojWUU1KW69Envd7LKSm+VriklTUXyqcjU0tba2a7f+2gNYrmlMQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddruddviedgtddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgggfestdekredtre dttdenucfhrhhomhepkfguohcuufgthhhimhhmvghluceoihguohhstghhsehiughoshgt hhdrohhrgheqnecukfhppeduleefrdegjedrudeihedrvdehudenucfrrghrrghmpehmrg hilhhfrhhomhepihguohhstghhsehiughoshgthhdrohhrghenucevlhhushhtvghrufhi iigvpedt X-ME-Proxy: Received: from splinter.mtl.com (unknown [193.47.165.251]) by mail.messagingengine.com (Postfix) with ESMTPA id C86CC8005A; Tue, 13 Aug 2019 04:32:07 -0400 (EDT) From: Ido Schimmel To: netdev@vger.kernel.org Cc: dsahern@gmail.com, stephen@networkplumber.org, jiri@mellanox.com, mlxsw@mellanox.com, Ido Schimmel Subject: [PATCH iproute2-next v2 0/4] Add devlink-trap support Date: Tue, 13 Aug 2019 11:31:39 +0300 Message-Id: <20190813083143.13509-1-idosch@idosch.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Ido Schimmel This patchset adds devlink-trap support in iproute2. Patch #1 increases the number of options devlink can handle. Patches #2-#3 gradually add support for all devlink-trap commands. Patch #4 adds a man page for devlink-trap. See individual commit messages for example usage and output. Changes in v2: * Remove report option and monitor command since monitoring is done using drop monitor Ido Schimmel (4): devlink: Increase number of supported options devlink: Add devlink trap set and show commands devlink: Add devlink trap group set and show commands devlink: Add man page for devlink-trap devlink/devlink.c | 448 +++++++++++++++++++++++++++++++++++-- man/man8/devlink-monitor.8 | 3 +- man/man8/devlink-trap.8 | 138 ++++++++++++ man/man8/devlink.8 | 11 +- 4 files changed, 581 insertions(+), 19 deletions(-) create mode 100644 man/man8/devlink-trap.8