Replace bcopy() to update ether_addr
Adrian Chadd
adrian at freebsd.org
Thu Aug 23 20:45:37 UTC 2012
You can't assume the ethernet addresses will be aligned.
For wifi headers you're definitely going to have at least one address
be non-dword aligned, even if the header itself is dword aligned.
The whole point of using a macro is so it becomes really easy to
change the copy type at compile time. Otherwise I'll have to go
through the code, find all the (CPU intensive/stalling) places where
those 6 byte copies are occuring and replace them.
Adrian
More information about the freebsd-net
mailing list