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
_______________________________________________
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to