Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1108315ybl; Fri, 10 Jan 2020 12:14:04 -0800 (PST) X-Google-Smtp-Source: APXvYqwnYd4ZDezm8FELTES+gd1IerezXOOXrLylreHT40WOYKF6kgd0sBAY3Gg7lu99Ke4b7Uyb X-Received: by 2002:a54:4595:: with SMTP id z21mr3645918oib.136.1578687243965; Fri, 10 Jan 2020 12:14:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578687243; cv=none; d=google.com; s=arc-20160816; b=W1Vdetl1rrW+hmwD5seMc1+HBxCvDnnLztz0swVN42MLIcEvxcjsuOc1+513w1tVMq kESza0w73SpQloNLHyUxi8t/hEkjapSBB3zMfVE+GZqv/RTYtVdPrrrUnWqTz7WYktr9 nTLEI+xCjQFWvWy3kJKI3xMzrxQcj3p+1EQ/CGfO0hTgqENcLt3/M9CDL40UwniaYT6C 4zit28FhTiXlowJBbMWEMQMjT/9DvCmjjx8QY3fVp5WgY428l8Uc9ZGq6HZEHyrn0nOP Kc/Me5Afy7hLGjgo73x0IVYv0qf+044+a5Jd9vywomQXceLHjpiAQqJvnj+XjqZyfTm6 3wqg== 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=D/zvagWSifdea0zIQQd5h8tXPLpoMACcDQwoZMR7b2A=; b=nOl0imaeiHoiR3SjllKF71X56S2ZPd6FFeyuCfy15WdwvU83NZL9VzA8ZuHiSDw2zO 2KqRxd0o0YQyL2Ntqjl76i+7KK7bagAWhtraczFmeD7VyGCd/KXMIP9GcFd6bDFDv0T6 an756h8wo7L7N44VIdN3T+t6s5ica1sxsIPh+DK78OU4FYp8y0c9QZI8zKe8Jz2k5NTd Z7xRMhC2Q9LXv8LPBhSCndS6BdtkXbJbM/3jTJbcxiJzv3vU2hXA11kwueEK2PEGXA6M wLA/Op8t2MzMCwzFMelRLD7zCLuT29gvGfULSBdGz2+hozm6mcMF91t5B++LdKMR7BR3 5+EQ== 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 p11si1823340ota.300.2020.01.10.12.13.51; Fri, 10 Jan 2020 12:14:03 -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 S1726526AbgAJUMv (ORCPT + 99 others); Fri, 10 Jan 2020 15:12:51 -0500 Received: from esa3.microchip.iphmx.com ([68.232.153.233]:24325 "EHLO esa3.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725899AbgAJUMv (ORCPT ); Fri, 10 Jan 2020 15:12:51 -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: RsIxXXDtMziDLP2OETwv1zuBtmRv/8ykYlfq5EMFaCPIb74QPVzZ5Z+ZM3+9WKXE+TI7R6TaNS g1wTxdgRJ9Oo8VvK9u1l77IfAMsAAfV33Qz6r4X0tATrDVoD5/mMpFMVeiP4rzhfhyQrIHaEYv QgxhIbzd09WWHW+YSNk5/fqt2j+oaM0G4WHryye0vycqDfjfmwZzwjQ2MX52dAVa2B0FYXH2yP AgU23LhXMHFM5powJXQtXhVtscTtYqNNVNoNhDdmDvhG0M9ZKWz6mzWR5GW5FM9zKxq9ZbL//M a6I= X-IronPort-AV: E=Sophos;i="5.69,418,1571727600"; d="scan'208";a="62916906" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 10 Jan 2020 13:12:49 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Fri, 10 Jan 2020 13:12:48 -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; Fri, 10 Jan 2020 13:12:47 -0700 Date: Fri, 10 Jan 2020 21:12:48 +0100 From: Horatiu Vultur To: Andrew Lunn CC: Vladimir Oltean , Nikolay Aleksandrov , lkml , netdev , , "David S. Miller" , Roopa Prabhu , Jakub Kicinski , Vivien Didelot , Jeff Kirsher , , David Ahern , "Jiri Pirko" , Microchip Linux Driver Support Subject: Re: [RFC net-next Patch 0/3] net: bridge: mrp: Add support for Media Redundancy Protocol(MRP) Message-ID: <20200110201248.tletol7glyr4soqz@soft-dev3.microsemi.net> References: <20200109150640.532-1-horatiu.vultur@microchip.com> <6f1936e9-97e5-9502-f062-f2925c9652c9@cumulusnetworks.com> <20200110160456.enzomhfsce7bptu3@soft-dev3.microsemi.net> <20200110172536.42rdfwdc6eiwsw7m@soft-dev3.microsemi.net> <20200110175608.GK19739@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline In-Reply-To: <20200110175608.GK19739@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/10/2020 18:56, Andrew Lunn wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe > > > > Horatiu, could you also give some references to the frames that need > > > to be sent. I've no idea what information they need to contain, if the > > > contents is dynamic, or static, etc. > > It is dynamic - but trivial... > > If it is trivial, i don't see why you are so worried about abstracting > it? Maybe we misunderstood each other. When you asked if it is dynamic or static, I thought you meant if it is the same frame being send repeated or if it needs to be changed. It needs to be changed but the changes are trivial, but it means that a non-MRP aware frame generator can't properly offload this. > > > Here is a dump from WireShark with > > annotation on what our HW can update: > > > > Ethernet II, Src: 7a:8b:b1:35:96:e1 (7a:8b:b1:35:96:e1), Dst: Iec_00:00:01 (01:15:4e:00:00:01) > > Destination: Iec_00:00:01 (01:15:4e:00:00:01) > > Source: 7a:8b:b1:35:96:e1 (7a:8b:b1:35:96:e1) > > Type: MRP (0x88e3) > > PROFINET MRP MRP_Test, MRP_Common, MRP_End > > MRP_Version: 1 > > MRP_TLVHeader.Type: MRP_Test (0x02) > > MRP_TLVHeader.Type: MRP_Test (0x02) > > MRP_TLVHeader.Length: 18 > > MRP_Prio: 0x1f40 High priorities > > MRP_SA: 7a:8b:b1:35:96:e1 (7a:8b:b1:35:96:e1) > > MRP_PortRole: Primary ring port (0x0000) > > MRP_RingState: Ring closed (0x0001) > > MRP_Transition: 0x0001 > > MRP_TimeStamp [ms]: 0x000cf574 <---------- Updated automatic > > MRP_TLVHeader.Type: MRP_Common (0x01) > > MRP_TLVHeader.Type: MRP_Common (0x01) > > MRP_TLVHeader.Length: 18 > > MRP_SequenceID: 0x00e9 <---------- Updated automatic > > MRP_DomainUUID: ffffffff-ffff-ffff-ffff-ffffffffffff > > MRP_TLVHeader.Type: MRP_End (0x00) > > MRP_TLVHeader.Type: MRP_End (0x00) > > MRP_TLVHeader.Length: 0 > > > > But all the fields can change, but to change the other fields we need to > > interact with the HW. Other SoC may have other capabilities in their > > offload. As an example, if the ring becomes open then the fields > > MRP_RingState and MRP_Transition need to change and in our case this > > requires SW interference. > > Isn't SW always required? You need to tell your state machine that the > state has changed. In the manager role(MRM), SW is always required. The client can be implemented simply by limiting the flood-mask of the L2 multicast MAC used. The auto and the interconnect roles also required SW to drive the protocol. These roles are not part of this patch set. > > > Would you like a PCAP file as an example? Or do you want a better > > description of the frame format. > > I was hoping for a link to an RFC, or some standards document. Yeah, I would love to have that as well... Unfortunately this is standardized by IEC, and the standards are not free. It can be bought here: https://webstore.iec.ch/publication/24434 Due to the copyright/license of the PDF, I'm not allowed to give you a copy of the one I have. > > Andrew -- /Horatiu