Re: [PATCH] ethernet: optimize memcpy and memset

2007-08-24 Thread David Miller
From: Stephen Hemminger <[EMAIL PROTECTED]> Date: Fri, 17 Aug 2007 16:29:50 -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 smar

[PATCH] ethernet: optimize memcpy and memset

2007-08-17 Thread Stephen Hemminger
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 <[EMAIL PROTECTED]> --