[ovs-dev] [PATCH 07/14] datapath: Use __read_mostly annotations where appropriate.

Ben Pfaff blp at nicira.com
Thu Dec 2 23:47:45 UTC 2010


On Thu, Dec 02, 2010 at 12:36:56PM -0800, Jesse Gross wrote:
> Variables which are changed only infrequently should be annotated
> with __read_mostly, which will group them together in a special
> linker section.  This prevents them from sharing cache lines with
> data on the hot path.
> 
> Signed-off-by: Jesse Gross <jesse at nicira.com>

Acked-by: Ben Pfaff <blp at nicira.com>




More information about the dev mailing list