From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Fainelli Subject: Re: [RFC 0/3] DSA and Marvell 88E6352 802.1q support Date: Mon, 01 Jun 2015 17:14:33 -0700 Message-ID: <556CF569.2050408@gmail.com> References: <556723FF.7030606@roeck-us.net> <1432849035-8499-1-git-send-email-vivien.didelot@savoirfairelinux.com> <5568EB55.9090700@roeck-us.net> <556B3F93.5020701@roeck-us.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: Vivien Didelot , Netdev , Andrew Lunn , Jerome Oufella , Chris Healy , Jiri Pirko To: Scott Feldman , Guenter Roeck Return-path: Received: from mail-pd0-f182.google.com ([209.85.192.182]:36685 "EHLO mail-pd0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753165AbbFBAPd (ORCPT ); Mon, 1 Jun 2015 20:15:33 -0400 Received: by pdjm12 with SMTP id m12so36551187pdj.3 for ; Mon, 01 Jun 2015 17:15:32 -0700 (PDT) In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On 31/05/15 14:21, Scott Feldman wrote: >> Hi Scott, >> >> If I understand you correctly, that means we would expect users to >> use bridge commands even on non-bridged dsa ports. I don't think we can >> make this kind of assumption. Users will expect configure VLANs on >> non-bridge ports as they would normally configure VLANs, using the 8021q >> module. >> >> So I guess we'll have to support the ndo ops for dsa. > > I think that's fine. There is flexibility here. Using the "bridge" > command for non-bridged ports is a little weird. You'll still need > setlink to get the PVID/untagged flags, for the bridged-port cases, as > was done in the original RFC patch. > > I wonder if a new command "vlan" for the iproute2 pkg would be useful? > It would absorb the vconfig command options, making vconfig obsolete. > Some of vconfig functionality is already in iproute2, for example "ip > link add link ... type vlan ..." I would definitively like to see that. Right now, this is a little confusing for users to realize that using bridge + VLAN filtering is a lot more powerful to configure a switch rather than using vconfig/iproute add type vlan. -- Florian