Replace bcopy() to update ether_addr
Warner Losh
imp at bsdimp.com
Tue Aug 21 15:20:42 UTC 2012
On Aug 21, 2012, at 1:42 AM, Wojciech Puchar wrote:
>>
>> Even without this tagging, the code to do a structure level copy of 6 bytes is going to be tiny...
>
> true.
>
> just to make sure it will be absolutely portable how about
>
> bcopymacaddress(dst,src)
>
> and then define it whatever you find it fastest on any architecture?
How about just changing it to the *dst = *src, compiling it on all architectures and then deciding if the improvement of the code from a hand-tweaked thing is worth that uglification?
Warner
More information about the freebsd-net
mailing list