changes to make ethernet packets able to be unaligned...
lukem.freebsd at cse.unsw.edu.au
lukem.freebsd at cse.unsw.edu.au
Sun Mar 20 02:23:23 PST 2005
Why not just fix the protocols which do unaligned accesses? Is speedup of
doing non-byte-wide reads when manipulating packet headers really larger
than the cost of aligning everything? I doubt it.
Your average tcp packet shoule only cause a few unaligned accesses anyway,
so we are putting in a lot of effort to save re-writing a very small
number of spots in the protocol stack.
Personally, I think it would be better to just remove the alignment
constraints altogether, and re-write the protocols to avoid doing
unaligned accesses.
An easy way to track them down would be to use an architecture which uses
exceptions to handle unaligned accesses, and log all the exceptions in the
protocol stack.
--
Luke
More information about the freebsd-net
mailing list