On Thursday 09 November 2006 12:27, Thomas Graf wrote: > Now that all protocols have been made aware of the mark > field it can be moved out of the union thus simplyfing > its usage. > > The config options in the IPv4/IPv6/DECnet subsystems > to enable respectively disable mark based routing only > obfuscate the code with ifdefs, the cost for the > additional comparison in the flow key is insignificant, > and most distributions have all these options enabled > by default anyway. Therefore it makes sense to remove > the config options and enable mark based routing by > default.
I give a big NACK to this patch. By moving fwmark outside of union, you basically touch more cache lines in lookups. I have many machines doing XX.XXX of lookups per second, with long chains, already using 10% of CPU. I am sure a lot of other machines would suffer with this patch, especially machines with 32 bytes cache lines. For IPV4 lookups, compare offset of fwmark before your patch and after. The size of ip6_u is so large that moving fwmark after nl_u union is not an option. Many packets in flight on the Internet are still IPV4. If you think code is obfuscated, you can make it more readable using macros defined in include files, and used in C file without ifdefs. Thank you Eric - 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