Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4143397ybv; Tue, 25 Feb 2020 14:05:54 -0800 (PST) X-Google-Smtp-Source: APXvYqy8jz+jc4/dzIkCYu1Vz8jieJ4LUVl8IoyauZBcEkpcsEUFGMFeIEngt+BgJs+DQNhOhZmi X-Received: by 2002:a9d:ecc:: with SMTP id 70mr559718otj.182.1582668354117; Tue, 25 Feb 2020 14:05:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582668354; cv=none; d=google.com; s=arc-20160816; b=imSwJ/xod/kQ/L8EX3rmy1D4adHsr218UuaQXD9ItNhV18BeooxOGjr2SVzHjA1tgn Euss7g1GUdOwymOhrZG5W4S1fJ3J15eyyuzjrEaj2w6ilkhNwHPuTOpgg2DloDliNtGJ FrZqhPmX4CYVvdJvCnvn83EzN4syIqgEo6eB5XzoBlzUwZvfun6Bfb74Jy9MI8POBl4G nKkTLKaz6WtcJgO6KwSxtY+uk20oAgES5PXVIVn5YNhdYtswF1BKCUEvfdMxlZ5nrESw 7tpfzIwu6/rn541/ajqgiE+FJHfe03D7/kDvlSzlSrj5C/cF+/BTn3BwkQTE8HRyZpxv 7swA== 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=5Nu7vVzAgRjIOT3nTKCs9kz7QufjSh2yf/3fHkW8+Zs=; b=Di4XIINllYCy3gsrX1YvC133ec3TIeVXbMAptHxiovveybgBO61652DHbmaW03KZjY XObhM7XgWL6Vd9Bm3lHmHKdXdkYqu5e+3BuE3A/0VaX86t2ZLsjjdFGxUi7Id5nBkC0z C9hXeGPaVgJoQPM0Qto3HVvyXvoSSWBYzYj7pTt3DccTEmPW/iBKjSYgTHx0mnnF8keq m/9nndJM3sZ+t8+LlmGuHcJNAQT85+yF3EM79jVNY8i4DqAmuVsrGjCpGhsbPj3I06iC FHUR218MeuB6P0jOTBlgTOO32cowu/437hs1kbloNsfVqH0YzV3zywUdjMsKZ4sM49aI ygqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=gbA5lK2w; 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 f204si42197oia.43.2020.02.25.14.05.41; Tue, 25 Feb 2020 14:05:54 -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=gbA5lK2w; 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 S1728978AbgBYWFf (ORCPT + 99 others); Tue, 25 Feb 2020 17:05:35 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:34146 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726607AbgBYWFe (ORCPT ); Tue, 25 Feb 2020 17:05:34 -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=5Nu7vVzAgRjIOT3nTKCs9kz7QufjSh2yf/3fHkW8+Zs=; b=gbA5lK2wqlsFBRMia+r1AyPz0b tI5grpHd3hS6O4tWDbZ00K4LMxYGrInJxRaPM1+HdS6L2NmzX4Rzcldr7uaWM+89LuY7SvascB2hS z0etRRCqMroh8OIE8DqzS5i5I0z+1yetLDNfPvOgSHhd5fA1cAyybEWNz5Z1Xpovpu1U=; Received: from andrew by vps0.lunn.ch with local (Exim 4.93) (envelope-from ) id 1j6iKZ-0001ct-9M; Tue, 25 Feb 2020 23:05:31 +0100 Date: Tue, 25 Feb 2020 23:05:31 +0100 From: Andrew Lunn To: Vadym Kochan Cc: "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , "David S . Miller" , Oleksandr Mazur , Taras Chornyi , Serhiy Boiko , Andrii Savka , Volodymyr Mytnyk , Serhiy Pshyk Subject: Re: [RFC net-next 1/3] net: marvell: prestera: Add Switchdev driver for Prestera family ASIC device 98DX325x (AC3x) Message-ID: <20200225220531.GH7663@lunn.ch> References: <20200225163025.9430-1-vadym.kochan@plvision.eu> <20200225163025.9430-2-vadym.kochan@plvision.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200225163025.9430-2-vadym.kochan@plvision.eu> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > +static int mvsw_pr_port_obj_attr_set(struct net_device *dev, > + const struct switchdev_attr *attr, > + struct switchdev_trans *trans) > +{ > + int err = 0; > + struct mvsw_pr_port *port = netdev_priv(dev); > + > + switch (attr->id) { > + case SWITCHDEV_ATTR_ID_PORT_STP_STATE: > + err = -EOPNOTSUPP; > + break; That is interesting. Is the linux bridge happy with this? Particularly when you have other interfaces in the Linux SW bridge, which cause a loop via the switch ports? I assume the network then dies in a broadcast storm, since there is nothing Linux can do to solve the loop. Andrew