Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1562567ybl; Sat, 25 Jan 2020 03:30:47 -0800 (PST) X-Google-Smtp-Source: APXvYqyXUDaRYiIS626fBtBMpI99fqquqFeeSScKwR2602Ec/dEuiTD2cYzRbrIaVu/JVVJkxvjm X-Received: by 2002:a9d:4d17:: with SMTP id n23mr3878556otf.85.1579951846961; Sat, 25 Jan 2020 03:30:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579951846; cv=none; d=google.com; s=arc-20160816; b=se1238+zy6nC7VB+47gsEO4n/ZanyPfNUC2p2ZzFjYg4UMFS5/7+e3HhJdT3yXVhsI tvSTk7FdnNv5/nQ1F4LFFQmTyfKPLnNIXuazQ5WMHwBw260g0v+WsN2bk3pVaCjfVyGf bcqPzjetnchQ3/IhrEZd/Wr4Tq3Yd6ZgSLoZMGqZjl9YZKpxUXw318gCQUjvvYYPGkcK i/2ATktiuOCz6VxDn9UxHoNQxzgNJsaUw2Shy1fxxryVnxSyfkNYgp0k6RJkMCtifw2L GAhcyp60wVyCQ1mQwSdODP37rDSEPgvtFMrhsqeN3xs5cj1DzfarFOuu6kiDKKurtpof /NSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr; bh=BMihjFTuDabOiD0h12GepIpQOlYZfaU+PME59YXx/2I=; b=sANDGjzkTAbu5e3zPoXi6OeIgvxPt1Xy3AvHac+wJ6yNrQRjWa1m2JGsMzRjVGnefE EfWIt2qmM4tCWtSpivDHcxEMPoOK0HT2BtGANYQ+VOHF6f40kOcHrp5VjtqhEjvcCG8d XQ/qVDYdadB3dZ6LGJtRSQ0yKkd9SG00UOURzT9jeiVcicIji4CueFCgi2nfRYFrMqyi Aci7dKZ1DEKphUj+RCOWIZsuUWW8yJ/KZ1rhayEZH3ooMy4nrqXqTVFJp9YJVGgnl5/p G1WdDqx6yf43etRStMuHanuob1aS8i1GEedTpitjcsoNyaTmBcO35qdSPP6hQkxqNhTK /2xQ== 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 d22si4412108oti.316.2020.01.25.03.30.34; Sat, 25 Jan 2020 03:30:46 -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 S1727601AbgAYL3l (ORCPT + 99 others); Sat, 25 Jan 2020 06:29:41 -0500 Received: from esa3.microchip.iphmx.com ([68.232.153.233]:54883 "EHLO esa3.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725767AbgAYL3l (ORCPT ); Sat, 25 Jan 2020 06:29:41 -0500 Received-SPF: Pass (esa3.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=esa3.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 (esa3.microchip.iphmx.com: no sender authenticity information available from domain of postmaster@email.microchip.com) identity=helo; client-ip=198.175.253.82; receiver=esa3.microchip.iphmx.com; envelope-from="Horatiu.Vultur@microchip.com"; x-sender="postmaster@email.microchip.com"; x-conformance=spf_only Authentication-Results: esa3.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: YOnk5drxK7Jpd2XG1B+HjfM0noQe2DtXTSNsjG+XS55FIQnn7ArShJbh7pwZY+ZDqepeEZDudK urBkBgizLTrF8rx4CODFkaPZiU9Zo0zZppnK/X5v+ceIpwotzGkvp9r0t/tIqtLqe0THCStemj aDLNurw1bQmrrQtRb/xTc+JC14GNGKBpNtL/kRoEtuyiF7kWlr6QF5xgOCpo3PQZLX1FRJwPSH xbX8gYai+50jniOR4iSttOsY9VLU5gkqDqCDaIZdOe0wpIFcIRGQxgqwgykljvmVFAOj+/Jtje i2M= X-IronPort-AV: E=Sophos;i="5.70,361,1574146800"; d="scan'208";a="64499800" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 25 Jan 2020 04:29:39 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Sat, 25 Jan 2020 04:29:23 -0700 Received: from localhost (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; Sat, 25 Jan 2020 04:29:23 -0700 Date: Sat, 25 Jan 2020 12:29:22 +0100 From: Horatiu Vultur To: Andrew Lunn CC: , , , , , , , , , , , Subject: Re: [RFC net-next v3 02/10] net: bridge: mrp: Expose function br_mrp_port_open Message-ID: <20200125112922.xrskly7d2qb7t22c@soft-dev3.microsemi.net> References: <20200124161828.12206-1-horatiu.vultur@microchip.com> <20200124161828.12206-3-horatiu.vultur@microchip.com> <20200124173718.GB13647@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline In-Reply-To: <20200124173718.GB13647@lunn.ch> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The 01/24/2020 18:37, Andrew Lunn wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe > > On Fri, Jan 24, 2020 at 05:18:20PM +0100, Horatiu Vultur wrote: > > In case the HW is capable to detect when the MRP ring is open or closed. It is > > expected that the network driver will notify the bridge that the ring is open or > > closed. > > > > The function br_mrp_port_open is used to notify the kernel that one of the ports > > stopped receiving MRP_Test frames. The argument 'loc' has a value of '1' when > > the port stopped receiving MRP_Test and '0' when it started to receive MRP_Test. > > Hi Horatiu > > Given the name of the function, br_mrp_port_open(), how about replacing > loc with a bool with the name open? Hi Andrew, Well spotted, yes I will replace this in the next series. > > Andrew -- /Horatiu