Subject: Re: How does vlan driver pass vlan info to the h/w ethernet driver

From: Andrew Lunn <[email-masked]>
Date: Mon, 1 May 2017 17:02:05 +0200

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