Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2992594pxm; Mon, 28 Feb 2022 09:54:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJyjlMYcgZ/TQEnape2BXDPRK/JJaQ/nLEwNlV4OZ3f/OddGsoTpoj5YZ9G3zuYe1aTslSI4 X-Received: by 2002:a17:902:b490:b0:14c:da4a:deca with SMTP id y16-20020a170902b49000b0014cda4adecamr21638297plr.134.1646070867498; Mon, 28 Feb 2022 09:54:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646070867; cv=none; d=google.com; s=arc-20160816; b=0mj+z8sb0Qfr4D5ru4/cO/MAq2GbNHKRjUq7aHVNi3M/BiDU+Cq2l7BN5yzc+A0wg1 lW0MHUppT4SvzQUaPslYEw+aEhRF9gqgebAOJdHa6CBSpdTam7e4TKHZQBWp3ktulQOD MYi/JfYqfRI7btl/n95vd7hRvZ2F5GPWeNeQZjVAgK+G2GWkeFy8BsxybZBFlrB1PZLX gXjYGPSOzOVGLKnFkIoNCo4627ndF8x9zQlcsQlp/TSb99VqdwDIPXtCO7Qs+WgKqZGM zMK1zY6N1fSOn5hIEfQoYwRGGhgfErM+Zs172NtxIux+eBamioTBgf0VEceyUjZ5YF/X +IHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:organization :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=ybYQe3xQ9S5Kw+QobqlTw6DrtwPzxToutzfXG54v3Ws=; b=C8b+aLZ5B5moxTRFJBevRTa6+OrkoK3IaPRO9KsdFyqHUIw0muHb37MNsCHAq/Bje3 +F4X7f36Pd/03ZEqI6vMJOnxJIoK9DnHvU1T/3EziT0FDM7rLIXHR1jqGvpkgS9MP8uI NaCOzto83LoS8NPijKRAwE4NprazaVysOnm8mDmDXviDd6/nYxPkLo3WAt8LVQToXU+i UbWKU7oASCR6gOo8KUm/X/2jp9feJJ7VNPj5WVJ+qRLwV7bh3nB6HATt3DDsk+x8cDvj a60R5lJ1SxDrK0+oGLTywuNyz+ihTaRLxk/nskNDMC5wJ6olU3bi4GB/6nX8xQ1ChvHb WyEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Ktwvg8Yz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 14-20020a17090a018e00b001b8b32dbd07si60500pjc.101.2022.02.28.09.54.11; Mon, 28 Feb 2022 09:54:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Ktwvg8Yz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235756AbiB1Nhr (ORCPT + 99 others); Mon, 28 Feb 2022 08:37:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235243AbiB1Nho (ORCPT ); Mon, 28 Feb 2022 08:37:44 -0500 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11F8D7A9BC; Mon, 28 Feb 2022 05:37:06 -0800 (PST) Received: by mail-lf1-x133.google.com with SMTP id m14so21399520lfu.4; Mon, 28 Feb 2022 05:37:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version:organization :content-transfer-encoding; bh=ybYQe3xQ9S5Kw+QobqlTw6DrtwPzxToutzfXG54v3Ws=; b=Ktwvg8Yzec6SCgspCgAtCNeyZaMmjOQ46tGIrmha3/VYC41lz8DPB4mivi3vUqSsEw oeEUmmQpYXJqFVv9r42hKGR2oCuvn4AXFPpcl71mOt8itQY97F3SAhs7DbJib8U9BZ94 r6wGFLakuFTgA2mg29yyuB4hI2tklxskJncfskyOzNDqAwJTVXDC6NIxHI8d9u5CNxWi syjwnzPaH3EDKhelG4ZXJYXwkdBg098WWsuTCcdKF5QBDLXyqKBh7WVVf29lluRWlBBc 42yWmHwP8KudzEkO2M99lXH6x+uukDnCa9MYNYIg5+fnL2jFwXeKyAUbNLWJRJP+mhtb M4YA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :organization:content-transfer-encoding; bh=ybYQe3xQ9S5Kw+QobqlTw6DrtwPzxToutzfXG54v3Ws=; b=x2o94rp0YbkIx9IX/GUIP1DZYZps7Z2EYyCRGSqHLFSovJ51y5whcs2MS3RdC3ZIKU AlRxg4G7XOjB+jfo/PI13ngpgWM+TI9z9zziFAzg6tNA/0rykqOf9DqMKpZmk5fAsGkI +sY4l9v9W1MDAw68Eg994UB0D39e/nU7rpKx4C2VQngGRCkOs62kzYwSs49E9M9s2uiA EryfPpAH6EH4Pv+JvIq7AMioGfVfp+FIje8gDTRd+U2qZdpk+nYuqgc9+kfkF8J8AN7w H0J+nzLMmUNIojRKWawy/Ac1fvZJ/b3MPycA0ucs5bga7C6oTzrIFRiTn7SAf7/W3IFL lOjA== X-Gm-Message-State: AOAM53319irHWCA2z37DQuvI6F/c3XLMYViyBPjauv7vGivPUgJOrqRF c+Ag/AHaYy7gNtr3RWDMhQzUcXvcH+eK0Gpl X-Received: by 2002:a19:e302:0:b0:445:8acb:10db with SMTP id a2-20020a19e302000000b004458acb10dbmr7369063lfh.513.1646055424258; Mon, 28 Feb 2022 05:37:04 -0800 (PST) Received: from wse-c0127.beijerelectronics.com ([208.127.141.29]) by smtp.gmail.com with ESMTPSA id i16-20020a2e5410000000b0024647722a4asm1326640ljb.29.2022.02.28.05.37.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Feb 2022 05:37:03 -0800 (PST) From: Hans Schultz X-Google-Original-From: Hans Schultz To: davem@davemloft.net, kuba@kernel.org Cc: netdev@vger.kernel.org, Hans Schultz , Stephen Hemminger , linux-kernel@vger.kernel.org Subject: [PATCH iproute2-next V2 0/4] Add support for locked bridge ports (for 802.1X) Date: Mon, 28 Feb 2022 14:36:46 +0100 Message-Id: <20220228133650.31358-1-schultz.hans+netdev@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Organization: Westermo Network Technologies AB Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch set is to complement the kernel locked port patches, such that iproute2 can be used to lock/unlock a port and check if a port is locked or not. To lock or unlock a port use the command: bridge link set dev DEV locked {on | off} To show the detailed setting of a port, including if the locked flag is enabled for the port(s), use the command: bridge -d link show [dev DEV] Hans Schultz (4): bridge: link: add command to set port in locked mode ip: iplink_bridge_slave: add locked port flag support man8/bridge.8: add locked port feature description and cmd syntax man8/ip-link.8: add locked port feature description and cmd syntax bridge/link.c | 13 +++++++++++++ include/uapi/linux/if_link.h | 1 + ip/iplink_bridge_slave.c | 9 +++++++++ man/man8/bridge.8 | 11 +++++++++++ man/man8/ip-link.8.in | 6 ++++++ 5 files changed, 40 insertions(+) -- 2.30.2