Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751409AbdIWObd (ORCPT ); Sat, 23 Sep 2017 10:31:33 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:53214 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750766AbdIWObb (ORCPT ); Sat, 23 Sep 2017 10:31:31 -0400 Date: Sat, 23 Sep 2017 16:31:23 +0200 From: Andrew Lunn To: Egil Hjelmeland Cc: vivien.didelot@savoirfairelinux.com, f.fainelli@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next 2/2] net: dsa: lan9303: Add basic offloading of unicast traffic Message-ID: <20170923143123.GA21228@lunn.ch> References: <20170921094139.4250-1-privat@egil-hjelmeland.no> <20170921094139.4250-3-privat@egil-hjelmeland.no> <20170921142127.GB27589@lunn.ch> <20170922200810.GJ3470@lunn.ch> <2c5fec6d-18b3-97e9-dd64-85560382d2f7@egil-hjelmeland.no> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2c5fec6d-18b3-97e9-dd64-85560382d2f7@egil-hjelmeland.no> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 471 Lines: 12 > The point is: Once both external ports are in "forwarding", I see no way > to prevent traffic flowing directly between the external ports. Generally, there are port vectors. Port X can send frames only to Port Y. If you don't have that, there are possibilities with VLANs. Each port is given a unique VLAN. All incoming untagged traffic is tagged with the VLAN. You just need to keep the VLAN separated and add/remove the VLAN tag in the dsa tag driver. Andrew