From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Lunn Subject: Re: How does vlan driver pass vlan info to the h/w ethernet driver Date: Mon, 1 May 2017 17:02:05 +0200 Message-ID: <20170501150205.GC1285@lunn.ch> References: <20170501143703.GA1285@lunn.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: netdev@vger.kernel.org To: carl h Return-path: Received: from vps0.lunn.ch ([178.209.37.122]:46791 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S940197AbdEAPj4 (ORCPT ); Mon, 1 May 2017 11:39:56 -0400 Content-Disposition: inline In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On Mon, May 01, 2017 at 10:52:17AM -0400, carl h wrote: > The Ethernet hardware *is* a 2 port switch in a phone which does support > vlan tag insertion in the switch and driver. The driver is third party which > I'm trying to get working with vlans. > But i can't see how the vlan info propagates down to the switch driver. How are you adding the vlan? bridge vlan add dev port0 vid 42 self That should call __vlan_add(), which calls __vlan_vid_add() which uses switchdev to push the VLAN down into the hardware. Andrew