[NET] ethernet: optimize memcpy and memset
authorStephen Hemminger <shemminger@linux-foundation.org>
Sat, 25 Aug 2007 05:35:44 +0000 (22:35 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:48:26 +0000 (16:48 -0700)
The ethernet header management only needs to handle a fixed
size address (6 bytes). If the memcpy/memset are changed to
be passed a constant length, then compiler can optimize for
this case (and if it is smart eliminate string instructions).

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found