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

2017-05-01 Thread carl h
I was afraid you were going to say that. Thanks anyways Andrew. On Mon, May 1, 2017 at 3:29 PM, Andrew Lunn wrote: > On Mon, May 01, 2017 at 02:26:52PM -0400, carl h wrote: >> It appears that the switchdev driver model was introduced after 2.6.39 >> which is the >> kernel

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

2017-05-01 Thread Andrew Lunn
On Mon, May 01, 2017 at 02:26:52PM -0400, carl h wrote: > It appears that the switchdev driver model was introduced after 2.6.39 > which is the > kernel version that I'm using unfortunately. We cannot help you much is you are using an ancient kernel. Please upgrade. Andrew

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

2017-05-01 Thread carl h
It appears that the switchdev driver model was introduced after 2.6.39 which is the kernel version that I'm using unfortunately. So considering this, and the fact that the switch hardware I'm using has support for vlan tag insertion, how would it have been accomplished for my version of the

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

2017-05-01 Thread Andrew Lunn
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

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

2017-05-01 Thread David Miller
From: carl h Date: Mon, 1 May 2017 10:52:17 -0400 > But i can't see how the vlan info propagates down to the switch driver. Which "VLAN info" are you talking about? The VLANs configured onto the device itself or the per-packet VLAN info. Per-device VLAN configuration is

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

2017-05-01 Thread carl h
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. On Mon, May 1, 2017 at 10:37 AM,

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

2017-05-01 Thread Andrew Lunn
> > By what mechanism does the vlan driver (8021q.ko) tell the Ethernet > > hardware about a vlan? Why would the Ethernet hardware need to know? An Ethernet Switch might need to know. If so, then switchdev would be used, include/net/switchdev.h Andrew

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

2017-05-01 Thread carl h
I can't seem to get any response to this. If there is a better place to get help for this question please let me know. Note: I have already posted the same question in Linux and StackOverflow without luck either. On Fri, Apr 28, 2017 at 9:46 AM, carl h wrote: >

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

2017-04-28 Thread carl h
Desperately need info on this. I'm trying to implement vlans on a target programmatically. But first I wanted to set up vlans manually to help get a better understanding of vlan setup. So I setup a vlan manually on my development system (ubuntu) using the vconfig/ifconfig command combination,