[VLAN] Re: newbie question on enabling vlan feature in the driver

kmk km7kumar at gmail.com
Wed Mar 14 15:47:44 PST 2007


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 <greearb at candelatech.com> 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 <greearb at candelatech.com>
> Candela Technologies Inc  http://www.candelatech.com
>
> _______________________________________________
> Vlan mailing list
> Vlan at candelatech.com
> http://www.candelatech.com/mailman/listinfo/vlan
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ns2.lanforge.com/pipermail/vlan/attachments/20070314/d8da0230/attachment.html


More information about the Vlan mailing list