Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp980367ybl; Fri, 10 Jan 2020 09:57:17 -0800 (PST) X-Google-Smtp-Source: APXvYqxZXztgqreXPQz5A3ygwBeD5Emlip3eeq+OIY3fAEhuv8p5CutJrRaOP8tKAgzVZMwHc0D4 X-Received: by 2002:aca:2419:: with SMTP id n25mr3222078oic.13.1578679037116; Fri, 10 Jan 2020 09:57:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578679037; cv=none; d=google.com; s=arc-20160816; b=Rrqb8tXzBGy9LTtW/mj/I3ljhfhjPB9z00zhJKxGKjDfTe+o8Sp1r/oRQC730Bjew2 kVGAIH1Mxi5PzCo+YBof/+rCd1k80LxMCUKwgNpbsEdQ8xYKgo5P7IuEffAElfeYX6Zo IS+S0SJ8oJkziMnYBt5NK4taflJrVgrdCfqRhrLeV6yCf6NZBsDrWpimU/G9+evVXIeC SOSBa7Y4zJ6aIay+ezi8NB3K/SECc2pD2jhUh0wIPdweKYjwMtK61ppmwkKkVuK9/LMo k5AQi5178hxARFMnBc2ODLbENE0w7UaBVXNR6El1L5JrMze5ITH9dX1+1Vt/GbmAg5to uu4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=tFD8L80AsAe/peAMgmqdDb1tPStURhWLKJa2Uvdi4vU=; b=UrKk0aC8VjCWFFwE1BnhQ8CDwb/GkDpdrUAQ6SVCEs6CehEBj+K/UbA5MFlkCeY4tK UfcURH7aBp9i3xrjtRlfjFpbNieeoJRpQc/lC9dih91At4eyjMHGBrNQroRx8um3Ihw+ kt7J3umR0vyzXPYUiTi6kHTzBRQDhR0cl8q6sVoONqHmfvx1ghDIjNxzCWeV6ASkaxWf mQdBlk3g+mYqlhsRv0iXAq5moKBXXhR/mVvfW2VPVx43BIiZIOg9zzhtmUNB0QUSXE8x g5bp4Kumw2RqYukU09kCAk2dvhUmwa75R3QR7FcoNruMtk72hx/UDZ0JyO47DXpghuN3 nzIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=fKvuaQLt; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l2si1687504oti.303.2020.01.10.09.57.06; Fri, 10 Jan 2020 09:57:17 -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; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=fKvuaQLt; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728819AbgAJR4P (ORCPT + 99 others); Fri, 10 Jan 2020 12:56:15 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:60354 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728569AbgAJR4O (ORCPT ); Fri, 10 Jan 2020 12:56:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=tFD8L80AsAe/peAMgmqdDb1tPStURhWLKJa2Uvdi4vU=; b=fKvuaQLtH4HcOSF5kILzhiKsch 57abGmvJNwtg/YVurNp6yl/6XsT3LGnrARvgVUqWlEjJGpwf9xo3oOcTHHUEhs44h6EniGwDjWW0A rJ7T6A014uAM1f0nQmq/+6uaoOseT07TreQx/MJIeis6pjwZTmb8jtflRl2vVr1RNxyw=; Received: from andrew by vps0.lunn.ch with local (Exim 4.93) (envelope-from ) id 1ipyW0-0002YJ-Ik; Fri, 10 Jan 2020 18:56:08 +0100 Date: Fri, 10 Jan 2020 18:56:08 +0100 From: Andrew Lunn To: Horatiu Vultur Cc: Vladimir Oltean , Nikolay Aleksandrov , lkml , netdev , bridge@lists.linux-foundation.org, "David S. Miller" , Roopa Prabhu , Jakub Kicinski , Vivien Didelot , Jeff Kirsher , anirudh.venkataramanan@intel.com, 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: <20200110175608.GK19739@lunn.ch> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200110172536.42rdfwdc6eiwsw7m@soft-dev3.microsemi.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > 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? > 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. > 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. Andrew