[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170501150205.GC1285@lunn.ch>
Date: Mon, 1 May 2017 17:02:05 +0200
From: Andrew Lunn <andrew@...n.ch>
To: carl h <heyen2000@...il.com>
Cc: netdev@...r.kernel.org
Subject: Re: How does vlan driver pass vlan info to the h/w ethernet driver
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
Powered by blists - more mailing lists