From patchwork Wed Mar 9 07:17:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joachim Wiberg X-Patchwork-Id: 12774797 X-Patchwork-Delegate: dsahern@gmail.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DE92CC433F5 for ; Wed, 9 Mar 2022 07:17:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230253AbiCIHSb (ORCPT ); Wed, 9 Mar 2022 02:18:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229509AbiCIHSa (ORCPT ); Wed, 9 Mar 2022 02:18:30 -0500 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19F566EB2A for ; Tue, 8 Mar 2022 23:17:26 -0800 (PST) Received: by mail-lf1-x134.google.com with SMTP id r4so2175560lfr.1 for ; Tue, 08 Mar 2022 23:17:26 -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:in-reply-to:references :mime-version:organization:content-transfer-encoding; bh=vKI9hOdRsycB1cOoFMiddNOLZ6leR1+qJXbgkTLjIxg=; b=SeN7V6ALXfQ/BNJHLAkf4fXrAozjTe4gW76V88x08oXylpd1PyoMmCXug4+4EOM1+i P26Ek8faXE0blAx10Td0DgYlitsQ5QEUzkU8xYHuV9UYpitoqYrUVSQEmzIBpE2or+iS dQQfeb3LjbEkEgDvRmCwaRVO12yXGksxf2BP5ShvmreyDFoDf4UOfy9tJ0p8RIqXVsrU OsiIbWAUyMKl7YCJmzkGT4y7TgIJnOhdkjeC5djd7Aa1J23fHLBVZw6PFsWm/dZFy5Wk UhfJxDLTP4aFJWgXRe5oJLaIcDPcLmv2Vv/+YGg9R7x322noDv9gY6iE9efUNItY0mQX 9m5w== 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:in-reply-to :references:mime-version:organization:content-transfer-encoding; bh=vKI9hOdRsycB1cOoFMiddNOLZ6leR1+qJXbgkTLjIxg=; b=cV0TMCE4WQs3eq6QKuqleFvu9Nmx36/Lyb73oczZ1jMch8r+A5Ryg2jlIwvGmhXhr4 knQk0iYOhLHDQatobFzLyENnDdq7WY5jsxssD5sjuWeZVx8ukNbzTAW0vonWP3O/c6i9 NrPpmLcbD2k+u0cOFA1fZ+6hA11T9he2us/4dI9W0S2v8KQHHYS317nkcVzLkDMNXu4f raJPtypfCao2wvC6XdWmzqj8jYwaOGNpe7cydiVBfSmGldcKBtdv8Wl2Ca0RYMfkcHo7 SK1WjT7EtHBZMyN/l7djOXLS/r5w7NcCw9LUnv8BVWxNt8ECs2PwPyf2HiGx7n/OCIgD 3uNQ== X-Gm-Message-State: AOAM530JuLIE7rjgw9e1CANnsMGbXdb+lI2imr2j4LSZ5G3z+voRPSBE DtcAq9hQaeJU5/ngzy6Q6Ds2QyfI0jpUjQ== X-Google-Smtp-Source: ABdhPJwkUk7rio72K07VhP/Gahi7EB3rexDxQu3NNBvGhSzO95md0vtiuI/0UgvpDHey6e2bSSSrJw== X-Received: by 2002:ac2:5f65:0:b0:448:1ce9:13e1 with SMTP id c5-20020ac25f65000000b004481ce913e1mr12971022lfc.344.1646810244542; Tue, 08 Mar 2022 23:17:24 -0800 (PST) Received: from wbg.labs.westermo.se (a124.broadband3.quicknet.se. [46.17.184.124]) by smtp.gmail.com with ESMTPSA id g21-20020ac24d95000000b0044842b21f34sm233730lfe.193.2022.03.08.23.17.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 23:17:23 -0800 (PST) From: Joachim Wiberg To: netdev@vger.kernel.org Cc: David Ahern , Stephen Hemminger , Nikolay Aleksandrov , Joachim Wiberg Subject: [PATCH iproute2-next v2 1/6] bridge: support for controlling flooding of broadcast per port Date: Wed, 9 Mar 2022 08:17:11 +0100 Message-Id: <20220309071716.2678952-2-troglobit@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220309071716.2678952-1-troglobit@gmail.com> References: <20220309071716.2678952-1-troglobit@gmail.com> MIME-Version: 1.0 Organization: Westermo Network Technologies AB Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: dsahern@gmail.com Add per-port support for controlling flooding of broadcast traffic. Similar to unicast and multcast flooding that already exist. Signed-off-by: Joachim Wiberg --- bridge/link.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/bridge/link.c b/bridge/link.c index bc7837a9..407dc8ea 100644 --- a/bridge/link.c +++ b/bridge/link.c @@ -153,6 +153,9 @@ static void print_protinfo(FILE *fp, struct rtattr *attr) if (prtb[IFLA_BRPORT_MCAST_FLOOD]) print_on_off(PRINT_ANY, "mcast_flood", "mcast_flood %s ", rta_getattr_u8(prtb[IFLA_BRPORT_MCAST_FLOOD])); + if (prtb[IFLA_BRPORT_BCAST_FLOOD]) + print_on_off(PRINT_ANY, "bcast_flood", "bcast_flood %s ", + rta_getattr_u8(prtb[IFLA_BRPORT_BCAST_FLOOD])); if (prtb[IFLA_BRPORT_MCAST_TO_UCAST]) print_on_off(PRINT_ANY, "mcast_to_unicast", "mcast_to_unicast %s ", rta_getattr_u8(prtb[IFLA_BRPORT_MCAST_TO_UCAST])); @@ -265,6 +268,7 @@ static void usage(void) " [ learning_sync {on | off} ]\n" " [ flood {on | off} ]\n" " [ mcast_flood {on | off} ]\n" + " [ bcast_flood {on | off} ]\n" " [ mcast_to_unicast {on | off} ]\n" " [ neigh_suppress {on | off} ]\n" " [ vlan_tunnel {on | off} ]\n" @@ -296,6 +300,7 @@ static int brlink_modify(int argc, char **argv) __s8 flood = -1; __s8 vlan_tunnel = -1; __s8 mcast_flood = -1; + __s8 bcast_flood = -1; __s8 mcast_to_unicast = -1; __s8 isolated = -1; __s8 hairpin = -1; @@ -354,6 +359,11 @@ static int brlink_modify(int argc, char **argv) mcast_flood = parse_on_off("mcast_flood", *argv, &ret); if (ret) return ret; + } else if (strcmp(*argv, "bcast_flood") == 0) { + NEXT_ARG(); + bcast_flood = parse_on_off("bcast_flood", *argv, &ret); + if (ret) + return ret; } else if (strcmp(*argv, "mcast_to_unicast") == 0) { NEXT_ARG(); mcast_to_unicast = parse_on_off("mcast_to_unicast", *argv, &ret); @@ -456,6 +466,9 @@ static int brlink_modify(int argc, char **argv) if (mcast_flood >= 0) addattr8(&req.n, sizeof(req), IFLA_BRPORT_MCAST_FLOOD, mcast_flood); + if (bcast_flood >= 0) + addattr8(&req.n, sizeof(req), IFLA_BRPORT_BCAST_FLOOD, + bcast_flood); if (mcast_to_unicast >= 0) addattr8(&req.n, sizeof(req), IFLA_BRPORT_MCAST_TO_UCAST, mcast_to_unicast); From patchwork Wed Mar 9 07:17:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joachim Wiberg X-Patchwork-Id: 12774799 X-Patchwork-Delegate: dsahern@gmail.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 73DBDC433F5 for ; Wed, 9 Mar 2022 07:17:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230258AbiCIHSc (ORCPT ); Wed, 9 Mar 2022 02:18:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229948AbiCIHSa (ORCPT ); Wed, 9 Mar 2022 02:18:30 -0500 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C032A26EA for ; Tue, 8 Mar 2022 23:17:28 -0800 (PST) Received: by mail-lf1-x12e.google.com with SMTP id 3so2123012lfr.7 for ; Tue, 08 Mar 2022 23:17:28 -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:in-reply-to:references :mime-version:organization:content-transfer-encoding; bh=93c5XXpJUTEPP71ABquCsBO3fHl+NABUZRIP4xIAZT4=; b=LjbqYv3pE/ZJCBw8xEBgYObQjOhT/Ubo/+YmUtF8iSbH7MmFR/AomgCVdMmMi1Ol2N myh/bvJ1FrsjKm3KK7HtTjQgX2dJb4c1FYt5/yUHNtVnf7vl7EZTwkT4IyOixDRFSop9 YGUrmFJfpeLOqSDpQUNUq+fhvTZb56nxCz8B61gW4U1DOQZZRS76bWD/M3v6zmTGad7H ru4uQROc+iP3ImNwRmTAhjUarpC8tEqZAfJDJN6hzWaROT5Q+TEYCD5lVD3jLv7Dz0IK M/pMCuqSz3OQYRt1yrExgm/rixBTfG4xxwPb4Oozchk4/p/8mIKVsvC3uJ0sXF6Pcgh8 PvqA== 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:in-reply-to :references:mime-version:organization:content-transfer-encoding; bh=93c5XXpJUTEPP71ABquCsBO3fHl+NABUZRIP4xIAZT4=; b=d7kcdk0JyM3V++8u8FSHEWGBvaSy0/D0wdjUqcZpnfZcGjt16RLesCUisDsrKMNhsy izPjAXTFXylLTUYmaL5cp6etMqr02RS5c9V1tJWB92/TSCRubWgDrm7KjHhk54Xxif+D Ym33b7+lSzfLu0AMEaQejpHZiExz9R8jDAexyt40gJaAAuqWCkyQbdvpZgGUsSSwLkR9 53+xodKX8bqyaVTQ6zDWl9UQSFyOPDtFJekaKQIsTdFUGYF5eu3LOHzlo9BV5KfklCpl NVfvfGfJ9VG4IAYL7U8b6bcrtIx16XnatVkfs1lvv8GFhL8dxzusmERWfSWpatyWVRSN Hlwg== X-Gm-Message-State: AOAM530/e/hS1r4tkANbJfVIC6SEIHpkMcMCV+wV6Efc4ZlwFcCoeVv1 h7/PXKv0sDG7zVbPAawKogujYgyLGI/PQA== X-Google-Smtp-Source: ABdhPJxFC3SgP/5gj9EYO0JBZdpx9cM3gmZTz2GgLnmqYw8Upxwwmp6N9Ok8nQ1NpUsEi/3RdFAbsg== X-Received: by 2002:a05:6512:3a85:b0:445:c812:cbc2 with SMTP id q5-20020a0565123a8500b00445c812cbc2mr13957496lfu.232.1646810246545; Tue, 08 Mar 2022 23:17:26 -0800 (PST) Received: from wbg.labs.westermo.se (a124.broadband3.quicknet.se. [46.17.184.124]) by smtp.gmail.com with ESMTPSA id g21-20020ac24d95000000b0044842b21f34sm233730lfe.193.2022.03.08.23.17.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 23:17:26 -0800 (PST) From: Joachim Wiberg To: netdev@vger.kernel.org Cc: David Ahern , Stephen Hemminger , Nikolay Aleksandrov , Joachim Wiberg Subject: [PATCH iproute2-next v2 2/6] man: bridge: document new bcast_flood flag for bridge ports Date: Wed, 9 Mar 2022 08:17:12 +0100 Message-Id: <20220309071716.2678952-3-troglobit@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220309071716.2678952-1-troglobit@gmail.com> References: <20220309071716.2678952-1-troglobit@gmail.com> MIME-Version: 1.0 Organization: Westermo Network Technologies AB Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: dsahern@gmail.com Signed-off-by: Joachim Wiberg --- man/man8/bridge.8 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/man/man8/bridge.8 b/man/man8/bridge.8 index 81ce9e6f..1d03eef1 100644 --- a/man/man8/bridge.8 +++ b/man/man8/bridge.8 @@ -46,6 +46,7 @@ bridge \- show / manipulate bridge addresses and devices .BR flood " { " on " | " off " } ] [ " .BR hwmode " { " vepa " | " veb " } ] [ " .BR mcast_flood " { " on " | " off " } ] [ " +.BR bcast_flood " { " on " | " off " } ] [ " .BR mcast_to_unicast " { " on " | " off " } ] [ " .BR neigh_suppress " { " on " | " off " } ] [ " .BR vlan_tunnel " { " on " | " off " } ] [ " @@ -466,6 +467,11 @@ switch. Controls whether multicast traffic for which there is no MDB entry will be flooded towards this given port. By default this flag is on. +.TP +.BR "bcast_flood on " or " bcast_flood off " +Controls flooding of broadcast traffic on the given port. +By default this flag is on. + .TP .BR "mcast_to_unicast on " or " mcast_to_unicast off " Controls whether a given port will replicate packets using unicast From patchwork Wed Mar 9 07:17:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joachim Wiberg X-Patchwork-Id: 12774798 X-Patchwork-Delegate: dsahern@gmail.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 48F39C433EF for ; Wed, 9 Mar 2022 07:17:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230257AbiCIHSb (ORCPT ); Wed, 9 Mar 2022 02:18:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230256AbiCIHSa (ORCPT ); Wed, 9 Mar 2022 02:18:30 -0500 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBF721DF for ; Tue, 8 Mar 2022 23:17:29 -0800 (PST) Received: by mail-lj1-x22a.google.com with SMTP id q10so1746482ljc.7 for ; Tue, 08 Mar 2022 23:17:29 -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:in-reply-to:references :mime-version:organization:content-transfer-encoding; bh=8cdr6JcxYfveAV3I/8PrMKcEHbA24yDDjma9KaoJIpA=; b=UIJJgvfvXONsLgvnxZB3tqlTd5KKk3Gs1Ev6cwFBd77C+YMZ5TqoWOoi/trROQpn1B H7yglHuLg3+/FItiwBlRxZWk7IkrBrzd5dV8bvRhkv6gRido5c9yzsrAtAnR276u1IxI g7jxsYk6hmmhamB/i2EaBFmFUeMAEru44sYsIcP2EndkGghwBbARNCVDH1+g3ZzpCDAN eBD1jEcRa7FW9Hyf2VJ/fYsV2jTugpKOowx7h2QTBjEEpgkH/DbKm8VCMw0dcoP1DKHq q14cPH/fiT15XSSQA2VwM/91AT1bnzdvKGXljrokZd4uw0fHcws2zHeZylFjkm3lZkho tskA== 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:in-reply-to :references:mime-version:organization:content-transfer-encoding; bh=8cdr6JcxYfveAV3I/8PrMKcEHbA24yDDjma9KaoJIpA=; b=wl7iNjM/Yb3rrLM2yES3h6GBKITdsTBQu8fJGpKu8fS5p16fA/1udQzlq5I52W+2gS w5I42iP03pZWf9GNk+gPlsLF9XLtfKUAQeSG82bPJoZe16vBtX0OfdXSVa0a1gle/bLR 8X84hsEpCMCblak27rrBVeQjs48wxjUQD/ZYnJdU6kiLI4CMbwecialcil/q8f3gwKYL oO0cmiK32ERVP/BmlttTh7e45qA5CSM1APpeeNVIqvRFPV04w3aAbABa8KA4o299Uwzl AqttbOy86/1r7H6ILau3r1VF7uFLPP7+lDjvoO1qWdtZ5lCjF5PLwKPKQXTIzQc4/6M6 3f/w== X-Gm-Message-State: AOAM532PRQV0W2bmPyX4vHadoBzQhUUOpblA0xG+CrIOySuByGA9Xdlg 0W4IAh/XoeAUWfkH7vQy9ansvOiG0mgcdg== X-Google-Smtp-Source: ABdhPJzz739bvoDAW5hgFoIxUGFWuTXhcMy5rB2qvKkoBfBj5SgJOCm7vsmwXohTLDw3qsRg/Q3szg== X-Received: by 2002:a05:651c:54e:b0:247:e3a6:1e33 with SMTP id q14-20020a05651c054e00b00247e3a61e33mr9174266ljp.126.1646810247674; Tue, 08 Mar 2022 23:17:27 -0800 (PST) Received: from wbg.labs.westermo.se (a124.broadband3.quicknet.se. [46.17.184.124]) by smtp.gmail.com with ESMTPSA id g21-20020ac24d95000000b0044842b21f34sm233730lfe.193.2022.03.08.23.17.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 23:17:27 -0800 (PST) From: Joachim Wiberg To: netdev@vger.kernel.org Cc: David Ahern , Stephen Hemminger , Nikolay Aleksandrov , Joachim Wiberg Subject: [PATCH iproute2-next v2 3/6] ip: iplink_bridge_slave: support for broadcast flooding Date: Wed, 9 Mar 2022 08:17:13 +0100 Message-Id: <20220309071716.2678952-4-troglobit@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220309071716.2678952-1-troglobit@gmail.com> References: <20220309071716.2678952-1-troglobit@gmail.com> MIME-Version: 1.0 Organization: Westermo Network Technologies AB Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: dsahern@gmail.com Add per-port support for controlling flooding of broadcast traffic. Similar to unicast and multcast flooding that already exist. Signed-off-by: Joachim Wiberg --- ip/iplink_bridge_slave.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ip/iplink_bridge_slave.c b/ip/iplink_bridge_slave.c index 71787586..0cf3422d 100644 --- a/ip/iplink_bridge_slave.c +++ b/ip/iplink_bridge_slave.c @@ -37,6 +37,7 @@ static void print_explain(FILE *f) " [ mcast_router MULTICAST_ROUTER ]\n" " [ mcast_fast_leave {on | off} ]\n" " [ mcast_flood {on | off} ]\n" + " [ bcast_flood {on | off} ]\n" " [ mcast_to_unicast {on | off} ]\n" " [ group_fwd_mask MASK ]\n" " [ neigh_suppress {on | off} ]\n" @@ -250,6 +251,10 @@ static void bridge_slave_print_opt(struct link_util *lu, FILE *f, print_on_off(PRINT_ANY, "mcast_flood", "mcast_flood %s ", rta_getattr_u8(tb[IFLA_BRPORT_MCAST_FLOOD])); + if (tb[IFLA_BRPORT_BCAST_FLOOD]) + print_on_off(PRINT_ANY, "bcast_flood", "bcast_flood %s ", + rta_getattr_u8(tb[IFLA_BRPORT_BCAST_FLOOD])); + if (tb[IFLA_BRPORT_MCAST_TO_UCAST]) print_on_off(PRINT_ANY, "mcast_to_unicast", "mcast_to_unicast %s ", rta_getattr_u8(tb[IFLA_BRPORT_MCAST_TO_UCAST])); @@ -350,6 +355,10 @@ static int bridge_slave_parse_opt(struct link_util *lu, int argc, char **argv, NEXT_ARG(); bridge_slave_parse_on_off("mcast_flood", *argv, n, IFLA_BRPORT_MCAST_FLOOD); + } else if (matches(*argv, "bcast_flood") == 0) { + NEXT_ARG(); + bridge_slave_parse_on_off("bcast_flood", *argv, n, + IFLA_BRPORT_BCAST_FLOOD); } else if (matches(*argv, "mcast_to_unicast") == 0) { NEXT_ARG(); bridge_slave_parse_on_off("mcast_to_unicast", *argv, n, From patchwork Wed Mar 9 07:17:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joachim Wiberg X-Patchwork-Id: 12774800 X-Patchwork-Delegate: dsahern@gmail.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 23FAAC433F5 for ; Wed, 9 Mar 2022 07:17:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230262AbiCIHSf (ORCPT ); Wed, 9 Mar 2022 02:18:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229948AbiCIHSe (ORCPT ); Wed, 9 Mar 2022 02:18:34 -0500 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 633C222B for ; Tue, 8 Mar 2022 23:17:30 -0800 (PST) Received: by mail-lf1-x12d.google.com with SMTP id r7so2135903lfc.4 for ; Tue, 08 Mar 2022 23:17:30 -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:in-reply-to:references :mime-version:organization:content-transfer-encoding; bh=KjIo3PbkeZ9aLzeOzKt1E8cGnOIoy/DeCR6iBYfxLY8=; b=FSiKIgcby7l0KLtCrll7pneDDuUlRZRSW/oEpm46Y9khdj9MHU3d2r37r400wBY6T5 KhneO4LDRkui+wXd5+MoW0x8/QGzXyEyUEufxLrhd5N4pra4RtNH9BXb7X7Cm8q5PSmC 4aoMwHQlI8GmegztIbYa02y3OrFATIAjcFpA3lOgSfgnKZsKt60KsIYCK7D82JaelSv3 7dbnPmiwMKtlig9FySVuhw8kBq6YPByrPq/VZrta+zzdLaIH7JEHXQ5yRgWEIU/6lwdT 2lDsR9KuTeqRmdPIQw8VuQ/STvh+P+QkO4sxyYRd0PG9ICDhJWNTArRoWIq5EYjBQQyP cncw== 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:in-reply-to :references:mime-version:organization:content-transfer-encoding; bh=KjIo3PbkeZ9aLzeOzKt1E8cGnOIoy/DeCR6iBYfxLY8=; b=h2zHY1KvovL4pAEdXAQOezAqN4ignorD4FY4sR5A4nebmb4mqXmKlD20KlnN3YnhiJ 3+Hazk5mlZKODAZKb+UEF2WYVF9OWZ/gMg6lVwza1iAboIrLkkij1SfF6ag+MqdfO+dT ypFABCXw8oj/0q5UzU3tPaLR2p1y5Qv7qIEgWUX3MF3Zk9s8N9bPKY3SLCn/NcTiONIB 4eEMgdh1ouRW+WooElV1uguPYNBom3dRW6qJ/sekPciR3UyqZ3nNcTqdju2G93Xg/QGh jmLhAyxJ5OypWYs+nyYYtjbBJPwHlosmJEQ2iVoyMKBq7A7D/023fOsM5/5KGYLEaQcd FXZA== X-Gm-Message-State: AOAM531PhO3ob2rJ/bg+KR1XySyL8uBT9SueWjiBTGOp0meAKZuyEfz+ 3/JqQcBHwzba243xKQSwSUl7is8txFIXmg== X-Google-Smtp-Source: ABdhPJxSF0sdp8Xdf06bBg2xNUOxfAegnmlAk7dvT0q/PSaBMl+yDsil1jQDwfLZso/xA1KvmccKbA== X-Received: by 2002:ac2:44a4:0:b0:445:8fc5:a12a with SMTP id c4-20020ac244a4000000b004458fc5a12amr13319021lfm.27.1646810248946; Tue, 08 Mar 2022 23:17:28 -0800 (PST) Received: from wbg.labs.westermo.se (a124.broadband3.quicknet.se. [46.17.184.124]) by smtp.gmail.com with ESMTPSA id g21-20020ac24d95000000b0044842b21f34sm233730lfe.193.2022.03.08.23.17.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 23:17:28 -0800 (PST) From: Joachim Wiberg To: netdev@vger.kernel.org Cc: David Ahern , Stephen Hemminger , Nikolay Aleksandrov , Joachim Wiberg Subject: [PATCH iproute2-next v2 4/6] man: ip-link: document new bcast_flood flag on bridge ports Date: Wed, 9 Mar 2022 08:17:14 +0100 Message-Id: <20220309071716.2678952-5-troglobit@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220309071716.2678952-1-troglobit@gmail.com> References: <20220309071716.2678952-1-troglobit@gmail.com> MIME-Version: 1.0 Organization: Westermo Network Technologies AB Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: dsahern@gmail.com Signed-off-by: Joachim Wiberg --- man/man8/ip-link.8.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/man/man8/ip-link.8.in b/man/man8/ip-link.8.in index 19a0c9ca..6dd18f7b 100644 --- a/man/man8/ip-link.8.in +++ b/man/man8/ip-link.8.in @@ -2366,6 +2366,8 @@ the following additional arguments are supported: ] [ .BR mcast_flood " { " on " | " off " }" ] [ +.BR bcast_flood " { " on " | " off " }" +] [ .BR mcast_to_unicast " { " on " | " off " }" ] [ .BR group_fwd_mask " MASK" @@ -2454,6 +2456,10 @@ option above. - controls whether a given port will flood multicast traffic for which there is no MDB entry. +.BR bcast_flood " { " on " | " off " }" +- controls flooding of broadcast traffic on the given port. By default +this flag is on. + .BR mcast_to_unicast " { " on " | " off " }" - controls whether a given port will replicate packets using unicast instead of multicast. By default this flag is off. From patchwork Wed Mar 9 07:17:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joachim Wiberg X-Patchwork-Id: 12774801 X-Patchwork-Delegate: dsahern@gmail.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BEC4FC433EF for ; Wed, 9 Mar 2022 07:17:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230270AbiCIHSg (ORCPT ); Wed, 9 Mar 2022 02:18:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230260AbiCIHSe (ORCPT ); Wed, 9 Mar 2022 02:18:34 -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 636E622C for ; Tue, 8 Mar 2022 23:17:32 -0800 (PST) Received: by mail-lf1-x133.google.com with SMTP id w7so2135988lfd.6 for ; Tue, 08 Mar 2022 23:17:32 -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:in-reply-to:references :mime-version:organization:content-transfer-encoding; bh=m3GPbxAbOk7KXB8pnRLcY0PuiFw2Grw9/bv7yF3L1IA=; b=LPuWoooxEY5WSS0UbPaj7Mr95wAOtisle7F1umWq4l952eui6/5/lJMfpuL31yJLEp GWmbIAlQIYUXfloosSKNdmQvb/IqiofX5wf49u0T9r7y3XphNLJjTnCmHG+p14k8zXHI avWfWmjuyBVHaCMkYK0+h8mO0OangQtMKS9FSy4q+CXCf7r0jfT6W7VU6L01v53FWm35 066KjbSqRLjXXSRItYdB4euY1bG0jFrVf0XFuzuxTL06MW0NowAs5imDWs4vdrKcd5qi C+IMPeaplMj+ZVgGICiR3eDz1cvAFXSIVUEQdL9cqLDsjtXnbttcRJoSWNsd6z0noF92 asyA== 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:in-reply-to :references:mime-version:organization:content-transfer-encoding; bh=m3GPbxAbOk7KXB8pnRLcY0PuiFw2Grw9/bv7yF3L1IA=; b=Wc4VGEPsBbx8Mue+6WOowMQPjqT93+xh0Wx5U6VRYTu8ictYSZtFJLiyLK92xEaFwu GnjGnxz4+XiBmPTVmJVRB+iQL94scPDaRWhNKNUf6yrDP6y3sTwjR/7FiMONp9V4FMoo Bl1+Bxq6FUH5XeUqG7Sf0NdXBoZie7AZKX9KdvI8WTx7P+NCc0mNPbEat5Rh86BN9ozF ZlDRiasfIdhyulWZDxLueQ6en8x5fKO5AiI1k7FaH6E+Qw2jyu/3EjV0yFz8FTK6JHdz Md3h0rJ8D6fJqEBusB6XDKohJHehIdrmH/qbuLIOX2qwug4U1Hjg3g3UQWVIKsGNxvk3 vvoQ== X-Gm-Message-State: AOAM531YQFcm71l+3MldaOqmHGqnF5lvOZGnX5Wopp2cjQ7v7C9O7Jmo f2X32jjVmYkiqqisR+1Tmqmc1uTMTtxNQA== X-Google-Smtp-Source: ABdhPJz0YX1QPQOLg3fpkkp4b4IXFRgjSVQ6sYyBepIEQ8BVnh7atg3xlep3WqcL/4+s+jAoqrF56g== X-Received: by 2002:a05:6512:128b:b0:43c:9b6:55f6 with SMTP id u11-20020a056512128b00b0043c09b655f6mr13140610lfs.196.1646810250198; Tue, 08 Mar 2022 23:17:30 -0800 (PST) Received: from wbg.labs.westermo.se (a124.broadband3.quicknet.se. [46.17.184.124]) by smtp.gmail.com with ESMTPSA id g21-20020ac24d95000000b0044842b21f34sm233730lfe.193.2022.03.08.23.17.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 23:17:29 -0800 (PST) From: Joachim Wiberg To: netdev@vger.kernel.org Cc: David Ahern , Stephen Hemminger , Nikolay Aleksandrov , Joachim Wiberg Subject: [PATCH iproute2-next v2 5/6] man: ip-link: mention bridge port's default mcast_flood state Date: Wed, 9 Mar 2022 08:17:15 +0100 Message-Id: <20220309071716.2678952-6-troglobit@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220309071716.2678952-1-troglobit@gmail.com> References: <20220309071716.2678952-1-troglobit@gmail.com> MIME-Version: 1.0 Organization: Westermo Network Technologies AB Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: dsahern@gmail.com Signed-off-by: Joachim Wiberg --- man/man8/ip-link.8.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man/man8/ip-link.8.in b/man/man8/ip-link.8.in index 6dd18f7b..11a02331 100644 --- a/man/man8/ip-link.8.in +++ b/man/man8/ip-link.8.in @@ -2454,7 +2454,7 @@ option above. .BR mcast_flood " { " on " | " off " }" - controls whether a given port will flood multicast traffic for which - there is no MDB entry. + there is no MDB entry. By default this flag is on. .BR bcast_flood " { " on " | " off " }" - controls flooding of broadcast traffic on the given port. By default From patchwork Wed Mar 9 07:17:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joachim Wiberg X-Patchwork-Id: 12774802 X-Patchwork-Delegate: dsahern@gmail.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5E89CC433F5 for ; Wed, 9 Mar 2022 07:17:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230267AbiCIHSp (ORCPT ); Wed, 9 Mar 2022 02:18:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230264AbiCIHSf (ORCPT ); Wed, 9 Mar 2022 02:18:35 -0500 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80764B63 for ; Tue, 8 Mar 2022 23:17:33 -0800 (PST) Received: by mail-lj1-x232.google.com with SMTP id q5so1730739ljb.11 for ; Tue, 08 Mar 2022 23:17:33 -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:in-reply-to:references :mime-version:organization:content-transfer-encoding; bh=LweIlgGI06DKFwjChhelSszMy23ZQQQAOUJlAf3eHT8=; b=pFW+eKFv2wetV4f1u2rHooMT59GSYKFG5dgmAeWiRt9QtKYRlzxwv5cwZI33Xxkew9 8XLu5gX7mMq6j17yeMkP6/4c9hZG64bYFeW4MMnVtMkbwWUUiWnKAMeCiG0VHxG2d0Bn rTVQEY22IibTQkHDmnV3jlxLo5sZPNmvUQZPzcS2nqvg3vPLRjHy0AZtt/RJ5Ek1h8hU qomsTFXzif8w25UVLzeOWiAQvjH8/ckXeObTd7aGXh1rqSDMpGI4y282+s2zomOSDgTm Zr1b5qbeGc5X7VNAPQE9T4xRSpdYK6cCooH2gmznIiiOkv37W03Pq2cxZ9/qpPmBmImx tGEQ== 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:in-reply-to :references:mime-version:organization:content-transfer-encoding; bh=LweIlgGI06DKFwjChhelSszMy23ZQQQAOUJlAf3eHT8=; b=lhgjIJF3OpJDaJCib3HERJ7YLo7ecCRoWdD9ikCj0Zc+ZOwCCVGN/Lpt9SPIGntMuo OB8vDAkFdcqFESi/tTVFxcqg9WbO95eM7h8ZMzalYdWZKyzbetVMkksHWcwzVEnJymoj mWkOgP8gM8inlmGY25YiDx4kV4VsqkYe7p+Srf+W+EosbmDT398589u9bJZnY3m8UQMj TaSBlm3YkIw919+CyLRsVPStHhjsOf+YkeCGRb1/9bA/Iv/WCEed9DGwvB6wXFCZG4Pu vsA3L88lEpjNrdttlTDGoV1Ty7kyF2Lhx6NJN9LcVmB9zIKruqFUx2TOM3y2Wzb2N0HV 78DQ== X-Gm-Message-State: AOAM531QyZqat6sQOmxR6tIYTOV8uwtGyVhiNECe/KInrluYlS+AWgnw vSPgEri/h/Cb9w/sWCBBPEayyP1iCt8KnA== X-Google-Smtp-Source: ABdhPJyi5Crtj0+DugVkF1hJWzWPk9/qz4+rTB8mve2cKpYFxBMoam2AlaygZ9FUALySb2Ggs15G/A== X-Received: by 2002:a05:651c:b10:b0:247:f37f:f595 with SMTP id b16-20020a05651c0b1000b00247f37ff595mr3848196ljr.444.1646810251385; Tue, 08 Mar 2022 23:17:31 -0800 (PST) Received: from wbg.labs.westermo.se (a124.broadband3.quicknet.se. [46.17.184.124]) by smtp.gmail.com with ESMTPSA id g21-20020ac24d95000000b0044842b21f34sm233730lfe.193.2022.03.08.23.17.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 23:17:30 -0800 (PST) From: Joachim Wiberg To: netdev@vger.kernel.org Cc: David Ahern , Stephen Hemminger , Nikolay Aleksandrov , Joachim Wiberg Subject: [PATCH iproute2-next v2 6/6] man: ip-link: whitespace fixes to odd line breaks mid sentence Date: Wed, 9 Mar 2022 08:17:16 +0100 Message-Id: <20220309071716.2678952-7-troglobit@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220309071716.2678952-1-troglobit@gmail.com> References: <20220309071716.2678952-1-troglobit@gmail.com> MIME-Version: 1.0 Organization: Westermo Network Technologies AB Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: dsahern@gmail.com Some options, spread across the man page, were accidentally (?) space indented (possible bullet list auto-indent in editors), causing odd line breaks in presentation mode (emacs, nroff, etc.). This patch aligns the multi-line descriptions to column zero, in line with other such option descriptions. Signed-off-by: Joachim Wiberg --- man/man8/ip-link.8.in | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/man/man8/ip-link.8.in b/man/man8/ip-link.8.in index 11a02331..870e8c43 100644 --- a/man/man8/ip-link.8.in +++ b/man/man8/ip-link.8.in @@ -481,11 +481,11 @@ where is the physical device to which VLAN device is bound. .BR gvrp " { " on " | " off " } " - specifies whether this VLAN should be registered using GARP VLAN - Registration Protocol. +Registration Protocol. .BR mvrp " { " on " | " off " } " - specifies whether this VLAN should be registered using Multiple VLAN - Registration Protocol. +Registration Protocol. .BR loose_binding " { " on " | " off " } " - specifies whether the VLAN device state is bound to the physical device state. @@ -2189,9 +2189,9 @@ parameter must be specified. .sp .BI query_rss " on|off" - toggle the ability of querying the RSS configuration of a specific - VF. VF RSS information like RSS hash key may be considered sensitive - on some devices where this information is shared between VF and PF - and thus its querying may be prohibited by default. +VF. VF RSS information like RSS hash key may be considered sensitive +on some devices where this information is shared between VF and PF +and thus its querying may be prohibited by default. .sp .BI state " auto|enable|disable" - set the virtual link state as seen by the specified VF. Setting to @@ -2454,7 +2454,7 @@ option above. .BR mcast_flood " { " on " | " off " }" - controls whether a given port will flood multicast traffic for which - there is no MDB entry. By default this flag is on. +there is no MDB entry. By default this flag is on. .BR bcast_flood " { " on " | " off " }" - controls flooding of broadcast traffic on the given port. By default @@ -2462,7 +2462,7 @@ this flag is on. .BR mcast_to_unicast " { " on " | " off " }" - controls whether a given port will replicate packets using unicast - instead of multicast. By default this flag is off. +instead of multicast. By default this flag is off. .BI group_fwd_mask " MASK " - set the group forward mask. This is the bitmask that is applied to