[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] Questions about the Ethernet interface
Peter Ryser wrote:
> Are MB caches on or off? Did you try to turn caches off (I know it's
> slow but maybe it's a cache related problem)?
I've got caches off for debugging.
It's a very subtle problem - looking now more like an alignment/bitfield
issue - the ip version and header length fields are 4 bits each, packed
into an unsigned char in the iphdr struct.
i've inserted a full packet dump into the ip_input code, it's physically
receiving the packet fine, yet when querying the iphdr is seeing the
ip_version as 0, instead of 4, so discarding the packet.
yet - when i run a packet through precisely the same code, but via the
loopback device instead of emac, it works fine - packet contents dump
the same, but in that instance, the bitfield is read correctly.
anyway, i'll keep chipping away.
john
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/