Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3609677ybl; Mon, 27 Jan 2020 07:09:04 -0800 (PST) X-Google-Smtp-Source: APXvYqyCzR9frGp61MpJ/dZhZ+AzY8b9jPAb9EGEO9FJB1NbShHKThw3fctnYT9Zh8hHlc/7wvuf X-Received: by 2002:aca:d502:: with SMTP id m2mr7411910oig.41.1580137743820; Mon, 27 Jan 2020 07:09:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580137743; cv=none; d=google.com; s=arc-20160816; b=LVhnh65nuSVToKlsBV74fLFF8/q/DI64XjIVid4+bcIN0DGPlu2pAJwDgqIgEuV+Tk 52XHCsOvkR4u6Ihn/PIQZVqwLj1rcKYQLEwqVmCSL6G/HBemnNTBdqgZi1SfcM3ll7I3 3uWgG8y4W8DhBjBxObnghR4/YTpkuoLL6SmXmOqxKi3uw6s4NTIJz2F6vaauUnLTPTEj eh9vzl6EfHZWtVjCLI9ecxNfjVoFIQspQzahvYZvokgqqiuPQ6I4l9ccwy37A52J2C4D dK3gaSkLEXpQRkuZg8BtQp081AHnSalZozW2LkBqTVVn3fezdO2v3Cxa3DQK+UywV9Wd Vg8g== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=UvjYKQEomZljxw4yYS7NWvcMI7QwuePD0j2Ascrs53Y=; b=ZOX136B5nJ0mlCScsqX9iEfsFgxISWV0+B0+Ebt4YX7MgxMxNSrl3dYL3rxvUdsoqc uvOPYKMihEedJlr19+/gabk5KsCpQobqNsEDQ1KW65+QUWYIiyi1kIUYx5YYi/lQFJF5 hCPbqr4nUBBNfoqYzv34pv+ODYzn6zUfXkEOMQcs0ZLN21rQ8Rk4b98y4IHi9IbUa8Wy kODL1/TLKCKlm4qm/mKah6DVSRFJMZ0DBrFWs4BKriqmQS54RgMDUGFR2cAsd6T01loJ RDbhONqRx0RkOF4+Dy/5q/TF5xIpuiVqtdMpEjog46JurZy/q2Ccf2VsBgvRXD++WC8b cUvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=GIKMIgnL; 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 p28si6709610oth.296.2020.01.27.07.08.51; Mon, 27 Jan 2020 07:09: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; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=GIKMIgnL; 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 S1729422AbgA0PGW (ORCPT + 99 others); Mon, 27 Jan 2020 10:06:22 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:56096 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729112AbgA0PGW (ORCPT ); Mon, 27 Jan 2020 10:06:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Transfer-Encoding:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: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=UvjYKQEomZljxw4yYS7NWvcMI7QwuePD0j2Ascrs53Y=; b=GIKMIgnLTgQ6+2t0UsJvhu9LRx hcRC1D95EQQ57+wINFyAWDsh9TjVnvFCYFKRqA7OgMyqB8DEh4htckxj9f6XHcCAmS8dHCFN6kRmF bQLaPtkJ0jLTiY+3jvakB3nTsoIK7QdxttYyzBKoYCiRShtCUwicd7gHRkCi5+smM0ek=; Received: from andrew by vps0.lunn.ch with local (Exim 4.93) (envelope-from ) id 1iw5xu-0006rM-Jy; Mon, 27 Jan 2020 16:06:14 +0100 Date: Mon, 27 Jan 2020 16:06:14 +0100 From: Andrew Lunn To: =?iso-8859-1?Q?J=FCrgen?= Lambrecht Cc: "Allan W. Nielsen" , Horatiu Vultur , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bridge@lists.linux-foundation.org, jiri@resnulli.us, ivecera@redhat.com, davem@davemloft.net, roopa@cumulusnetworks.com, nikolay@cumulusnetworks.com, anirudh.venkataramanan@intel.com, olteanv@gmail.com, jeffrey.t.kirsher@intel.com, UNGLinuxDriver@microchip.com Subject: Re: [RFC net-next v3 06/10] net: bridge: mrp: switchdev: Extend switchdev API to offload MRP Message-ID: <20200127150614.GF13647@lunn.ch> References: <20200124161828.12206-1-horatiu.vultur@microchip.com> <20200124161828.12206-7-horatiu.vultur@microchip.com> <20200125163504.GF18311@lunn.ch> <20200126132213.fmxl5mgol5qauwym@soft-dev3.microsemi.net> <20200126155911.GJ18311@lunn.ch> <20200127110418.f7443ecls6ih2fwt@lx-anielsen.microsemi.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 27, 2020 at 03:26:38PM +0100, J?rgen Lambrecht wrote: > On 1/27/20 12:04 PM, Allan W. Nielsen wrote: > > > How do you handle the 'headless chicken' scenario? User space > tells > > the port to start sending MRP_Test frames. It then dies. The > hardware > > Andrew, I am a bit confused here - maybe I missed an email-thread, I'm sorry > then. > > In previous emails you and others talked about hardware support to send packets > (inside the switch). But somebody also talked about data-plane and > control-plane (about STP in-kernel being a bad idea), and that data-plane is > in-kernel, and control plane is a mrp-daemon (in user space). > And in my mind, the "hardware" you mention is a frame-injector and can be both > real hardware and a driver in the kernel. > > Do I see it right? Hi J?rgen It i still unclear where the MRP_Test frames should be generated, forward and consumed, either in kernel, or in user space. The userspace RSTP daemon generates and consumes all the BPDUs in userspace. But BPDUs are never forwarded. However MRP_Test frames are forwarded by client nodes. Are the MRP_Test frames then part of the data plane in a client? What i think is clear is that the state machine is in user space. For the rest, we are still exploring possibilities. Andrew