Re: Re: newbie question on enabling vlan feature in the driver

kmk <[email protected]> Wed, 14 Mar 2007 16:47:44 -0700
Newsgroups gmane.linux.drivers.vlan
Message-ID <[email protected]>
Ben

I think I was looking at the wrong field in the data dump. I'm
seeing vlan tags in both directions.

With writing to vlantag1 register,

in Tx case I see the following

veth->h_vlan_proto = 0x8100
veth->h_vlan_TCI  = 2
veth->h_vlan_encapsulated_proto = 806

in Rx case I see the following

veth->h_vlan_proto = 0x8100

veth->h_vlan_TCI  = 32a
veth->h_vlan_encapsulated_proto = 806

The above was observed on arm board.

I guess it is working?

Thanks alot for your help!

/kmk

On 3/14/07, Ben Greear <[email protected]> wrote:
>
> kmk wrote:
> > Ben
> >
> > On the arm side, in my driver, I cast skb->data to vlan_ethhdr and
> > dumping it
> > from hard_xmit and receive routines. I don't see correct h_vlan_proto
> value.
> > I see only 0x806 and 0x800 when I ping from either direction. I tried
> > both small packets and large packets (512, 1496).
>
> Did you stop writing to the vlan register?
>
> > On the PC, I used ethereal to sniff the physical interface and again I
> don't
> > see vlan tags in both ping requests/responses and in ARP queries.
>
> Intel NICs eat the vlan tags, as previously mentioned, so you won't
> see tags there.  Use a third machine to sniff the network using
> a hub..don't configure any vlan devices on that machine, and you should
> see vlan tags as expected.
>
> Ben
>
> --
> Ben Greear <[email protected]>
> Candela Technologies Inc  http://www.candelatech.com
>
> _______________________________________________
> Vlan mailing list
> [email protected]
> http://www.candelatech.com/mailman/listinfo/vlan
>

_______________________________________________
Vlan mailing list
[email protected]
http://www.candelatech.com/mailman/listinfo/vlan