Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp969646ybl; Fri, 24 Jan 2020 12:56:02 -0800 (PST) X-Google-Smtp-Source: APXvYqzy6oCXZXhi74n4O6CDzEzQ78yBqDuAMldvxoG7SsLJObav/g8PsuehilNdksdsWGJBv3GK X-Received: by 2002:a9d:21f4:: with SMTP id s107mr4356791otb.102.1579899361945; Fri, 24 Jan 2020 12:56:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579899361; cv=none; d=google.com; s=arc-20160816; b=q5kRduckakubAlBA2dJ93ZSYhtTkM6kJEr/wzxPjbFxMKU5B/ctwnLVR194OyIM5rx +b5XbgaGz0+j1YKblYYdhT+G4Em94Nld8XPhER+Dkacb8KxtPUONZnP9TWMPoAzpjSOZ HxsCvUPKoMAawK3c0rh/lzKTZvWCy6CoRyy3vjdVnkvRIKZbGyIqT4w2RRKqm30DsMLI IjQfQ/8LrJmpcClRDRrZV6VLhudpQnhX9dT2pZzX1VJvi6MyIj2DxlRTQbpDx/JWV3N4 FYnJh5rzlZsy4hsxKMQJHjnp2kvdV7Rc+rmurmUJNpBurOdHtcAMKyAvd/nxcjlaDYpC iE9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:ironport-sdr; bh=0Y+dkezdRYI1zwaKT3J2bBmJEmdyhA629EmFygAr970=; b=BciQ/2XvXkBRcD11nHzvt30cEG2JwAPynNm+sccoV61oWx1dHAjzNw8oj5SsH0TBmS 33M7ag7CDd2XM9rwvZQtrmE51OZNdFZRNbd4ERnhe9gBlrJrW9jJCUPx9dLd+73470Id 8nppbmf6+gRQ4JxOK4HNCjayw7Q/tJa+Xey1GefuGGv6s76Sy98ri4Hkfnknea3+4HLP ktpxsCnrdNbfIHFGe5HplSSiuQTLkF+YvGq6djPIpjPlvTWL8t814mPXDIBubm0GE+fC nIkRtEPssBVCGzyel/Y0ynUt90XUjYmeMwEDSURe6RfVURUVp4EUVKlyid0y/DX3FK5a Kt1w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=microchip.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 25si308476oix.178.2020.01.24.12.55.49; Fri, 24 Jan 2020 12:56:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390222AbgAXQUC (ORCPT + 99 others); Fri, 24 Jan 2020 11:20:02 -0500 Received: from esa1.microchip.iphmx.com ([68.232.147.91]:44337 "EHLO esa1.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387730AbgAXQUA (ORCPT ); Fri, 24 Jan 2020 11:20:00 -0500 Received-SPF: Pass (esa1.microchip.iphmx.com: domain of Horatiu.Vultur@microchip.com designates 198.175.253.82 as permitted sender) identity=mailfrom; client-ip=198.175.253.82; receiver=esa1.microchip.iphmx.com; envelope-from="Horatiu.Vultur@microchip.com"; x-sender="Horatiu.Vultur@microchip.com"; x-conformance=spf_only; x-record-type="v=spf1"; x-record-text="v=spf1 mx a:ushub1.microchip.com a:smtpout.microchip.com -exists:%{i}.spf.microchip.iphmx.com include:servers.mcsv.net include:mktomail.com include:spf.protection.outlook.com ~all" Received-SPF: None (esa1.microchip.iphmx.com: no sender authenticity information available from domain of postmaster@email.microchip.com) identity=helo; client-ip=198.175.253.82; receiver=esa1.microchip.iphmx.com; envelope-from="Horatiu.Vultur@microchip.com"; x-sender="postmaster@email.microchip.com"; x-conformance=spf_only Authentication-Results: esa1.microchip.iphmx.com; dkim=none (message not signed) header.i=none; spf=Pass smtp.mailfrom=Horatiu.Vultur@microchip.com; spf=None smtp.helo=postmaster@email.microchip.com; dmarc=pass (p=none dis=none) d=microchip.com IronPort-SDR: Aii8WtEQJgKX2qMsYKDWye+Vz2dqyK2vYDHVaNRN60+HVguv+aUnyfq766v00mUvGn8cvjDyzW 7Ig7rwOkKoa4XoJn1a8bDUx9SaMkIgIu9XxS3jNhKMjzS65oZ0DF5LYeFVNjhgNk/4Z4Sw1eLH 50aWtO7Qu1IvuoDMnEvI+NO4OIjuZmsBH5Gv060ZteeWP16EBRUO0m0ipc8y/bXP27kjORwOv8 9cJaZZa9CHc8Lz4qx5ygbmmyjomAtnAbZObpUWYEPz3F102x5c/Jofk9Xggy0CQvpNFetxflxe 0uI= X-IronPort-AV: E=Sophos;i="5.70,358,1574146800"; d="scan'208";a="65924355" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 24 Jan 2020 09:19:59 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Fri, 24 Jan 2020 09:19:59 -0700 Received: from soft-dev3.microsemi.net (10.10.85.251) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.1713.5 via Frontend Transport; Fri, 24 Jan 2020 09:19:56 -0700 From: Horatiu Vultur To: , , , , , , , , , , , , CC: Horatiu Vultur Subject: [RFC net-next v3 10/10] net: bridge: mrp: Update Kconfig and Makefile Date: Fri, 24 Jan 2020 17:18:28 +0100 Message-ID: <20200124161828.12206-11-horatiu.vultur@microchip.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200124161828.12206-1-horatiu.vultur@microchip.com> References: <20200124161828.12206-1-horatiu.vultur@microchip.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the option BRIDGE_MRP to allow to build in or not MRP support. The default value is N. Signed-off-by: Horatiu Vultur --- net/bridge/Kconfig | 12 ++++++++++++ net/bridge/Makefile | 2 ++ 2 files changed, 14 insertions(+) diff --git a/net/bridge/Kconfig b/net/bridge/Kconfig index e4fb050e2078..51a6414145d2 100644 --- a/net/bridge/Kconfig +++ b/net/bridge/Kconfig @@ -61,3 +61,15 @@ config BRIDGE_VLAN_FILTERING Say N to exclude this support and reduce the binary size. If unsure, say Y. + +config BRIDGE_MRP + bool "MRP protocol" + depends on BRIDGE + default n + help + If you say Y here, then the Ethernet bridge will be able to run MRP + protocol to detect loops + + Say N to exclude this support and reduce the binary size. + + If unsure, say N. diff --git a/net/bridge/Makefile b/net/bridge/Makefile index ac9ef337f0fa..b2e11b819af5 100644 --- a/net/bridge/Makefile +++ b/net/bridge/Makefile @@ -25,3 +25,5 @@ bridge-$(CONFIG_BRIDGE_VLAN_FILTERING) += br_vlan.o br_vlan_tunnel.o bridge-$(CONFIG_NET_SWITCHDEV) += br_switchdev.o obj-$(CONFIG_NETFILTER) += netfilter/ + +bridge-$(CONFIG_BRIDGE_MRP) += br_mrp.o br_mrp_netlink.o br_mrp_switchdev.o -- 2.17.1