On Sat, 16 Dec 2006 01:26:04 +0100 Francois Romieu <[EMAIL PROTECTED]> wrote:
> Stephen Hemminger <[EMAIL PROTECTED]> : > > Francois Romieu <[EMAIL PROTECTED]> wrote: > [...] > > Why, you can't predict copybreak on off > > Plain gut feeling. I'd rather spend extra cycles on small packets (whose > allocation is already optimized) and keep the normal packets less expensive > on a 10Gb/s network card. > Likely/unlikely is an optimization that doesn't make a big difference and I would rather the compiler choose unless it is something obvious like an error path or external interrupt (like PHY). There was some discussion on LKML, which I mostly forgot, that hinted that on some architectures using likely/unlikely incorrectly could have a major hit. -- Stephen Hemminger <[EMAIL PROTECTED]> - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html