On Wed, 14 Apr 2004, Marc Huffnagle wrote: > omanakuttan wrote: > >>1) i want to add two fields of each 4 bytes in sk_buff structure what is the > >>effect of it on kernel packet processing? Is there any -ve effect? > >>No -ve effect. Even if it has, there is no one stopping you to heck with > >>kernel :-) > > > > IMHO, the fields are ordered so as to facilitate faster access. Adding > > fields amy affect the performance adversely. I am not sure about this, > > though. :-) > > regards, > > Om. > > I disagree, the order of the fields in a struct should have absolutely > no effect on performance. Accessing one location in memory should be I was referring to CPU cache and other similar cacheing mechanism. -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/